Omron CP1E CPU UNIT SOFTWARE User Manual page 163

Cp1e cpu unit software
Table of Contents

Advertisement

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.
W0.00
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
0.02
0.03
High-speed counter 1 PV
(in A272 and A273)
Upper limit: 25,500 (639C hex)
Lower limit: 25,000 (61A8 hex)
CP1E CPU Unit Software User's Manual(W480)
@CTBL
#0001
#0001
D2000
Counting enabled
Cyclic task
Processing
execution
interrupted
Interrupt task
12 execution
11 High-speed Counters
Use high-speed counter 1.
Register a range comparison table
and start comparison operation.
First comparison table word.
Cyclic task
Processing
execution
interrupted
Interrupt task
12 execution
Cyclic task
execution
11-25
11

Advertisement

Table of Contents
loading

Table of Contents