S5-115U Manual
8.2.8
Disable/Enable Interrupt
The disable/enable interrupt operations affect interrupt and time-controlled program scanning.
They prevent process or time interrupts from interfering with the processing of a sequence of
statements or blocks. Table 8-18 lists the disable/enable interrupt operations. An example follows
the table.
Operation
Operand
IA
RA
Processing
Execution of the disable/enable interrupt operations does not depend on the RLO. These
operations do not affect the RLO or the condition codes. After the "IA" statement is processed, no
more interrupts are executed. The "RA" statement cancels the effect of "IA".
Example
Disable interrupt processing in a
specific program section and then
enable it again.
1 Only one interrupt can be stored for each interrupt line.
EWA 4NEB 811 6130-02b
Table 8-18. Disable/Enable Interrupt Operations
Disable interrupt
Enable interrupt
=
IA
A
JU
RA
Meaning
STL
Explanation
.
.
.
.
.
Q 7.5
Disable interrupt.
I2.3
.
.
.
FB 3
If an interrupt occurs, the
.
program section between the
.
operations IA and RA is scanned
.
without interruption.
Enable interrupt.
.
Interrupts that occurred in the
.
meantime are processed after
.
the "RA" operation.
STEP 5 Operations
1
8-53