20 ● AL DMC-1400 Series Command Reference
AL FUNCTION: Arm Latch
DESCRIPTION:
The AL command enables the latching function (high speed position capture) of the
controller. When the AL command is used to arm the position latch, the encoder position
of the main encoder input will be captured upon a low going signal on Input 1. The
command RL returns the captured position value. When interrogated or used in an
operand the AL command will return a 1 if the latch is armed or a zero after the latch has
occurred. The CN command will change the polarity of the latch.
ARGUMENTS: ALn where
n is X (or Y for the DMC-1425) or
n is SX for the aux encoder on DMC-1415/16
USAGE:
While Moving Yes Default Value 0
In a Program Yes Default Format 1.0
Command Line Yes
Can be Interrogated No
Used as an Operand Yes
Controller Usage ALL
OPERAND USAGE:
_ALx contains the state of the latch. 0 = not armed, 1 = armed.
RELATED COMMANDS:
RL Report Latch
EXAMPLES:
#START Start program
AL Arm latch
JG 50000 Set up jog at 50000 counts/sec
BG Begin the move
#LOOP Loop until latch has occurred
JP #LOOP,_AL=1
RL Transmit the latched position
EN End of program