Galil Motion Control manc 18x 6 Page 13
DMC-18x6 Command Reference
5
#
FUNCTION: Label (subroutine)
DESCRIPTION:
The # operator denotes the name of a program label (for example #Move). Labels can be up to
seven characters long and are often used to implement subroutines or loops. Labels are
divided into (a) user defined and (b) automatic subroutines. User defined labels can be
printed with LL and the number of labels left available can be queried with MG _DL. The
automatic subroutines include #CMDERR, #LIMSWI, #POSERR, #ININT, #AUTO, and
#MCTIME.
ARGUMENTS: #nnnnnnn where
nnnnnnn is a label name up to seven characters
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
No
Controller Usage
ALL
RELATED COMMANDS:
labels
left
statement
subroutine
EXAMPLES:
#Loop; JP#Loop, x=10
;'wait until x becomes 10
#Move
PRX=1000
BGX
;'define a subroutine to move the x axis
AMX
EN