![Galil Motion Control DMC-40x0 Series Command Reference Manual Download Page 15](http://html1.mh-extra.com/html/galil-motion-control/dmc-40x0-series/dmc-40x0-series_command-reference-manual_558773015.webp)
DMC-40x0 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. A label can only be defined at the beginning of a new line.
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
DL Labels
left
statement
subroutine
EXAMPLES:
#Loop
;
JP
#Loop
, x=10
;
'wait until x becomes 10
#Move
PR
X
=1000
BG
X
;
'define a subroutine to move the x axis
AM
X
EN
Summary of Contents for DMC-40x0 Series
Page 2: ......
Page 4: ......
Page 10: ...vi i Table of Contents DMC 40x0 Command Reference This Page is Left Blank Intentionally ...