Omron CJ - INSTRUCTIONS Reference Manual page 752

Table of Contents

Advertisement

3. Instructions
Note If high-speed interrupt function is enabled for a CJ2 CPU Unit with unit version 1.1 or later, an error will not occur and the
Error Flag will remain OFF even if the time unit is set to 0.1 ms for scheduled interrupt 0 (N = 4).
Related PLC Setup Settings
Name
Scheduled Interrupt
Specifies the time unit to use to specify the scheduled interrupt time. Set the time unit when executing scheduled
Interval
interrupts.
The scheduled interrupt time is set using MSKS(690).
Related Auxiliary Area Flags and Words
Name
Address
Duplicate Refresh
A402.13
Error Flag
Duplicate Refresh
A426.15
Error Cause Flag
Duplicate Refresh
A426.00
Error Unit Number
to
A426.11
Function
When the program execution starts, the interrupt inputs that generate I/O interrupts/input interrupts are
masked (disabled), and the internal timers creating the timer interrupts that generate scheduled
interrupt tasks are stopped.
Use MSKS(690) to enable the I/O interrupts/input interrupts and timer interrupts, so that the
corresponding interrupt tasks can be executed.
MSKS(690) controls the execution of interrupt tasks. The value of N specifies the interrupt task and the
kind of processing that will be performed.
(1) Enabling/Disabling the I/O Interrupts and Input Interrupts (N = 0 to 3, 6 to 9, or 100 to 107)
• Enables or disables the interrupt inputs specified by N, based on the status of the bits in C. With
this function, MSKS(690) can control whether or not each I/O interrupt task and input interrupt
task is executed.
• When an interrupt input is enabled, any interrupts detected up to that point will be cleared.
(2) Specifying the Differentiation for I/O Interrupts and Input Interrupts (N = 2, 3, 10 to 13, or 110
to 117)
• Specifies whether the interrupt inputs specified by N are up-differentiated or down-differentiated,
based on the status of the bits in C.
• Use the differentiation specification together with the enabling/disabling function. If MSKS(690) is
not executed to specify up or down differentiation, the interrupt inputs are up-differentiated (the
default setting).
• When MSKS(690) is executed to specify an interrupt input's up or down differentiation, any inter-
rupts detected up to that point will be cleared.
(3) Starting and Stopping Internal Timers for Scheduled Interrupts (N = 4 or 5)
• Sets the scheduled interrupt interval (specified by C) for the specified scheduled interrupt (speci-
fied by N) and starts the internal timer. The internal timer can also be stopped. With this function,
MSKS(690) can control whether or not each scheduled task is executed.
714
ON in the following cases:
1.
If Interrupt Task Error Detection is enabled in the PLC Setup, the Interrupt Task Error Flag will turn ON if the following
conditions occur for the same Special I/O Unit.
•There is a conflict between an IORF, FIORF, IORD, or IOWR instruction executed in the interrupt task and an IORF,
FIORF, IORD, or IOWR instruction executed in the cyclic task.
•There is a conflict between an IORF, FIORF, IORD, or IOWR instruction executed in the interrupt task and the CPU
Unit's I/O refreshing (END refreshing).
2.
An interrupt task longer than 10 ms was executed during I/O refreshing with a C200H Special I/O Unit or Remote I/O
Slave Rack. (CS Series only)
This stores the cause when A402.13 (Duplicate Refresh Error Flag) is ON.
1: Duplicate refresh
0: Execute interrupt task for at least 10 ms during refresh of I/O with a C200H Special I/O Unit or SYSMAC BUS Remote
I/O Slave Rack (CS Series only)
When A402.13 (Duplicate Refresh Error Flag) is ON, the information below is stored as 12 bits of binary data depending on
the status of A426.15 (Duplicate Refresh Cause Flag).
• When A426.15 is 1 (ON), the unit number of the duplicate-refreshed special I/O unit
• When A426.15 is 0 (OFF), the task number of the interrupt task executed for 10 ms or more (CS Series only)
Description
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Settings
10 ms (default)
1.0 ms
0.1 ms

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF