Sample program (14-bit mode: For ranges of -10 V to +10 V and -5 V to +5 V)
The following program shows the case that the data of DT0 to DT1 is converted and output to
the CH0 to CH1 of the first expansion analog I/O unit (FP0R-A42/A21). The range for
checking digital values written in the output area is changed.
<=
K-8000 , DT0
R9010
①
[ F0 MV
>
1
<=
K-8000 , DT1
R9010
①
[ F0 MV
>
1
Sample program (14-bit mode: (For ranges of 0 to 10 V, 0 to 5 V, 0 to 20 mA and 4 to
20 mA)
<=
K
R9010
①
[ F0 MV
>
1
<=
K
R9010
①
[ F0 MV
>
1
①
R9010
Always ON relay
②
Checks whether the lower limit value is within the data range that the unit can convert correctly.
③
Checks whether the upper limit value is within the data range that the unit can convert correctly.
It is executed when the execution condition is ON and written data is within the upper and lower limits.
ⓐ
Data for CH0 is set in DT0, and CH0 is specified by the output data switching flag.
It is executed when the execution condition is ON and written data is within the upper and lower limits.
ⓑ
Data for CH1 is set in DT1, and CH1 is specified by the output data switching flag.
>=
②
, DT0
, WY2
④
⑤
>=
②
, DT1
, WY3
④
⑤
0 , DT0
>=
②
, DT0
, WY2
④
⑤
0 , DT1
>=
②
, DT1
, WY3
④
⑤
4.4 Analog I/O Unit (FP0R-A21/A42)
K 8000 , DT0
③
]
K 8000 , DT1
③
]
K16000 , DT0
③
]
K16000 , DT1
③
]
1
>
ⓐ CH0
1
>
ⓑ
CH1
1
>
ⓐ CH0
1
>
ⓑ
CH1
4-31