DMC-18x6 Command Reference
80
EN
FUNCTION: End
DESCRIPTION:
The EN command is used to designate the end of a program or subroutine. If a subroutine was
called by the JS command, the EN command ends the subroutine and returns program flow to
the point just after the JS command.
The EN command is used to end the automatic subroutines #MCTIME and #CMDERR.
ARGUMENTS: EN m, n where
m = 0:
Return from subroutine without restoring trippoint
m = 1:
Return from subroutine and restore trippoint
Note 1: The default value for the argument is 0.
Note 2: Use the RE command to return from the interrupt handling subroutines #LIMSWI and
#POSERR. Use the RI command to return from the #ININT subroutine.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
m=0
In a Program
Yes
Default Format
Command Line
No
Controller Usage
ALL CONTROLLERS
RELATED COMMANDS:
Return from error subroutine
Return from interrupt subroutine
EXAMPLES:
#A Program
A
PR 500
Move A axis forward 500 counts
BGA Begin
motion
AMA
Pause the program until the A axis completes the motion
EN
End of Program
Note: Instead of EN, use the RE command to end the error subroutine and limit subroutine. Use the RI
command to end the input interrupt subroutine