755
Interrupt Control Instructions
Section 3-20
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 C200H-INT01
When CIO 000000 turns ON in the following example, MSKR(692) reads the
current mask status of Interrupt Input Unit 2. In this case, interrupt inputs 1, 3,
and 5 are enabled.
Example for Scheduled Interrupts
When CIO 000100 turns ON in the following example, MSKR(692) reads the
setting for scheduled interrupt 2. In this case, the time interval is set to 1,000
(3E8 hexadecimal) which is equivalent to 10 s if the scheduled time interval
units are set to 10 ms in the PLC Setup.
3-20-3 CLEAR INTERRUPT: CLI(691)
Purpose
Clears or retains recorded interrupt inputs for I/O interrupts or sets the time to
the first scheduled interrupt for scheduled interrupts.
CLI(691) is not supported by the CS1D CPU Units.
Ladder Symbol
MSKR
0
D00100
000000
N
S
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
S
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
D
D
N
: Interrupt identifier
S
: Interrupt data
CLI(691)
N
S
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...