Sample program (FP0R-A42: (For ranges of 0 to 10 V, 0 to 5 V and 0 to 20 mA)
X3E
[ F0 MV
①
[ F65 WAN , WX3 , H3FFF , DT1
X3E
[ F0 MV
①
[ F65 WAN , WX3 , H3FFF , DT3
①
The channels of conversion data read by turning on/off the conversion data switching flags X3F and
X3E
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".
, WX2 , DT0
]
, WX2 , DT2
]
4.4 Analog I/O Unit (FP0R-A21/A42)
]
]
ⓐ
ⓑ
ⓒ
ⓓ
4-27