EasyManua.ls Logo

Omron CP1E CPU UNIT SOFTWARE - Page 163

Omron CP1E CPU UNIT SOFTWARE
450 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
11-25
11 High-speed Counters
CP1E CPU Unit Software User’s Manual(W480)
11-3 High-speed Counter
Interrupts
11
11-3-3 High-speed Counter Interrupt Instruction
3
Create the program for interrupt task 12.
4
Use the CTBL instruction to start the comparison operation with high-speed counter 1 and inter-
rupt task 12.
When execution condition W0.00 turns ON, the comparison starts with high-speed counter 1.
When the PV of high speed counter 1 is between 25,000 and 25,500, cyclic task execution is
interrupted, and interrupt task 12 is executed.
When interrupt task 12 execution is completed, execution of the interrupted cyclic task resumes.
W0.00
@CTBL
#0001
#0001
D2000
Use high-speed counter 1.
Register a range comparison table
and start comparison operation.
First comparison table word.
W0.00
0.02
0.03
High-speed counter 1 PV
(in A272 and A273)
Lower limit: 25,000 (61A8 hex)
Upper limit: 25,500 (639C hex)
Counting enabled
Cyclic task
execution
Cyclic task
execution
Cyclic task
execution
Processing
interrupted
Processing
interrupted
Interrupt task
12 execution
Interrupt task
12 execution

Table of Contents

Related product manuals