Instruction Manual
Language Reference • Reference 207
Publication 1398-PM601A-EN-P — October 2000
WORDS
FIn
Interrupt Flag Interrupts
Purpose Interrupt n flag. These flags are turned ON automatically by a transition on the inter-
rupt n pin from OFF to ON. Interrupt 1 is on input 11 and interrupt 2 is on input 12.
Syntax FIn = OFF
variable = FIn
n The number of the interrupt n = 1 or 2.
variable The variable may be a nonvolatile flag Bn, a volatile flag Fn, or
another system flag.
Remarks These flags are not automatically cleared when read, so before checking for an inter-
rupt again, use the FIn = OFF statement. These flags are set to OFF when the program
ends.
See Also INTn, InPm
Example
F14 = FI1
FI2 = OFF
FIDXn
Encoder n index interrupt Interrupts
Purpose Encoder n index interrupt received. These flags are set to ON by an encoder interrupt.
Syntax FIDXn = OFF
variable = FIDXn
n The number of the encoder that is generating the interrupt:
n = 1 or 2.
variable The variable may be a nonvolatile flag Bn, a volatile flag Fn, or
another system flag.
Remarks These flags are not automatically cleared when read, so before checking for an inter-
rupt again, use the FIDX1 OFF statement. These flags are set to OFF when the pro-
gram ends.
See Also IDXn, IDXnPm
Example
;Use an interrupt to stop quickly following an index
FIDX1 = OFF ;clear the interrupt
D = 0.25, V = 10 ;start the move
DIF = 3, FIDX1 = ON, JUMP StopWhenMark ;conditional move
StopWhenMark:
D = .01, V = 0 ;Stopping move