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

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

Advertisement

Interrupt Control Instructions
Related Auxiliary Area
Flags and Words
Operation Examples
000000
MSKS
N
S
000001
MSKS
N
S
Name
Address
Interrupt Task
A40213
Error Flag
Interrupt Task
A42600
Error Task
to
Number
A42611
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.
15
14
D00100
0
0
0
D00100
3
0: Enabled
1: Masked
When CIO 000001 turns ON in the following example, MSKS(690) sets the
rising/falling edge designations for Interrupt Input Unit 0.
15
14
D00101
0
0
2
D00101
0
0: Rising edge
1: Falling edge
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.
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.
Indicates the unit number of the Special I/O Unit where
the simultaneous duplicate I/O refreshing occurred.
13
12
11
10
9
8
7
6
1
1
1
1
1
1
0
0
F
13
12
11
10
9
8
7
6
0
0
0
1
0
1
0
0
5
Section 3-20
Operation
5
4
3
2
1
0
1
0
0
1
1
1
2
7
5
4
3
2
1
0
0
0
0
0
1
1
0
2
845

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents