
8. USAGE EXAMPLE
IMR01Y36-E2
89
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 CH1 “Set value (SV): D10005” of Controller 1.
•
•
•
Sets 250 to CH4 “Set value (SV): D10006” of Controller 2.
2.
Set Bit 0 (Controller 1) and Bit 1 (Controller 2) for “Setting state selection: D10001” to
“1: Setting enabled.”
3.
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.
4.
Sets 0 (reset) to CH1 “Set value (SV): D10005” of Controller 1.
•
•
•
Sets 0 (reset) to CH4 “Set value (SV): D10012” of Controller 2.
•
•
•
•
•
•
MOV
&100
D10005
1.00
MOV
&250
D10012
1.00
1.00
T0000
TIMH
0000
#20
MOV
#3
D10001
1.00
DIFD
1.01
MOV
#0
D10001
1.01
MOV
#0
D10012
MOV
#0
D10005
Sets 100 to D10005 when
relay 1.00 is turned ON.
•
•
•
Sets 250 to D10012 when
relay 1.00 is turned ON.
Activate timer T0000 by setting
to 200 ms when relay 1.00 is
turned ON.
Sets 0003H (Bit 0: 1, Bit 1: 1)
to D10001 when relay 1.00 is
turned ON.
Differentiating the fall signal of the
relay1.00 activates the relay 1.01.
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 D10012 when
relay 1.01 is turned ON.