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:
LL List labels
DL Labels left
JP Jump statement
JS Jump 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