User manual

4.3 Analog Output Unit (FP0R-DA4)
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.
[ F0 MV , H30 , WY2 ]
R0
DF
< RST >
< RST >
Y2E
Y2F
[ F0 MV , H30 , WY3
]
R1
DF
< RST >
< RST >
Y3E
Y3F
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.
[ F0 MV , H30 , WY2 ]
R2
DF
< SET >
< SET >
Y2E
Y2F
[ F0 MV , H30 , WY3 ]
R3
DF
< SET >
< SET >
Y3E
Y3F
Input a constant for specifying an output
range.
H30
-10 to +10V / 020mA
H31
-5 to +5V / 420mA
H32 0 to 10V
H33 0 to 5V
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.
4-21