Galil DMC-1400 Manuale Utente

Pagina di 235
DMC-1400  Series Command Reference #ININT 
● 111   
#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 and requires something running in thread 0 to be active. 
USAGE:     
While Moving 
Yes 
 
 
In a Program 
Yes 
 
 
Command Line 
No 
 
 
Controller Usage 
ALL 
RELATED COMMANDS: 
Input interrupt 
Read digital input 
Return 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: An application program must be executing for the automatic subroutine to function, which 
runs in thread 0. 
 
NOTE: Use RI to end the routine