![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030890.webp)
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
1
1
15
14
13
12
0
1
0
1
11
10
9
8
1
1
1
1
7
6
5
4
0
0
1
0
3
2
1
0
F
5
F
2
D00100
0: Interrupt enabled
1: Interrupt masked
MSKR
2
D00101
000001
N
D
0
0
0
0
15
14
13
12
0
0
1
1
11
10
9
8
0
0
0
1
7
6
5
4
1
0
0
1
3
2
1
0
0
3
1
9
D00101
0: Rising edge
1: Falling edge
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...