![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262183.webp)
11-13
11 High-speed Counters
CP2E CPU Unit Software User’s Manual(W614)
11-2 High
-sp
eed C
oun
ter In
pu
ts
11
1
1-2-5
F
re
quency Measurement
This function measures the frequency of the high-speed counter (input pulses.)
The input pulse frequency can be read by executing the PRV instruction. The measured frequency is
output in
8
-digit hexadecimal and expressed in Hz. The frequency measurement function can be used
with high-speed counter 0 only.
The frequency can be measured while a high-speed counter 0 comparison operation is in progress.
Frequency measurement can be performed at the same time as functions such as the high-speed
counter and pulse output without affecting the performance of those functions.
z
Reading the High-speed Counter Frequency with a PRV Instruction
Precautions for Correct Use
Precautions for Correct Use
The frequency measurement function can be used with high-speed counter 0 only.
z
Specifications
* If the frequency exceeds the maximum value, the maximum value will be stored.
11-2-5 Frequency Measurement
Overview
Item
Specifications
Number of frequency mea-
surement inputs
1 input (high-speed counter 0 only)
Frequency measurement
range
High-speed counter 0:
Differential phase inputs: 0 to 50 kHz
All other input modes: 0 to 100 kHz
Measurement method
Execution of the PRV instruction
Stored data
Unit
Hz
Output data
range*
Differential phase input: 0000 0000 to 000
3
0D40 hex (0 to 200 kHz)
All other input modes: 0000 0000 to 0001
8
6A0 hex (0 to 100 kHz)
@PRV
#0010
#0013
D100
15
0
D100
D101
Present fre
qu
ency
data
u
pper
b
ytes
Exec
u
tion condition
C1: Port specifier (example for high-speed co
u
nter inp
u
t 0 (fixed))
C2: Control data for reading fre
qu
ency (10-ms sampling)
S: First destination
w
ord
Present fre
qu
ency
data lo
w
er
b
ytes
High-speed co
u
nter fre
qu
ency
that
w
as read
Содержание 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: ......