Omron CP1H CPU Operation Manual page 318

Cp1h cpu unit
Hide thumbs Also See for CP1H CPU:
Table of Contents

Advertisement

Pulse Outputs
HIGH-SPEED COUNTER
PV READ: PRV(881)
Note
284
In addition to its interrupt and high-speed counter functions, PRV(881) can be
used to read the pulse output PV or pulse output status information.
The status of the following flags is read as status information:
• Pulse Output Status Flag
• PV Underflow/Overflow Flag
• Pulse Output Amount Set Flag
• Pulse Output Completed Flag
• Pulse Output Flag
• No-origin Flag
• At Origin Flag
• Pulse Output Stopped Error Flag
PRV(881)
P
P: Port specifier
C
C: Control data
D
D: First destination word
This section explains the functions related to pulse outputs only. For details on
the PRV(881) instruction's high-speed counter or interrupt functions, refer to
5-1 Interrupt Functions or 5-2 High-speed Counters.
Operand
P
Port specifier
C
Control data
Contents
#0000: Pulse output 0
#0001: Pulse output 1
#0002: Pulse output 2
#0003: Pulse output 3
#1000: PWM output 0
#1001: PWM output 1
#0000: Read the PV.
#0001: Read the status.
#0003: Read the pulse output frequency.
#0013: Read the frequency for 10-ms sampling.
#0023: Read the frequency for 100-ms sampling.
#0033: Read the frequency for 1-s sampling.
Section 5-3

Advertisement

Table of Contents
loading

Table of Contents