68
•
II
DMC-1000/1500 Command Reference
DMC-1000
DMC-1500
II
FUNCTION:
Input Interrupt
DESCRIPTION:
The II command enables the interrupt function for the specified inputs. m specifies the
beginning input and n specifies the final input in the range. For example, II 2,4 specifies
interrupts occurring for Input 2, Input 3 and Input 4. m=0 disables the Input Interrupts.
If only the m parameter is given, only that input will generate an interrupt.
The parameter o is an interrupt mask for all eight inputs. If m and n are unused, o contains a
number with the mask. A 1 designates that input to be enabled for an interrupt.
Example: II,,5 enables inputs 1 and 3
If any of the specified inputs go low during program execution, the program will jump to the
subroutine with label #ININT. Any trippoints set by the program will be cleared but can
be re-enabled by the proper termination of the interrupt subroutine using RI. The RI
command is used to return from the #ININT routine.
ARGUMENTS:
II m,n,o
where
m is an integer in the range 0 to 8 decimal. 0 disable interrupts
n is an integer in the range 1 to 8 decimal
o is an integer in the range 0 to 255 decimal
USAGE: DEFAULTS:
While Moving
Yes
Default Value
0
In a Program
Yes
Default Format
3.0 (mask only)
Command Line
No
Can be Interrogated
No
Used as an Operand
No
RELATED COMMANDS:
RI
Return from Interrupt
#ININT Interrupt
Subroutine
AI
Trippoint for input
EXAMPLES:
#A Program
A
II 1
Specify interrupt on input 1
JG 5000;BGX
Specify jog and begin motion on X axis
#LOOP;JP #LOOP
Loop
EN End
Program
#ININT Interrupt
subroutine
STX;MG
"INTERRUPT"
Stop X, print message
AMX After
stopped
#CLEAR;JP#CLEAR,@
IN[1]=0
Check for interrupt clear