![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262194.webp)
11 High-speed Counters
11-24
CP2E CPU Unit Software User’s Manual(W614)
2
Set the range comparison table starting at word D2000. Even though range 1 is the only range
being used, all
3
0 words must still be dedicated to the range comparison table.
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.
Word
Setting
Function
D2000
#61A
8
Rightmost 4 digits of range 1 lower
limit
Lower limit value: 25,000
D2001
#0000
Leftmost 4 digits of range 1 lower limit
D2002
#6
3
9C
Rightmost 4 digits of range 1 upper
limit
Upper limit value: 25,500
D200
3
#0000
Leftmost 4 digits of range 1 upper limit
D2004
#000C
Range 1 interrupt task number = 12 (C hex)
D2005
to
D200
8
All
#0000
Range 2 lower and upper limit values
(Not used and do not need to be set.)
Range 2 settings
D2009
#FFFF
Disables range 2.
~
D2014
D2019
D2024
D2029
#FFFF
Set the fifth word for ranges
3
to 6 (listed at left) to #FFFF (Range
settings are invalid) to disable those ranges.
W
0.00
@CTBL
#0001
#0001
D2000
Use high-speed co
u
nter 1.
Register a range comparison ta
b
le
and start comparison operation.
First comparison ta
b
le
w
ord.
W
0.00
0.02
0.03
High-speed co
u
nter 1 PV
(in A272 and A273)
Lo
w
er limit: 25,000 (61A8 hex)
Upper limit: 25,500 (639C hex)
Co
u
nting ena
b
led
Cyclic task
exec
u
tion
Cyclic task
exec
u
tion
Cyclic task
exec
u
tion
Processing
interr
u
pted
Processing
interr
u
pted
Interr
u
pt task
12 exec
u
tion
Interr
u
pt task
12 exec
u
tion
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......