Omron SYSMAC CS Series Instruction & Reference Manual page 693

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

PRV2
Instruction
Mnemonic
COUNTER
FREQUENCY CON-
PRV2
VERT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C1
Control data
C2
Pulses per revolution
D
First destination word
C1: Control data
C1
0 *0 hex
0001 hex
C1 0
(When Conversion Type is "Frequency to speed")
Pulse Frequency Calculation Method
0 hex: Standard calculation method
1 hex: High-frequency calculation method, 10-ms sampling (See note.)
2 hex: High-frequency calculation method, 100-ms sampling (See note.)
3 hex: High-frequency calculation method, 1,000-ms sampling (See note.)
(When Conversion Type is "Frequency to speed")
Speed Unit
0 hex: r/min
1 hex: r/s (See note.)
2 hex: r/h (See note.)
Note Supported by CJM1 CPU Unit Ver. 3.0 or later only.
C2: Pulses per Revolution
Specifies the number of pulses per revolution (0001 to FFFF hex).
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
Variations
code
@PRV2
883
Block program areas
Step program areas
OK
OK
Description
Converts frequency to rotation speed.
(The second digit of C ( ) specifies the units and the third digit (*) specifies the frequency calculation method.)
Converts counter PV to total number of revolutions.
Conversion Type
0 hex: Frequency to speed
1 hex: Counter PV to total revolutions
Function
Reads the pulse frequency input from a high-speed counter and
either converts the frequency to a rotational speed (number of revo-
lutions) or converts the counter PV to the total number of revolu-
tions. The result is output to the destination words as 8-digit
hexadecimal. The frequency measurement function can be used
with high-speed counter 0 only.
PRV2
PRV2(883)
C1
C1: Control data
C2: Pulses per revolution
C2
D: First destination word
D
Subroutines
Interrupt tasks
OK
PRV2(883) function
3. Instructions
SFC action or transition
programs
OK
OK
Data type
Size
---
1
UINT
1
UDINT
2
659
3

Advertisement

Table of Contents
loading

Table of Contents