Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 748

Table of Contents

Advertisement

3. Instructions
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 Interrupt Inputs for 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.
• When MSKS(690) is used to restart the internal timer, the time from the execution of MSKS(690)
to the start of the first scheduled interrupt task is uncertain, because the existing internal timer PV
is used.
When you want to specify the interrupt start time, use CLI(691) together with MSKS(690).
(4) Resetting Internal Timers for Scheduled Interrupts (N = 14 or 15)
• Sets the time interval (specified by C) for the specified scheduled interrupt task (specified by N),
resets the internal timer's PV, and starts the internal timer. Since the internal timer's PV is reset,
this function maintains the proper interval from the execution of MSKS(690) until the start of the
first interrupt. (This operation is different from item (3), above.) (CJ1M and CJ2M CPU Units Only)
712
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)
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents