Omron CP1H-X40D Operation Manual page 228

Cpu unit sysmac cp series
Hide thumbs Also See for CP1H-X40D:
Table of Contents

Advertisement

Interrupt Functions
Note
Writing the Interrupt
Task's Program
Input Interrupt
Settings and
Operation
Settings
1,2,3...
194
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 interrupt 6* 146*
Input interrupt 7* 147*
*Input interrupts 6 and 7 are not supported by the Y CPU Units.
Create programs for interrupt tasks 140 to 147, 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. 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
116
117
1. Specifies input interrupt 0.
2. Specifies up-differentiated input interrupt.
3. Specifies input interrupt 0.
4. Enables the input interrupt.
Section 5-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
106
107

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cp1h-xa40dCp1h-y20dt-dCp1h

Table of Contents