Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 890

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Interrupt Control Instructions
Note
Flags
Precautions
Operation Examples
000000
MSKR
N
D
000001
MSKR
N
D
850
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).
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.
Name
Label
Error Flag
ER
MSKR(692) can be executed in the main program or in interrupt tasks.
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.
15
14
1
1
D00100
0
D00100
F
0: Interrupt enabled
1: Interrupt masked
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.
15
14
D00101
0
0
2
D00101
0
0: Rising edge
1: Falling edge
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.
ON if N is not within the specified range of 0 to 5 (0 to 15
for the CJ1M).
OFF in all other cases.
13
12
11
10
9
8
7
6
1
1
0
1
0
1
1
1
5
13
12
11
10
9
8
7
6
0
0
0
0
1
1
0
0
3
Section 3-20
Operation
5
4
3
2
1
0
1
1
0
0
1
0
F
2
5
4
3
2
1
0
0
1
1
0
0
1
1
9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents