6 - 14
6 MOTION SFC PROGRAMS
6.5.4 Clear step
Name Symbol Function
Clear step
Program name
CLR
Stops the Motion SFC program of the specified
program name.
[Operations]
(1) Stops the specified Motion SFC program running.
(2) The clear-specified Motion SFC program will not start automatically after stopped
if it has been set to start automatically.
(3) The specified program may be its self program.
(4) If the specified program is being subroutine called, the subroutine program called
is also stopped. (Shown below)
MAIN
SUB
END
SUB
WAIT
END
If the program has been "subroutine called" as shown on the left
When the call source program (MAIN) is cleared.
Even if the subroutine (SUB) is running, both the call source
program (MAIN) and subroutine (SUB) stop running.
When the subroutine (SUB) is running, the subroutine (SUB)
stops running and execution to the call source program (MAIN).
(5) When the specified program has been subroutine started, the subroutine program
started continues processing. (Shown below)
Shift
MAIN SUB
END
SUB
END
If the program has been "subroutine started" as shown on the left
When the started program (MAIN) is cleared.
Even if the subroutine (SUB) is running, the started program
(MAIN) stops running but the started subroutine (SUB)
continues processing.
When the subroutine (SUB) is cleared
If the subroutine (SUB) is running, only the subroutine (SUB)
stops running.
(6) When the servo program started from the specified program is starting, the servo
program continues processing.
[Errors]
(1) When the Motion SFC program specified with the clear step does not exist, the
Motion SFC program error [16203] will occur.
[Instructions]
(1) When the Motion SFC program specified with the clear step is not starting, an
error does not occur specifically and this step is ignored.
(2) If the Motion SFC program running is stopped by the clear step, the output is held.