Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 765

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
PRV2
Instruction
Mnemonic
COUNTER
PRV2
FREQUENCY CONVERT
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).
D: First Destination Word
15
D
Conversion result (Rightmost 4 digits)
D+1
Conversion result (Leftmost 4 digits)
728
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
0
Function
PRV2(883) reads the pulse frequency input from a high-speed
counter and either converts the frequency to a rotational speed or
converts the counter PV to the total number of revolutions. The
result is output to the destination words as 8-digit hexadecimal.
PRV2
PRV2(883)
C1
C1: Control data
C2: Pulses per revolution
C2
D: First destination word
D
Subroutines
Interrupt tasks
OK
PRV2(883) function
CS/CJ/NSJ Series Instructions Reference Manual (W474)
SFC action or transition
programs
OK
OK
Data type
Size
WORD
1
UINT
1
UDINT
2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents