Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 767

Table of Contents

Advertisement

C: Control Data
C
0000 hex
0001 hex
0002 hex
00 3 hex
D: First Destination Word
15
Lower word of PV
D
D+1
Upper word of PV
2-word PV
Pulse output PV, high-speed counter input PV,
high-speed counter input frequency for high-speed counter input 0
15
D
1-word PV
Interrupt input PV in counter mode, status, range comparison results
Operand Specifications
Word addresses
Area
CIO
WR
HR
P, C
---
---
---
D
OK
OK
OK
Flags
Name
Label
Error Flag
ER
Function
PRV(881) reads the data specified in C for the port specified in P. The possible combinations of data
and ports are shown in the following table.
P: Port specifier
0000 or 0001 hex:
Pulse output
0010 or 0011 hex:
High-speed counter input
0100, 0101, 0102, or 0103 hex:
Interrupt input in counter mode
1000 or 1001 hex:
PWM (891) output
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Reads the PV.
Reads status.
Reads range comparison results.
P = 0000 or 0001: Reads the output frequency of pulse output 0 or pulse output 1.
P = 0010: Reads the frequency of high-speed counter input 0.
C = 0003 hex: Standard operation
C = 0013 hex: 10-ms sampling method for high frequency (supported only by CJ1M CPU Units Ver. 3.0 or later)
C = 0023 hex: 100-ms sampling method for high frequency (supported only by CJ1M CPU Units Ver. 3.0 or later)
C = 0033 hex: 1-s sampling method for high frequency (supported only by CJ1M CPU Units Ver. 3.0 or later)
0
0
PV
AR
T
C
DM
EM
---
---
---
---
---
OK
OK
OK
OK
• 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 interrupt input in counter mode.
• OFF in all other cases.
0000 hex: Read PV
Not allowed.
PRV(881) function
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
---
OK
OK
---
Operation
C: Control data
0001 hex: Read status
OK
OK
OK
OK
OK
Not allowed.
OK
3. Instructions
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
0002 hex: Read range
comparison results
Not allowed.
OK
Not allowed.
Not allowed.
3
TR
bits
---
---
731

Advertisement

Table of Contents
loading

Table of Contents