8. USAGE EXAMPLE
IMR01Y09-E3
80
Sample program (ladder)
Measured data items (IN)
Data corresponding to the measured data item (IN) ca be checked only by reading the data storage
register assigned by the configuration tool.
Setting data items (OUT)
The following procedure is required for setting data to the controller.
1.
Sets 100 to “Set value (SV): D10005” of Controller 1.
2.
Sets 200 to “Set value (SV): D10006” of Controller 2.
3.
Set bit 0 (Controller 1) and bit 1 (Controller 2) for “Setting state selection: D10001” to
“1: Setting enabled.”
4.
Set bit 0 (Controller 1) and bit 1 (Controller 2) for “Setting state selection: D10001” to
“0: Setting disabled” after a lapse of preset time* (Example: 200 ms).
* Sets any time longer than the “communication cycle time” set to the PLC.
5.
Sets 0 (reset) to “Set value (SV): D10005” of Controller 1.
6.
Sets 0 (reset) to “Set value (SV): D10006” of Controller 2.
MOV
&100
D10005
1.00
MOV
&200
D10006
1.00
1.00
T0000
TIMH
0000
#20
MOV
#3
D10001
1.00
DIFD
1.01
MOV
#0
D10001
1.01
MOV
#0
D10006
MOV
#0
D10005
Sets 100 to D10005 when relay 1.00
is turned ON.
Activate timer T0000 by setting to
200 ms when relay 1.00 is turned
ON.
Differentiating the fall signal of the
relay1.00 activates the relay 1.01.
Sets 200 to D10006 when relay 1.00
is turned ON.
Sets 0003H (bit 0: 1, bit 1: 1) to
D10001 when relay 1.00 is turned
ON.
Sets 0000H (bit 0: 0, bit 1: 0) to
D10001 when relay 1.01 is turned
ON.
Sets 0 (data reset) to D10005 when
relay 1.01 is turned ON.
Sets 0 (data reset) to D10006 when
relay 1.01 is turned ON.