
Chapter 11 Flow Control Statements
11-1
11.1 Program Stop
END (Statement) [Conforms to SLIM]
Function
Declares the motion end by a program.
Format
END
Explanation
The motion by a program will end if this command is executed.
This does not mean the end of the program file.
When subroutines are used, the subroutines will be arranged after the main
routine in some cases. Use this END instruction to delimit the main routine
from the subroutines.
When subroutines are not used and the END instruction is ignored, system
processing will proceed as if the final line includes END.
Related Terms
PROGRAM
Example
DEFSNG lf1, lf2, lf3
PROGRAM prog1(lf1, lf2, lf3)
END 'prog1 ends.
Commenti su questo manuale