Omron CP1L CPU UNIT - 06-2007 Operation Manual page 358

Cp1l cpu unit
Table of Contents

Advertisement

Interrupt Functions
Note
Writing the Interrupt
Task's Program
Input Interrupt
Settings and
Operation
Settings
1,2,3...
MSKS(690) has the following two functions and two of the instructions are
used in combination. If an up-differentiated input interrupt is being used, the
first MSKS(690) instruction can be omitted since the input is set for up-differ-
entiation by default.
Execution condition
@MSKS(690)
@MSKS(690)
MSKS(690) Operands
Input interrupt
Interrupt
number
task
number
Input interrupt 0
140
Input interrupt 1
141
Input interrupt 2
142
Input interrupt 3
143
Input interrupt 4* 144
Input interrupt 5* 145
*Input interrupts 4 and 5 are not supported by the CPU Units with 14 I/O
Points.
Create programs for interrupt tasks 140 to 145, which are executed by the cor-
responding input interrupt. Always put an END(001) instruction at the last
address of the program.
This example shows how to execute interrupt task 140 when input CIO 0.00
goes ON.
1. Connect an input device to input 0.00.
2. Use the CX-Programmer to set input 0 as an input interrupt in the PLC Set-
up.
3. Use the CX-Programmer to create the program to use for interrupt pro-
cessing and allocate the program to interrupt task 140.
4. Use the CX-Programmer to write MSKS(690) in the program.
W0.00
(Execution condition)
@MSKS(690)
110
#0000
@ MSKS(690)
100
#0000
1. Specifies up-differentiated or
down-differentiated input
N
interrupt.
S
2. Enables or disables the input
interrupt.
N
S
1. Up-differentiation or
Down-differentiation
N
S
Input
Execution
interrupt
condition
number
110 (or 10)
#0000: Up-
differenti-
111 (or 11)
ated
112 (or 12)
#0001:
113 (or 13)
Down-differ-
entiated
114
115
1. Specifies input interrupt 0.
2. Specifies up-differentiated input interrupt.
3. Specifies input interrupt 0.
4. Enables the input interrupt.
Section 6-1
2. Enabling/Disabling
the input interrupt
N
S
Input
Enable/
interrupt
Disable
number
100 (or 6)
#0000:
Enable inter-
101 (or 7)
rupt
102 (or 8)
#0001: Dis-
103 (or 9)
able inter-
rupt
104
105
325

Advertisement

Table of Contents
loading

Table of Contents