EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #753 background imageLoading...
Page #753 background image
715
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Interrupt Control Instructions
3
MSKS
• 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)
Note 1 The CJ1M-CPU11/21 supports only one scheduled interrupt task, interrupt task 2 for scheduled interrupt
0.
2 The time unit for the scheduled interrupt time is set as the Schedule Interrupt Interval in the PLC Setup
(default: 10 ms).
Hint
The longest interrupt task processing time is stored in A440 (Maximum Interrupt Task Processing
Time). At the same time, the task number of the interrupt task with the longest interrupt task processing
time is stored in A441 (Interrupt Task with Maximum Processing Time).
Precaution
• Be sure that the scheduled interrupt set time interval is longer than the time required to execute the
scheduled interrupt task.
• For scheduled interrupts, MSKS(690) is used only to set the scheduled interrupt interval and does not
set the time to the first scheduled interrupt after execution of MSKS(690). The internal timer when
MSKS(690) is executed will continue from the value where is previously stopped. This means that the
time to the first scheduled interrupt will not be consistent. To accurately control the time to the first
interrupt and the interrupt interval, program CLI(691) to set the time to the first scheduled interrupt
just before programming MSKS(690). If MSKS(690) is used to restart a scheduled interrupt for a
CJ1M or CJ2M CPU Unit, however, the time to the first scheduled interrupt will be accurate even if
CLI(691) is not used.
• Scheduled interrupt tasks cannot be used for CJ2H CPU Units if synchronous unit operation is being
used. An instruction error will occur if the MSKS(690) instruction is executed with N (interrupt
identifier) set to 4 or 5.
Example Programming
z Examples for CS1W-INT01/CJ1W-INT01
When CIO 0.00 turns ON in the following example, MSKS(690) unmasks (enables) interrupt inputs in
Interrupt Input Unit 0.
When CIO 0.01 turns ON in the following example, MSKS(690) sets the rising/falling edge designations
for Interrupt Input Unit 0.
MSKS
0
D100
0.00
N
S
0011
15 14 13 12
1111
11 10 9 8
0010
7654
01
11
3210
3F27
D100
0: Enabled
1: Masked
MSKS
2
D101
0.01
N
S
0000
15 14 13 12
0101
11 10 9 8
0000
7654
00
11
3210
0502
D101
0: Rising edge
1: Falling edge

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals