172 RI DMC-1400 Series Command Reference
RI
FUNCTION: Return from Interrupt Routine
DESCRIPTION:
The RI command is used to end the interrupt subroutine beginning with the label #ININT. An
RI at the end of this routine causes a return to the main program. The RI command also
re-enables input interrupts. If the program sequencer was interrupted while waiting for a
trippoint, such as WT, RI1 restores the trippoint on the return to the program. RI0 clears
the trippoint. To avoid returning to the main program on an interrupt, use the command
ZS to zero the subroutine stack. This turns the jump subroutine into a jump only.
ARGUMENTS: RI n where
n = 0 or 1
0 clears interrupt trippoint
1 restores trippoint
USAGE:
While Moving No Default Value ---
In a Program Yes Default Format ---
Command Line Yes
Can be Interrogated No
Used as an Operand No
Controller Usage ALL
RELATED COMMANDS:
#ININT Input interrupt subroutine
II Enable input interrupts
EXAMPLES:
#A;II1;JP #A;EN Program label
#ININT Begin interrupt subroutine
MG "INPUT INTERRUPT" Print Message
SB 1 Set output line 1
RI 1 Return to the main program and restore trippoint
HINT: An applications program must be executing for the #ININT subroutine to function.