Sample program (Switching output range: For CH0/CH1)
The following program shows the case that the output ranges of CH0 and CH1 of the first
expansion analog input unit is set.
R0
(
)
DF
[ F0 MV
R1
(
)
DF
[ F0 MV
Sample program (Switching output range: For CH2/CH3)
The following program shows the case that the output ranges of CH2 and CH3 of the first
expansion analog input unit is set.
R2
(
)
DF
[ F0 MV
R3
(
)
DF
[ F0 MV
Input a constant for specifying an output
①
range.
②
WY2
Set it for switching the output range of CH0 or HC2.
③
WY3
Set it for switching the output range of CH1 or HC3.
④
Y2E
Output data switching flags for even numbered channels. When Y2E/Y2F is OFF, the output
range of CH0 is set. When Y2E/Y2F is ON, the output range of CH2 is set.
⑤
Y2F
⑤
Y3E
Output data switching flags for odd numbered channels. When Y3E/Y3F is OFF, the output range
of CH1 is set. When Y3E/Y3F is ON, the output range of CH3 is set.
⑦
Y3F
KEY POINTS
•
For CH0/CH1, the output switching flags are reset. For CH2/CH3, the output
switching flags are set.
•
The output switching flags (bit F/bit E) are also used for setting output data.
Create a program not to overwrite each other during an operation
processing.
, H30
, WY2
①
②
, H30
, WY3
①
③
, H30
, WY2
①
②
, H30
, WY3
①
③
H30
H31
H32
H33
4.3 Analog Output Unit (FP0R-DA4)
④
Y2E
]
< RST >
⑤
Y2F
< RST >
⑥
Y3E
]
< RST >
⑦
Y3F
< RST >
④
Y2E
]
< SET >
⑤
Y2F
< SET >
⑥
Y3E
]
< SET >
⑦
Y3F
< SET >
-10 to +10V / 0~20mA
-5 to +5V / 4~20mA
0 to 10V
0 to 5V
4-21