
Chapter 11 Flow Control Statements
11-3
STOPEND (Statement)
Function
This statement stops a continuously executed program or stops a program with
a cycle option after a cycle. When a cycle of a program that includes this
statement is started, the motion will not be affected even if this statement is
executed.
Format
STOPEND
Explanation
If a program in execution encounters a STOPEND statement, the system stops
the program being executed after a cycle.
Related Terms
STOP, HALT, END
Example
REM Executes a plural condition decision.
SELECT CASE Index '
The command is executed if the index value matches the CASE statement
value.
CASE 0 'When the index is 0.
STOP 'Ends a program.
CASE 1 'When the index is 1.
HALT "STOP" 'Suspends execution of the program.
CASE 2 'When the index is 2.
HOLD "STOP" 'Suspends execution of the program.
CASE 3 'When the index is 3.
STOPEND 'Stops a continuously executed program or stops the
program after a cycle.
CASE 4 'When the index is 4.
ON li1 + li2 GOSUB *samp1, *samp2, *samp3
'
Calls a subroutine of the label name written at the same level as the
value
'of li1 + li2.
CASE 5 'When the index is 5.
ON li1 + li2 GOTO *samp1, *samp2, *samp3
'
Jumps to a label written at the same level as the value of li1 + li2.
CASE 6 'When the index is 6.
END 'Declares the end of motion by a program.
END SELECT 'Declares the end of a plural condition decision
statement.
Comentarios a estos manuales