High-Speed Counter Interrupts; Overview - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

11 High-speed Counters

11-3 High-speed Counter Interrupts

High-speed counter interrupts can be used with any model of CP1E CPU Unit.

11-3-1 Overview

This function counts input pulses with the CPU Unit's built-in high-speed counter and executes an inter-
rupt task when the count reaches the preset value or falls within a preset range (target-value or zone
comparison). An interrupt task between 0 and 15 can be allocated with the CTBL instruction.
Cycle
Target value comparison
The specified interrupt program can be started when the
present value of the high-speed counter matches a target
value.
Instruction execution
condition
CTBL instruction executed
High-speed
Counter Unit
High-speed counter PV
Target value 1
Target value 2
0
Counting enabled
Cyclic task
Interrupted
execution
Interrupt task
execution
11-14
Rotary Encoder
Present value
Cyclic tasks
(ladder programs)
Interrupt occurs
END
I/O refresh
Cyclic task
Interrupted
Cyclic task
execution
execution
Interrupt task
execution
Built-in input
Present value matches set target value
Time
Interrupt task
Ladder diagram
END
Range comparison
The specified interrupt program can be started when the
present value of the high-speed counter enters a set range.
Instruction execution
condition
CTBL instruction executed
High-speed
Counter Unit
High-speed counter PV
Target value range
0
Time
Counting enabled
Cyclic task
execution
CP1E CPU Unit Software User's Manual(W480)
Interrupted
Cyclic task
Interrupted
execution
Interrupt task
Interrupt task
execution
execution
Time
Cyclic task
execution

Advertisement

Table of Contents
loading

Table of Contents