Galil Motion Control manc 18x 6 Page 89
DMC-18x6 Command Reference
81
ENDIF
FUNCTION: End of IF conditional statement
DESCRIPTION:
The ENDIF command is used to designate the end of an IF conditional statement. An IF
conditional statement is formed by the combination of an IF and ENDIF command. An
ENDIF command must always be executed for every IF command that has been executed. It
is recommended that the user not include jump commands inside IF conditional statements
since this causes re-direction of command execution. In this case, the command interpreter
may not execute an ENDIF command.
ARGUMENTS: ENDIF
USAGE:
While Moving
Yes
In a Program
Yes
Command Line
No
Controller Usage
ALL CONTROLLERS
RELATED COMMANDS:
Optional command to be used only after IF command
Error! Reference source not
found.
Jump command
Jump to subroutine command
EXAMPLES:
IF (@IN[1]=0)
IF conditional statement based on input 1
MG " INPUT 1 IS ACTIVE Message to be executed if "IF" conditional is true
ENDIF
End of conditional statement