Galil Motion Control manc 18x 6 Page 118
DMC-18x6 Command Reference
110
#ININT
FUNCTION: Input interrupt automatic subroutine
DESCRIPTION:
#ININT runs upon a state transition of digital inputs 1 to 8 and is configured with II. #ININT runs
in thread 0.
USAGE:
While Moving
Yes
In a Program
Yes
Command Line
No
Controller Usage
ALL
RELATED COMMANDS:
interrupt
Read digital input
from
interrupt
EXAMPLES:
II
1 ;
'arm digital input 1
#MAIN
;
'print a message every second
MG
"MAIN"
WT
1000
JP
#MAIN
#ININT
;
'runs when input 1 goes low
MG
"ININT"
AI
1
RI
NOTE: The automatic subroutine runs in thread 0.
NOTE: Use RI to end the routine