EasyManua.ls Logo

Panasonic FP0R Series - Page 57

Panasonic FP0R Series
92 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4.4 Analog I/O Unit (FP0R-A21/A42)
4-31
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 , DT0 , WY2 ]
1
>
1
>
>= K 8000 , DT0
CH0
<= K-8000 , DT1
R9010
[ F0 MV , DT1 , WY3 ]
1
>
1
>
>= K 8000 , DT1
CH1
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 0 , DT0
R9010
[ F0 MV , DT0 , WY2 ]
1
>
1
>
>= K16000 , DT0
CH0
<= K 0 , DT1
R9010
[ F0 MV , DT1 , WY3 ]
1
>
1
>
>= K16000 , DT1
CH1
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.

Table of Contents

Related product manuals