Sample program (Output range switching)
The following program shows the case that the input range of CH0 and CH1 of the first
expansion analog I/O unit (FP0R-A21/A42) is set.
R0
(
)
DF
[ F0 MV
R0
(
)
DF
[ F0 MV
①
Input a constant for specifying an output
range.
②
WY2
Set it for switching the output range of CH0.
③
WY3
Set it for switching the output range of CH1.
④
Y2E
Output data switching flag for CH0. When Y2E is OFF and Y2F is ON, the output range of CH0 is
set.
⑤
Y2F
⑤
Y3E
Output data switching flag for CH1. When Y3E is OFF and Y3F is ON, the output range of CH1 is
set.
⑦
Y3F
, H30
, WY2
①
②
, H30
, WY3
①
③
H30
H31
H32
H33
4.4 Analog I/O Unit (FP0R-A21/A42)
Y2E
]
< RST >
Y2F
< SET >
Y3E
]
< RST >
Y3F
< SET >
-10 to +10V / 0 to 20mA
-5 to +5V / 4 to 20mA
0 to 10V
0 to 5V
4-35