439
Analog I/O Units Section 7-4
Creating a Ladder
Program
I/O Allocation
Four input words and two output words are allocated to the CP1W-MAD42,
starting from the next word following the last word allocated to the CPU Unit or
previous Expansion Unit or Expansion I/O Unit.
Four input words and four output words are allocated to the CP1W-MAD44,
starting from the next word following the last word allocated to the CPU Unit or
previous Expansion Unit or Expansion I/O Unit.
Writing Set Data
CP1W-MAD42
Write the set data to words (n+1 to n+2). A/D or D/A conversion begins when
the set data is transferred from the CPU Unit to the Analog I/O Unit. Setting
contents are shown as the following table.
CP1W-MAD44
Write the set data to words (n+1 to n+4). A/D or D/A conversion begins when
the set data is transferred from the CPU Unit to the Analog I/O Unit. Setting
contents are shown as the following table.
Even if analog inputs are not used, bit 15 in word (n+1) and (n+2) must be set
to 1.
Set Data of Analog Inputs
Word (n+1)1514131211109876543210
Value 1 0 0 0 Analog output 1 Analog input 2 Analog input 1
Word (n+2)1514131211109876543210
Value 1 0 0 0 Analog output 2 Analog input 4 Analog input 3
Word (n+1)1514131211109876543210
Value 10000000Analog input 2 Analog input 1
Word (n+2)1514131211109876543210
Value 10000000Analog input 4 Analog input 3
Word (n+3)1514131211109876543210
Value 10000000Analog output 2Analog output 1
Word (n+4)1514131211109876543210
Value 10000000Analog output 4Analog output 3
CP1W-MAD42
Word m+1
Word m+2
Word m+3
Word m+4
Word n+1
CP1W-MAD44
Word m+1
Word m+2
Word m+3
Word m+4
Word n+1
Word n+2 Word n+2
Word n+3
Word n+4
Value Enable
Enable Bit
0 : Disable channel
1 : Enable channel
Average Bit
0 : Disable
1 : Enable
76 012345
Average AD Range Code Enable Average AD Range Code
AD Range Code
00 : −10 to 10V
01 : 0 to 10V
10 : 1 to 5V (4 to 20mA)
11 : 0 to 5V
0 to 20mA