User manual

4.4 Analog I/O Unit (FP0R-A21/A42)
Sample program (FP0R-A42: (For ranges of 0 to 10 V, 0 to 5 V and 0 to 20 mA)
[ F65 WAN , WX3 , H3FFF , DT3 ]
[ F0 MV , WX2 , DT2 ]
X3E
[ F65 WAN
, WX3 , H3FFF
, DT1 ]
[ F0 MV , WX2 , DT0 ]
X3E
X3E
The channels of conversion data read by turning on/off the conversion data switching flags X3F and
X3E are distinguished.
The conversion data of CH0 is stored into DT0.
The most significant two bits are masked by "00" with F65 WAN (AND) instruction, and the data is stored in
DT1. (Note)
The conversion data of CH2 is stored into DT2.
The most significant two bits are masked by "00" with F65 WAN (AND) instruction, and the data is stored in
DT3.
(Note):In the case of data of CH1, it can be replaced with the transfer instruction F0 MV as the conversion data
switching flag is "00".
4-27