Omron CP1H CPU Operation Manual page 241

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

Advertisement

Interrupt Functions
Word
Setting
D20004
#000C
D20005 to
All
D20008
#0000
D20009
#FFFF
D20014
#FFFF
D20019
D20024
D20029
D20034
D20035 to
All
D20038
#0000
D20039
#FFFF
3. Create the program for interrupt task 12. Always put an END(001) instruc-
tion at the program's last address.
4. Use CTBL(882) to start the comparison operation with high-speed counter
1 and interrupt task 12.
W0.00
@CTBL(882)
5. Operation
When execution condition W0.00 goes 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 processing is interrupted, and interrupt task 12 is processed. When
interrupt task 12 processing is completed, processing of the interrupted cy-
clic task resumes.
W0.00
CIO 0.01
High-speed counter 1 PV
(in A272 and A273)
Upper limit: 25,500 (639C hex)
Lower limit: 25,000 (61A8 hex)
Counting enabled
Function
Range 1 interrupt task number = 12 (C hex)
Range 2 lower and upper limit values
(Not used and don't need to be set.)
Disables range 2.
~
Set the fifth word for ranges 3 to 7 (listed at left) to #FFFF to
disable those ranges.
~
Range 8 lower and upper limit values
(Not used and don't need to be set.)
Disables range 8.
Use high-speed counter 1.
#0001
Register a range comparison table and start
#0001
comparison operation.
D20000
First comparison table word
Processing
Cyclic task
interrupted
processing
Interrupt task
10 processing
Section 5-1
Range 2 settings
Range 8 settings
Cyclic task
Processing
Cyclic task
interrupted
processing
processing
Interrupt task
10 processing
207

Advertisement

Table of Contents
loading

Table of Contents