![Omron CJ1G-CPUxx Instructions Manual Download Page 769](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491769.webp)
748
Interrupt Control Instructions
Section 3-20
Description
MSKS(690) controls I/O interrupts and scheduled interrupts. The value of N
identifies the interrupt.
Note
1.
MSKS(690) can be used to enable a particular I/O interrupt task only in a
particular cycle and disable the task in other cycles.
2.
Unit numbers are assigned to Interrupt Input Units in the order that they are
mounted, from left to right.
N = 4 or 5
Values 4 and 5 correspond to scheduled interrupts 2 and 3.
When N is 4 or 5, the content of S either disables the interrupt task (S=0000)
or sets the interrupt task with the specified time interval. The units for the
scheduled interrupt interval can be set in the PLC Setup to 10 ms, 1.0 ms, or
0.1 ms.
N = 14 or 15 (CJ1M CPU Unit Only)
When N is 14 or 15, the scheduled interrupt time specified in S is set for the
scheduled interrupt task specified by N, and the internal timer for the sched-
uled interrupt is reset. The time to the first interrupt for reset-starting is main-
tained.
Note
1.
The time unit for the scheduled interrupt is set in the PLC Setup.
2.
Be sure that the time interval is longer than the time required to execute
the scheduled interrupt task.
3.
For scheduled interrupts, MSKS(690) is used only to set the scheduled in-
terrupt interval and does not set the time to the first scheduled interrupt. To
accurately control the time to the first interrupt and the interrupt interval,
program CLI(691) to set the time to the first schedule interrupt just before
programming MSKS(690). If MSKS(690) is used to restart a schedule in-
terrupt for a CJ1M CPU Unit, however, the time to the first scheduled inter-
rupt will be accurate even if CLI(691) is not used.
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.
Index Registers
---
Indirect addressing
using Index Registers
---
,IR0 to ,IR15
–2048 to +2047, IR0 to
–2048 to +2047, IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –) IR0 to, –(– –) IR15
Area
N
S
Unit
N
Meaning
CS1W-INT01 or
CJ1W-IN01
0 or 1
N corresponds to the interrupt input task. Bits 0
to 7 of S correspond to interrupt input numbers
in the corresponding Interrupt Unit. MSKS(690)
masks (disables) the interrupt input when the
corresponding bit is ON and unmasks (enables)
the interrupt input when the corresponding bit is
OFF.
C200HS-INT01
0 to 3
CJ1M CPU Unit built-
in interrupt inputs
6 to 9
Unit
N
Meaning
CS1W-INT01 or
CJ1W-IN01
2 or 3
N corresponds to the interrupt input task. S
specifies the rising or falling edge as the trigger.
(The default is the rising edge.)
CJ1M CPU Unit built-
in interrupt inputs
10 to 13
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...