Galil Motion Control optcom Page 29
Optima DMC-1xxx and DMC-18x2 Command Reference
AI
i
18
AI
FUNCTION: After Input
DESCRIPTION:
The AI command is a trippoint used in motion programs to wait until after a specified input
has changed state. This command can be configured such that the controller will wait
until the input goes high or the input goes low.
ARGUMENTS: AI +/-n
where
n is an integer between 1 and 96 and represents the input number. If n is positive, the
controller will wait for the input to go high. If n is negative, it waits for n to go low.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
ALL CONTROLLERS
RELATED COMMANDS:
@IN[n]
Function to read input 1 through 8
"II (Binary EC)"
Input interrupt
#ININT
Label for input interrupt
EXAMPLES:
#A Begin
Program
AI 8
Wait until input 8 is high
SP 10000
Speed is 10000 counts/sec
AC 20000
Acceleration is 20000 counts/sec2
PR 400
Specify position
BG A
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.