Flags function, 2 instructions, D: first destination word operand specifications – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 348

2 Instructions
2-312
CP1E CPU Unit Instructions Reference Manual(W483)
D: First Destination Word
Operand Specifications
Flags
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.
Area
Word addresses
Indirect DM addresses
Constants
CF
Pulse bits
TR
bits
CIO
WR
HR
AR
T
C
DM
@DM
*DM
P, C
---
---
---
---
---
---
---
---
---
OK
---
---
---
D
OK
OK
OK
OK
OK
OK
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.
• OFF in all other cases.
P: Port specifier
C: Control data
0000 hex: Read PV
0001 hex: Read status
0002 hex: Read range
comparison results
0000 or 0001 hex:
Pulse output
OK
OK
Not allowed.
0010 to 0015 hex:
High-speed counter input
OK
OK
OK
1000 hex:
PWM (891) output
Not allowed.
OK
Not allowed.
P: Port specifier
00
3 hex: Read frequency
0003 hex: Pulse output
read high-speed counter
frequency
0013 hex: 10-ms
sampling method
0023 hex: 100-ms
sampling method
0033 hex:
1-s sampling method
0000 or 0001 hex:
Pulse output
OK
Not allowed.
Not allowed.
Not allowed.
0010 or 0015 hex:
High-speed counter input
Not allowed.
OK
(high-speed counter 0
only)
OK
(high-speed counter 0
only)
OK
(high-speed counter 0
only)
1000 hex:
PWM (891) output
Not allowed.
Not allowed.
Not allowed.
Not allowed.
D
D+1
0
15
D
PV
0
15
Lower word of PV
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
1-word PV
Status, range comparison results