Input Interrupts (Counter Mode) - Omron CP1H CPU Operation Manual

Cp1h cpu unit
Hide thumbs Also See for CP1H CPU:
Table of Contents

Advertisement

Interrupt Functions
Operation
Restrictions
5-1-3

Input Interrupts (Counter Mode)

Overview
Relationship of Input Bits,
Task Numbers, and
Counters
Note
When execution condition W0.00 goes ON, MSKS(690) is executed to enable
CIO 0.00 as an up-differentiated input interrupt.
If CIO 0.00 goes from OFF to ON (up-differentiation), processing of the cyclic
task that is currently being executed will be interrupted and processing of
interrupt task 140 will start. When the interrupt task processing is completed,
processing of the interrupted ladder program will restart.
W0.00
0.00
MSKS(690) executed
Cyclic task processing
Inputs cannot be used for input interrupts when they are being used as gen-
eral-purpose (normal) inputs or quick-response inputs.
This function counts up-differentiated or down-differentiated input signals and
executes an interrupt task when the count reaches the set value.
• The counter-mode input interrupts use the same input terminals as the
direct-mode input interrupts. Refer to 5-1-2 Input Interrupts (Direct Mode)
for details.
• The counter input mode can be set to up or down (incrementing or decre-
menting) with MSKS(690).
• The counter-mode input interrupts start the same interrupt tasks (140 to
147) as the direct-mode input interrupts.
• The maximum input response frequency is 5 kHz total for all counter-
mode input interrupts.
Input bits
X/XA
Y CPU
Input interrupt
CPU
Unit
number
Unit
0.00
0.00
Input interrupt 0 140
0.01
0.01
Input interrupt 1 141
0.02
1.00
Input interrupt 2 142
0.03
1.01
Input interrupt 3 143
1.00
1.02
Input interrupt 4 144
1.01
1.03
Input interrupt 5 145
1.02
---
Input interrupt 6 146 (see note) A546
1.03
---
Input interrupt 7 147 (see note) A547
*Input interrupts 6 and 7 are not supported by the Y CPU Units.
Processing
Cyclic task
processing
interrupted
Interrupt
task 140
processing
Function
Interrupt task
number
(0000 to FFFF)
A532
A533
A534
A535
A544
A545
Section 5-1
Processing
interrupted
Interrupt
task 140
processing
Counter words
SV
PV
A536
A537
A538
A539
A548
A549
A550
A551
193

Advertisement

Table of Contents
loading

Table of Contents