132 ● #ININT DMC-40x0 Command Reference
#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:
II Input interrupt
@IN[n] Read digital input
RI Return from interrupt
EXAMPLES:
#A
II1 ;' arm digital input 1
#MAIN ;' print message every second
MG "MAIN"
WT1000
JP #MAIN
#ININT ;'runs when input 1 goes low
MG "ININT"
AI1
RI
NOTE: The automatic subroutine runs in thread 0.
NOTE: Use RI to end the routine