Omron CP1L Operation Manual page 380

Sysmac cp series
Hide thumbs Also See for CP1L:
Table of Contents

Advertisement

Interrupt Functions
Writing the Interrupt
Task's Program
Input Interrupt
Settings and
Operation
Settings
346
MSKS(690) Operands
Input interrupt
number
Input interrupt 0
Input interrupt 1
Input interrupt 2** 142
Input interrupt 3** 143
Input interrupt 4* 144
Input interrupt 5* 145
Note
*Input interrupts 4 and 5 are not supported by the CPU Units with 10 or 14 I/O
Points.
**Input interrupts 2 and 3 are not supported by the CPU Units with 10 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.04
goes ON.
1,2,3...
1. Connect an input device to input 0.04.
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)
Interrupt
1. Up-differentiation or
task
Down-differentiation
number
N
Input
interrupt
number
140
110 (or 10)
141
111 (or 11)
112 (or 12)
113 (or 13)
114
115
MSKS(690)
1. Specifies input interrupt 0.
110
#0
2. Specifies up-differentiated input interrupt.
MSKS(690)
3. Specifies input interrupt 0.
100
#0
4. Enables the input interrupt.
2. Enabling/Disabling
the input interrupt
S
N
Execution
Input
condition
interrupt
number
#0: Up-dif-
100 (or 6)
ferentiated
101 (or 7)
#1: Down-
102 (or 8)
differenti-
103 (or 9)
ated
104
105
Section 6-1
S
Enable/
Disable
#0: Enable
interrupt
#1: Disable
interrupt

Advertisement

Table of Contents
loading

Table of Contents