EasyManua.ls Logo

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008
1405 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
Loading...
850
Interrupt Control Instructions Section 3-20
Reads the operating status of the internal timer of the scheduled interrupt
task specified by N, and outputs that information to D. With this function,
MSKR(692) can indicate whether the internal timer is stopped or operat-
ing, and indicate the interrupt time interval if it is operating.
4. N = 14 or 15: Reading a Scheduled Interrupt Task’s Internal Timer PV
Reads the internal timer PV of the scheduled interrupt task specified by N,
and outputs that information to D. The internal timer’s PV is the time that
has elapsed since the scheduled interrupt started (when MSKS(690) was
executed), or the time that has elapsed since the last scheduled interrupt
started (CJ1M 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 used to set the scheduled interrupt time is set as the Sched-
ule Interrupt Interval in the PLC Setup.
Flags
Precautions MSKR(692) can be executed in the main program or in interrupt tasks.
Operation Examples Example for CS1W-INT01/CJ1W-INT01
When CIO 000000 turns ON in the following example, MSKR(692) reads the
current mask status of Interrupt Input Unit 2 and stores it in D00100.
When CIO 000001 turns ON in the following example, MSKS(690) reads the
rising/falling edge designations for Interrupt Input Unit 0 and stores it in
D00101.
Example for Scheduled Interrupts
When W00000 goes from OFF to ON while the internal timer is operating for
scheduled interrupt 1, MSKR(692) reads the interrupt time interval setting and
outputs the setting to D00100.
Name Label Operation
Error Flag ER ON if N is not within the specified range of 0 to 5 (0 to 15
for the CJ1M).
OFF in all other cases.
MSKR
0
D00100
000000
N
D
1 1 11
15 14 13
12
0 1 01
11 10 9
8
1 1 11
765
4
0 010
321
0
F5 F2
D00100
0: Interrupt enabled
1: Interrupt masked
MSKR
2
D00101
000001
N
D
0 0 00
15 14 13
12
0 0 11
11 10 9
8
0 0 01
765
4
1 001
321
0
0319
D00101
0: Rising edge
1: Falling edge

Table of Contents

Related product manuals