EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 751

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
718
High-speed Counter/Pulse Output Instructions Section 3-20
At high frequencies (above 1 kHz), the function counts the number of
pulses within a fixed interval (the sampling time) and calculates the fre-
quency from that count. One of the following three sampling times can
be selected by the third digit of C1.
Low-frequency counting
At frequencies below 1 kHz, the Standard Calculation Method is used,
regardless of the sampling time setting.
Converting Counter PV to Total Number of Revolutions (C1 = 0001 hex)
If C1 is 0001 hex, PRV2(883) calculates the cumulative number of revolutions
from the counter PV and pulses/revolution setting.
Conversion result = Counter PV
÷ Pulses/revolution
Flags
Examples Example 1
When CIO 0.01 is ON in the following programming example, PRV2(883)
reads the present pulse frequency at high-speed counter 0, converts that
value to rotation speed (r/min), and outputs the hexadecimal result to D201
and D200.
Example 2
When CIO 0.01 is ON in the following programming example, PRV2(883)
reads the counter PV, converts that value to number of revolutions, and out-
puts the hexadecimal result to D301 and D300.
Sampling time Value of C1 Description
10 ms 0@10 hex Counts the number of pulses every 10 ms.
The error is 10% max. at 1 kHz.
100 ms 0@20 hex Counts the number of pulses every 100 ms.
The error is 1% max. at 1 kHz.
1 s 0@30 hex Counts the number of pulses every 1 s. The
error is 0.1% max. at 1 kHz.
Name Label Operation
Error Flag ER ON if high-speed counter 0 is disabled in the settings.
ON if C1 is not in the specified range (0000 or 0001).
ON if the pulses/revolution setting in C2 is 0000.
Overflow Flag OF ON if the maximum value is exceeded for a Y CPU Unit.
PRV2
#0000
#0003
D200
0.01
Converting frequency to rotation speed
Pulses per revolution
PRV2
#0001
#0003
D300
0.01
Converting counter PV to total number of revolutions
Pulses per revolution

Table of Contents

Related product manuals