![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/8d/38d56254-54fe-46e3-85ae-d3f5260e1091/38d56254-54fe-46e3-85ae-d3f5260e1091-bg88.png)
FX Series Programmable Controlers Applied Instructions 5
5-10
Controlling interrupt operations:
The PLC has a default status of disablin
interrupt operation. The EI instruction must be used
to activate the interrupt facilities. All interrupts which ph
sicall
occur durin
the pro
ram scan
period from the EI instruction until the FEND or DI instructions will have their associated
interrupt routines run. If these interrupts are tri
ered outside of the enclosed ran
e (EI-FEND
or EI-DI, see dia
ram below) the
will be stored until the EI instruction is processed on the
followin
scan. At this point the
interrupt routine will be run.
If an individual interrupt is to be disabled its associated special M coil must be driven ON.
While this coil is ON the interrupt routine will not be activated. For details about the disablin
M
coils see the PLC device tables in chapter 8.
Nesting interrupts:
Interrupts ma
be nested for two levels. This means that an interrupt ma
be interrupted durin
its operation. However, to achieve this, the interrupt routine which ma
be further interrupted
must contain the EI and DI instructions; otherwise as under normal operation, when an
interrupt routine is activated all other interrupts are disabled.
Simultaneously occurring interrupts:
If more than one interrupt occurs sequentiall
, priorit
is
iven to the interrupt occurrin
first. If
two or more interrupts occur simultaneousl
, the interrupt routine with the lower pointer number
is
iven the hi
her priorit
.
Using general timers within interrupt routines:
FX PLC’s have a ran
e of special timers which can be used within interrupt routines. For more
information please see pa
e 4-18, Timers Used in Interrupt and ‘CALL’ Subroutines.
Input trigger signals - pulse duration:
Interrupt routines which are tri
ered directl
b
interrupt inputs, such as X0 etc., require a
si
nal duration of approximatel
200
µ
sec, i.e. the input pulse width is equal or
reater than
200
µ
sec. When this t
pe of interrupt is selected, the hardware input filters are automaticall
reset to 50
µ
sec. (under normal operatin
circumstances the input filters are set to 10msec.).
Pulse catch function:
Direct hi
h speed inputs can be used to ‘catch’ short pulsed si
nals. When a pulse is received
at an input a correspondin
special M coil is set ON. This allows the ‘captured’ pulse to be
used to tri
er further actions, even if the ori
inal si
nal is now OFF. FX0, FX0S and FX0N
units have this function permanentl
active for inputs X0 throu
h X3 with special M coils
storin
the pulse data at M8056 to M8059. FX
(2C)
and FX
2N
units require the EI instruction
(FNC 04) to activate pulse catch for inputs X0 throu
h X5, with M8170 to M8175 indicatin
the
cau
ht pulse. Note that, if an input device is bein
used for another hi
h speed function, then
the pulse catch for that device is disabled.
EI
DI
FEND
I301
IRET
Disabled Interrupts
Enabled Interrupts
routine
Interrupt
EI
FEND
IRET
I101
Disabled Interrupts
Enabled Interrupts
routine
Interrupt