Creating Programs
4.4 Analog I/O Unit (FP0R-A21/A42)
4.4.1 Reading of Analog Input Values (For A21)
With the analog input unit A21, data can be read as signed 16-bit data as is.
I/O allocation (External input WX)
X
X
X
X
X
X
X
X
3
3
3
3
3
3
3
3
F
E
D
C
B
A
9
8
Conversion data of CH1
(16 bit with sign)
WX3
WX2
CH1data
CH0 data
Sample program (For FP0R-A21)
The following program shows the case that conversion data of the first expansion analog input
unit (FP0R-A21) (CH0 to CH7) is read and stored in DT0 to DT7.
R9010
[ F0 MV
[ F0 MV
ⓐ
The conversion data of CH0 is stored into DT0.
ⓑ
The conversion data of CH1 is stored into DT1.
4-24
X
X
X
X
X
X
X
X
3
3
3
3
3
3
3
3
7
6
5
4
3
2
1
0
, WX2 , DT0
, WX3 , DT1
X
X
X
X
X
X
2
2
2
2
2
2
F
E
D
C
B
A
Conversion data of CH0
(16 bit with sign)
]
]
X
X
X
X
X
X
X
X
2
2
2
2
2
2
2
2
9
8
7
6
5
4
3
2
ⓐ
ⓑ
X
X
2
2
1
0