Omron CP1L-EL20DR-D Operation Manual page 419

Sysmac cp series cp1l-el/em cpu unit
Table of Contents

Advertisement

Interrupt Functions
Writing the Interrupt
Task's Program
Input Interrupt
Settings and
Operation
Settings
1,2,3...
Operation
MSKS(690) Operands
Input interrupt
Interrupt
number
task
muber
Count
Input interrupt 0
140
Input interrupt 1
141
Input interrupt 2
142
Input interrupt 3
143
Input interrupt 4
144
Input interrupt 5
145
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 141 when 200 up-differenti-
ated pulses have been counted at input CIO 0.05. (The counter is an incre-
menting counter.)
1. Connect an input device to input CIO 0.05.
2. Use the CX-Programmer to set input 0.05 as an input interrupt in the PLC
Setup.
3. Use the CX-Programmer to create the program to use for interrupt pro-
cessing and allocate the program to interrupt task 141.
4. Use the CX-Programmer to set a high-speed counter SV of 00C8 hex (200
decimal) in A533.
5. Use the CX-Programmer to write MSKS(690) in the program.
W0.00
(Execution condition)
MSKS(690)
111
MSKS(690)
111
When execution condition W0.00 goes ON, MSKS(690) is executed to enable
operation of the input interrupt in counter mode.
1. Up-differentiation or
Down-differentiation
N
S
Input
Count
interrupt
trigger
number
110 (or 10) #0: Up-dif-
ferentiated
111 (or 11)
pulses
#1: Down-
112 (or 12)
differenti-
ated pulses
113 (or 13)
114
115
Specifies input interrupt 1.
Specifies up-differentiated pulses.
#0
Specifies input interrupt 1.
#3
Specifies an incrementing counter,
starts counting, and enables the input
interrupt.
Section 8-1
2. Enabling/Disabling the
input interrupt
N
S
Input
Enable/
interrupt
Disable
number
#2: Start count-
100 (or 6)
ing down (dec-
101 (or 7)
rementing) and
enable inter-
102 (or 8)
rupts
#3: Start count-
103 (or 9)
ing up (incre-
menting) and
104
enable inter-
105
rupts
385

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents