EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 734

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
701
Interrupt Control Instructions Section 3-19
Input Interrupts: N = 100 to 107 or 6 to 9
Recorded interrupts are either cleared or retained according to the value of S
for the input interrupt specified by N.
If an input interrupt task is being executed and an interrupt input with a differ-
ent interrupt number is received, that interrupt number is recorded internally.
The recorded input interrupts are executed later in order of their priority (from
the lowest number to the highest). CLI(691) can be used to clear these
recorded interrupts before they are executed.
Scheduled Interrupts: N = 4
N is 4, the content of S specifies the time interval to the first scheduled inter-
rupt task after MSKS(690) is executed.
High-speed Counter Interrupts: N = 10 to 13
Recorded interrupts are either cleared or retained according to the value of S
for the high-speed counter interrupt specified by N.
Flags
Precautions A new interrupt input will be ignored if that interrupt has already been
recorded. Furthermore, a new interrupt input will be ignored if it is received
while its interrupt task is being executed.
Examples Input Interrupts
When W0.00 turns ON in the following example, CLI(691) clears all interrupts
stored for input interrupt 0.
Interrupt
input n
Internal
status
Recorded interrupt retained
Recorded interrupt cleared
Internal status
Interrupt input n
MSKS(690)
Execution of scheduled
interrupt task.
Time to first
scheduled interrupt
Name Label Operation
Error Flag ER ON if N is not within the specified range.
ON if S is not 0000 or 0001 hex (for high-speed counter
interrupts and input interrupts only).
ON if S is not within the specified range of 0000 to 270F
hex for scheduled interrupts.
OFF in all other cases.
CLI
100
#0001
W0.00
N
S

Table of Contents

Related product manuals