![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262187.webp)
11-17
11 High-speed Counters
CP2E CPU Unit Software User’s Manual(W614)
11-3 High
-sp
eed
Co
un
ter
Interrupts
11
11
-
3
-2
Present V
a
lue C
ompar
ison
z
Execution of CTBL and INI Instructions for Cyclic Task
Execute the instructions in the following order.
Refer to
for details.
The comparison of the high-speed counter PV has the following two ways: Target Value Comparison
and Range Comparison.
The specified interrupt task is executed when the high-speed counter PV matches a target value regis-
tered in the table.
•
The comparison conditions (target values and counting directions) are registered in the comparison
table along with the corresponding interrupt task number. The specified interrupt task will be exe-
cuted when the high-speed counter PV matches the registered target value.
•
Comparison is executed in the order set in the comparison table. Once comparison has cycled
through the comparison table, it will return and wait for a match with the first target value again.
The following examples show the operation of an interrupt task for a comparison table.
Example 1
Register the comparison table with the CTBL (COMPARISON
TABLE LOAD) instruction. Specify the interrupt tasks to be
started in this step.
Start comparison with the CTBL (COMPARISON TABLE
LOAD) or INI (MODE CONTROL) instruction. Here, high-
speed counter interrupts will be valid.
Stop with the INI (MODE CONTROL) instruction.
11-3-2 Present Value Comparison
Target Value Comparison
Register the comparison ta
b
le
Start comparison
Stop comparison
N
o.0
N
o.1
N
o.5
N
o.8
N
o.0
High-speed co
u
nter PV
Comparison is
exec
u
ted according
to the order of the
v
al
u
es in the ta
b
le.
Target
v
al
u
e 4
Target
v
al
u
e 3
Target
v
al
u
e 2
Target
v
al
u
e 1
Interr
u
pt task n
u
m
b
er that is started.
Time
Comparison ta
b
le
Nu
m
b
er of
v
al
u
es = 4
Target
v
al
u
e 1 (
w
hen co
u
nting
u
p)
Interr
u
pt task = 0
Target
v
al
u
e 2 (
w
hen co
u
nting
u
p)
Interr
u
pt task = 1
Target
v
al
u
e 3 (
w
hen co
u
nting
u
p)
Interr
u
pt task = 5
Target
v
al
u
e 4 (
w
hen co
u
nting
u
p)
Interr
u
pt task = 8
Содержание 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: ......