EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 728

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...
695
Interrupt Control Instructions Section 3-19
When the internal timer is not reset, the internal timer will continue operat-
ing from the present time and the time to the first interrupt is specified
separately with CLI(691). If the time to the first interrupt is not specified
with CLI(691), the time to the first interrupt will be undefined, but sched-
uled interrupts will be started at the latest after two scheduled interrupt
intervals have elapsed.
Flags
The following table shows relevant flags in the Auxiliary Area.
Precautions Be sure that the time interval is longer than the time required to execute the
scheduled interrupt task.
When IORF(097) is being executed within an interrupt task to refresh I/O in a
Special I/O Unit, cyclic refreshing with that Special I/O Unit must be disabled
in the PLC Setup. If cyclic refreshing with the Special I/O Unit is not disabled,
IORF(097) might be executed during cyclic refreshing resulting in a non-fatal
Duplicate Refresh Error and turning ON the Interrupt Task Error Flag
(A402.13).
A440 contains the maximum processing time for interrupt tasks and the right-
most byte of A441 contains the interrupt task number of the task with the long-
est processing time.
Examples Enabling Input Interrupts in Direct Mode
When W0.00 turns ON in the following example, the first MSKS(690) (1) spec-
ifies generating input interrupts for input interrupt 1 (CIO 0.01 for the CP1H
and CIO 0.05 for the CP1L) when the interrupt input turns ON and the second
MSKS(690) (2) unmasks the interrupt.
Name Label Operation
Error Flag ER ON if N is not within the specified range.
For input interrupts: ON if S is not within the specified
range of 0000 to 0003.
For scheduled interrupts: ON if S is not within the speci-
fied range of 0000 to 270F hex when the scheduled inter-
rupt interval is in 10 or 1 ms units or 0005 to 270F hex
when the interval is in 0.1 ms units.
OFF in all other cases.
Equals Flag = OFF
Negative Flag N OFF
Name Address Operation
Interrupt Task Error
Flag
A402.13 ON in the following case:
IORF(097) was executed in an interrupt task with-
out disabling Special I/O cyclic refreshing.
Interrupt Task Error
Cause Flag
A426.15 Indicates whether Interrupt Task Error 1 or 2
occurred.
Interrupt Task Error
Tas k Nu mb er
A426.00 to
A426.11
Indicates the unit number of the Special I/O Unit
where the multiple I/O refreshing occurred.
MSKS
111
#0000
W0.00
N
S
MSKS
101
#0000
N
S
(1)
(2)

Table of Contents

Related product manuals