11-19
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
Precautions for Correct Use
Precautions for Correct Use
•
There are restrictions on the maximum response frequencies of the high-speed counters
when using target matching.
Use the counters for target matching under the frequencies in the following table.
If the pulse frequencies input to the high-speed counters are higher than those in the table,
target matching may be omitted.
•
When using target matching, the interval between interrupts for target matches must be
longer than
3
ms plus the sum of execution time for interrupt tasks that may possibly happen
at the same time.
The sum of execution time for interrupt tasks in one cycle is stored in A442.
The specified interrupt task is executed when the high-speed counter PV is within the range defined by
the upper and lower limit values.
•
The comparison conditions (upper and lower limits of the range) are registered in the comparison
table along with the corresponding interrupt task number. The specified interrupt task will be exe-
cuted once when the high-speed counter PV is in the range (Lower limit
≤
PV
≤
Upper limit).
•
A total of 6 ranges (upper and lower limits) are registered in the comparison table.
•
The ranges can overlap.
•
A different interrupt task can be registered for each range.
•
The counter PV is compared with the 6 ranges once each cycle.
•
The interrupt task is executed just once when the comparison condition goes from unmet to met.
Enabling/Disabling
pulse outputs
Counter numbers for
target matching
Increment pulse
Pulse plus direction
Up and down pulses
Differential phase (×4)
Disabling pulse
outputs or enabling
3
-
axes or less pulse out-
puts
−
100kHz max.
50kHz max.
Enabling 4-axes pulse
outputs
Only one point
100kHz max.
50kHz max.
More than two points
100kHz max.
40kHz max.
Range Comparison
N
o.2
N
o.1
N
o.1
N
o.2
High-speed co
u
nter PV
Comparison is exec
u
ted
regardless of the order of
the ranges in the ta
b
le.
Upper limit 1
Lo
w
er limit 1
Upper limit 2
Lo
w
er limit 2
Interr
u
pt task n
u
m
b
er to exec
u
te
Time
Comparison ta
b
le
Upper limit 1
Lo
w
er limit 1
Interr
u
pt task = 1
Upper limit 2
Lo
w
er limit 2
Interr
u
pt task = 2
Содержание 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: ......