Specifications

Table Of Contents
5 - 9
5.5.4 Clear step
Interrupt the execution of SFC program of designated program name.
Program name
CLR
(1) Description of operation
(a) The designated SFC program being executed is interrupted.
(b) Even if the SFC program (designated for "Clear") is set to automatic start, it
will not start automatically after interruption.
(c) When the designated program is calling the subroutine, the execution of
subroutine program called is also interrupted.
MAIN
SUB
WAIT
END
SUB
END
When "subroutine call" is set as shown on the left:
When MAIN is cleared
Execution of both MAIN and SUB is interrupted.
When the subroutine (SUB) is cleared
Execution of the subroutine (SUB) is interrupted to return to
MAIN if the subroutine (SUB) is being executed.
(d) When the program is designated after a subroutine is started, execution of
the started subroutine program continues.
MAIN
SUB
Shift
END
SUB
END
When "subroutine start" is set as shown on the left:
When MAIN is cleared
Even if the subroutine (SUB) is being executed, execution of
MAIN is interrupted. However, execution of the subroutine (SUB)
continues.
When the SUB is cleared
Execution of only SUB is interrupted if the subroutine (SUB) is
being executed.
(2) Error
An error occurs in the following case, in which the execution of SFC program is
interrupted.
(a) When the SFC program designated at clear step does not exist.
(3) Precautions
(a) When the SFC program designated at clear step has not been started, it will
not result in an error in particular, but is ignored.
(b) Even if the execution of SFC program is stopped at the clear step, the output
is held.