Mitsubishi Electronics FX2N-5A Insect Control Equipment User Manual


 
Example program 9
9-1
9. Example program
9.1 Program example for analog input/output
The section introduces an example program to manipulate analog input/output using the
FX
2N
-5A.
Condition
System configuration:
The FX
2N
-5A (unit No. 0) is connected as a special function block nearest to the FX
0N
/
FX
1N
/FX
2N
/FX
2NC
Series PLC main unit.
Input mode:
CH1 and CH2 : Mode 0 (voltage input, -10 to +10 V
-32000 to +32000)
CH3 and CH4 : Mode 1 (current input, +4 to +20 mA
0 to 32000)
Output mode:
Analog output channel: Mode 0 (voltage output, -32000 to +32000
-10 to +10 V)
Number of times of averaging:
10 in each input channel
I/O characteristics:
Standard I/O characteristics (initial value) in each channel
Convenient function:
Not used.
I/O assignment:
X000 : Change of analog output value.
X001 : Clears the scale over error.
Y000 to Y007 : Output scale over status of each channel.
Y010 to Y027 : Output of error status.
FX2N-5A Special function block