DMC-1400 Series Command Reference AI 19
AI
FUNCTION: After Input
DESCRIPTION:
The AI command is used in motion programs to wait until after the specified input has
occurred. If n is positive, it waits for the input to go high. If n is negative, it waits for n
to go low.
ARGUMENTS: AI +/-n where
n is an integer in the range 1 to 7 decimal for DMC-1410/1411/1417/1415/1416 and 0 to 3
decimal for the DMC-1425.
USAGE:
While Moving Yes Default Value ---
In a Program Yes Default Format ---
Command Line Yes
Can be Interrogated No
Used as an Operand No
Controller Usage ALL
RELATED COMMANDS:
@IN[n] Function to read input 1 through 7 or 1 through 3 for DMC-1425
II Input interrupt
#ININT Label for input interrupt
EXAMPLES:
#A Begin Program
AI 7 Wait until input 7 is high
SP 10000 Speed is 10000 counts/sec
AC 20000 Acceleration is 20000 counts/sec2
PR 400 Specify position
BG Begin motion
EN End Program
HINT: The AI command actually halts execution until specified input is at desired logic level. Use the
conditional Jump command (JP) or input interrupt (II) if you do not want the program sequence to
halt.