![Omron CJ1M-CPU21 Operation Manual Download Page 113](http://html1.mh-extra.com/html/omron/cj1m-cpu21/cj1m-cpu21_operation-manual_742493113.webp)
84
HIGH-SPEED COUNTER PV READ: PRV(881)
Section 5-2
Description
PRV(881) reads the data specified in C for the port specified in P. The possi-
ble combinations of data and ports are shown in the following table.
■
Reading a PV (C = 0000 hex)
If C is 0000 hex, PRV(881) reads a PV as shown in the following table.
P: Port specifier
C: Control data
0000 hex:
Read PV
0001 hex:
Read status
0002 hex:
Read range
comparison
results
0003 hex:
Read high-
speed
counter
frequency
0000 or 0001 hex:
Pulse output
OK
OK
Not allowed.
OK (CJ1M
CPU Units
with unit ver-
sion 3.0 or
later only)
0010 or 0011 hex:
High-speed counter
input
OK
OK
OK
OK (high-
speed
counter 0
only)
0100, 0101, 0102, or
0103 hex: Interrupt
input in counter mode
OK
Not allowed.
Not allowed.
Not allowed.
1000 or 1001 hex:
PWM (891) output
Not allowed.
OK
Not allowed.
Not allowed.
Port and mode
Operation
Setting range
Pulse output (P =
0000 or 0001 hex)
The present value of the
pulse output is stored in
D and D+1.
8000 0000 to 7FFF FFFF hex
(
−
2,147,483,648 to
2,147,483,647)
High-speed
counter
input (P =
0010 or
0011 hex)
Linear
Mode
The present value of the
high-speed counter is
stored in D and D+1.
8000 0000 to 7FFF FFFF hex
(
−
2,147,483,648 to
2,147,483,647)
Ring
Mode
0000 0000 to FFFF FFFF hex
(0 to 4,294,967,295)
Interrupt inputs in
counter mode
(P = 0100, 0101,
0102, or 0103 hex)
The present value of the
interrupt input is stored
in D.
0000 to FFFF hex
(0 to 65,535)
Summary of Contents for CJ1M-CPU21
Page 1: ...Cat No W395 E1 03 CJ series Built in I O CJ1M CPU21 22 23 CJ1M CPU Units...
Page 2: ...CJ series Built in I O CJ1M CPU21 22 23 CPU Units Operation Manual Revised August 2004...
Page 3: ...iv...
Page 19: ...xx...
Page 79: ...50 Wiring Examples Section 3 3...
Page 217: ...188 Origin Search and Origin Return Functions Section 6 3...
Page 220: ...191 Built in Outputs Section 7 1...
Page 247: ...218 Built in Outputs Section 7 1...
Page 251: ...222 Combinations of Pulse Control Instructions Appendix A...
Page 255: ...226 Using Pulse Instructions in other CPU Units Appendix B...
Page 263: ...234 Index...
Page 265: ...236 Revision History...