EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 pages
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...
737
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
High-speed Counter/Pulse Output Instructions
3
PRV
C: Control Data
D: First Destination Word
z Operand Specifications
Flags
C PRV(881) function
0000 hex Reads the PV.
0001 hex Reads status.
0002 hex Reads range comparison results.
00 3 hex
P = 0000 to 0003: Reads the output frequency of pulse output 0 to 3.
C = 0003 hex: Standard operation
P = 0010: Reads the frequency of high-speed counter input 0 (high-speed counter 0 only).
C = 0003 hex: Standard operation
C = 0013 hex: 10-ms sampling method for high frequency (supported only by CJ1M CPU Units with unit version 3.0 or
later or CJ2M CPU Units)
C = 0023 hex: 100-ms sampling method for high frequency (supported only by CJ1M CPU Units with unit version 3.0 or
later or CJ2M CPU Units)
C = 0033 hex: 1-s sampling method for high frequency (supported only by CJ1M CPU Units with unit version 3.0 or
later or CJ2M CPU Units)
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
P, C --- --- --- --- --- --- --- --- --- --- OK
--- ---
---
--- --- --- ---
D OKOKOKOKOKOKOKOK OK OK --- OK
Name Label Operation
Error Flag P_ER ON if the specified range for P or C is exceeded.
ON if the combination of P and C is not allowed.
ON if reading range comparison results is specified even though range comparison is not being executed.
ON if reading the output frequency is specified for anything except for high-speed counter 0.
ON if specified for a port not set for a high-speed counter.
ON if executed for a port not set for an input interrupt in counter mode.
For a CJ2M CPU Unit, ON for any function that uses I/O on the Pulse I/O Module even if a Pulse I/O Module is not
mounted.
OFF in all other cases.
Carry Flag
(CJ2M CPU Units
Only)
P_CY ON if a high-frequency method is specified for reading the frequency of high-speed counter 0 and the data could
not be read dependably within the sampling time because the counter value was reset.
OFF in all other cases.
D
D+1
0
15
DPV
0
15
Lower word of PV
Upper word of PV
2-word PV
Pulse output PV, high-speed counter input PV, pulse output frequency,
high-speed counter input frequency, high-speed counter input for
high-speed counter input 0, or range comparison results for 1 to 32
ranges
1-word PV
Interrupt input PV in counter mode, status, range comparison results
for 8 ranges

Table of Contents

Related product manuals