Instruction manual

8. USAGE EXAMPLE
IMR01Y06-E6
89
Sample program
Continued on the next page.
Control STOP of controller.
Turn off the control RUN/STOP transfer
(Y100F: RY0F).
RST Y100F
When the PLC initial processing (PLC STOP RUN).
SET Y1019
BKRST M0 K3
Turn on the Initialize data setting request
flag (Y1019: RY19).
Turn off the Extension number setting flag
for display (M0).
Turn on the Initialize data processing
completion flag (Y1018: RY18).
SET Y1018
X1018 Y1018
When no initial data processing is finished with the initial data processing
requested.
Initialize data processing request flag (X1018: RX18) ON
Initialize data processing completion flag (Y1018: RY18) OFF
Turn off the Initialize data processing
completion flag (Y1018: RY18).
RST Y1018
X1018 Y1018
When the initial data processing is finished with no initial data processing
requested.
Initialize data processing request flag (X1018: RX18) OFF
Initialize data processing completion flag (Y1018: RY18) ON
Turn off the Initialize data setting request
flag (Y1019: RY19).
RST Y1019
X1019 Y1019
When the initial data processing is finished and the initial data setting is being
requested.
Initialize data setting completion flag (X1019: RX19) ON
Initialize data setting request flag (Y1019: RY19) ON
Turn on the Error reset request flag
(Y101A: RY1A).
SET Y101A
X101A
When the COM-JC is in the error state.
Error status flag (X101A: RX1A) ON
Turn off the Error reset request flag
(Y101A: RY1A).
RST Y101A
X101A Y101A
When the COM-JC is in the normal state and the error reset action is being
requested.
Error status flag (X101A: RX1A) OFF
Error reset request flag (Y101A: RY1A) ON