![background image](http://html.mh-extra.com/html/omron/sysmac-cpm2b/sysmac-cpm2b_operation-manual_1633427129.webp)
111
Application Procedure
Section 6-4
6-4-4
Ladder Programming
Ladder programming is used to control the Analog I/O Board’s range code
settings and start conversion operations, as follows:
1,2,3...
1.
Setting range codes
2.
Reading input (after A/D conversion) data
3.
Writing output (D/A conversion source) data
I/O Word Allocations
Analog I/O Boards are allocated I/O words following those words allocated to
the CPU Board or a previously connected Expansion Board. The number of
words allocated to the Analog I/O Board depends on the model of the Board
used.
m: The last input word allocated to the CPU Board or to the previous Board if
one is already connected.
n: The last output word allocated to the CPU Board or to the previous Board
if one is already connected.
Analog I/O Board Word Allocations
The following table shows the input word data.
Output Word Data (Range Code Settings)
The CPM2B-MAD21 uses word n+1 only. The CPM2B-MAD42 uses words
n+1 and n+2 only.
Model
Input words
Output words
CPM2B-MAD63
Words m+1 to m+6 (6 words)
Words n+1 to n+3 (3 words)
CPM2B-MAD42
Words m+1 to m+4 (4 words)
Words n+1 to n+2 (2 words)
CPM2B-MAD21
Words m+1 to m+2 (2 words)
Word n+1 (1 word)
Input words
CPM2B-MAD63
CPM2B-MAD42
CPM2B-MAD21
Word m+1
Input data 1
(4-digit hexadecimal)
Input data 1
(4-digit hexadecimal)
Input data 1
(4-digit hexadecimal)
Word m+2
Input data 2
(4-digit hexadecimal)
Input data 2
(4-digit hexadecimal)
Input data 2
(4-digit hexadecimal)
Word m+3
Input data 3
(4-digit hexadecimal)
Input data 3
(4-digit hexadecimal)
---
Word m+4
Input data 4
(4-digit hexadecimal)
Input data 4
(4-digit hexadecimal)
Word m+5
Input data 5
(4-digit hexadecimal)
---
Word m+6
Input data 6
(4-digit hexadecimal)
Bit
Word n+1
Word n+2
Word n+3
15
14
13
12
11
10
09
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
08
07
06
05
04
03
02
01
Analog output 1
Analog input 2
Analog input 1
Analog output 2
Analog input 4
Analog input 3
Analog output 3
Analog input 6
Analog input 5
00
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com