XW2B-80J7-1A Omron, XW2B-80J7-1A Datasheet - Page 164

no-image

XW2B-80J7-1A

Manufacturer Part Number
XW2B-80J7-1A
Description
RELAY UNIT
Manufacturer
Omron
Datasheet

Specifications of XW2B-80J7-1A

Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
XW2B80J71A
7-2-3
Disabling All
Interrupts
Enabling All
Interrupts
Interrupt Functions
Method 1:
Disabling all interrupts
in the main program
Disabling and Enabling All Interrupts
@PLS2
MSKS
MSKS
D00010
Note
Note
Note
0100
0000
0000
0001
0000
0200
0000
0000
This situation can be avoided with the programming methods shown in the fol-
lowing diagram.
Only one interrupt task number is recorded for pulse output and high-speed
counter interrupts. When a pulse output or high-speed counter interrupt is on
standby (because another interrupt is being executed or interrupts are dis-
abled) and another interrupt occurs, the earlier interrupt task number is
replaced with the most recent interrupt task number. Design the system to
allow sufficient time between interrupts for the length of the interrupt tasks to
prevent unwanted conflicts between interrupts.
All interrupts can be disabled using the DI(802) instruction, as shown below.
The following interrupts are disabled and enabled by DI(802) and EI(694).
Observe the following precautions when using DI(802).
The DI(802) instruction will disable all interrupts.
Interrupt processing will not be executed for an interrupt that occurs while
interrupts are disabled, but the interrupt event will be recorded for each type of
interrupt and interrupt processing will be executed when interrupts are
enabled.
The EI(694) instruction clears the prohibition on all interrupts that was set with
the DI(802) instruction.
Executing the EI(694) instruction merely returns the interrupts to the status
they were in before all interrupts were prohibited (disabled by DI(802)).
• Input interrupts
• Interval timer interrupts
• High-speed counter interrupts
• Pulse output interrupts
• DI(802) and EI(694) cannot be used within an interrupt task to disable or
• Do not use DI(802) to disable all interrupts unless there is a specific need
(Main program)
enable interrupts.
to do so.
(@)DI
(@)EI
Method 2:
Executing the routine in the main program instead of
the interrupt task, where it could not be executed.
0002.00
RSET 0002.00
@CTBL
PRV
D00000
D00000
0001
0002
0001
0000
(Interrupt task)
Always
P_On
ON
ER Flag
P_ER
SET 0002.00
Section 7-2
CTBL
D00000
0001
0000
141