Galil Motion Control optcom Page 91
Optima DMC-1xxx and DMC-18x2 Command Reference
ENDIF
i
80
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:
"II (Binary EC)"
Command to begin IF conditional statement
"ELSE"
Optional command to be used only after IF command
"JP"
Jump command
"JS"
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 false
ENDIF
End of conditional statement