![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268885.webp)
846
Interrupt Control Instructions
Section 3-20
Related Auxiliary Area
Flags and Words
Operation Examples
Examples for CS1W-INT01/CJ1W-INT01
When CIO 000000 turns ON in the following example, MSKS(690) unmasks
(enables) interrupt inputs in Interrupt Input Unit 0.
When CIO 000001 turns ON in the following example, MSKS(690) sets the
rising/falling edge designations for Interrupt Input Unit 0.
Example for Scheduled Interrupts
1.
When W00000 goes from OFF to ON in the following example, MSKS(690)
sets a 15-second time interval for scheduled interrupt 0, and starts the in-
ternal timer. (In this case, the scheduled time interval units are set to 1 ms.)
2.
When W00001 goes from OFF to ON, the internal timer is stopped for
scheduled interrupt 0, which stops the generation of timer interrupts.
Name
Address
Operation
Interrupt Task
Error Flag
A40213
ON in the following cases:
1.
An interrupt task longer than 10 ms was executed dur-
ing I/O refreshing with a C200H Special
I/O Unit or Remote I/O Slave Rack. (CS Series only)
2.
If Interrupt Task Error Detection is enabled in the PLC
Setup, the Interrupt Task Error Flag will turn ON if the
following conditions occur for the same Special I/O
Unit.
• There is a conflict between an IORF, FIORF (CJ1-
H-R only), IORD, or IOWR instruction executed in
the interrupt task and an IORF, FIORF (CJ1-H-R
only), IORD, or IOWR instruction executed in the
cyclic task.
• There is a conflict between an IORF, FIORF (CJ1-
H-R only), IORD, or IOWR instruction executed in
the interrupt task and the CPU Unit’s I/O refreshing
(END refreshing).
Note
When Special I/O Unit Cyclic Refreshing is enabled in the
PLC Setup, and an IORF, FIORF (CJ1-H-R only), IORD, or
IOWR instruction is executed for the same Special I/O Unit,
there will be duplicate refreshing and an Interrupt Task
Error will occur.
Interrupt Task
Error Task
Number
A42600
to
A42611
Indicates the unit number of the Special I/O Unit where
the simultaneous duplicate I/O refreshing occurred.
MSKS
0
D00100
000000
N
S
0
0
1
1
15
14
13
12
1
1
1
1
11
10
9
8
0
0
1
0
7
6
5
4
0
1
1
1
3
2
1
0
3
F
2
7
D00100
0: Enabled
1: Masked
MSKS
2
D00101
000001
N
S
0
0
0
0
15
14
13
12
0
1
0
1
11
10
9
8
0
0
0
0
7
6
5
4
0
0
1
1
3
2
1
0
0
5
0
2
D00101
0: Rising edge
1: Falling edge
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...