High-Speed Counter Pv Read: Prv(881) - Omron CJ1M-CPU21 Operation Manual

Cj-series built-in i/o cpu units
Hide thumbs Also See for CJ1M-CPU21:
Table of Contents

Advertisement

HIGH-SPEED COUNTER PV READ: PRV(881)

Flags
Example
000000
000001
5-2
HIGH-SPEED COUNTER PV READ: PRV(881)
Purpose
Name
Label
Error Flag
ER
When CIO 000000 turns ON in the following example, SPED(885) starts out-
putting pulses from pulse output 0 in Continuous Mode at 500 Hz. When CIO
000001 turns ON, pulse output is stopped by INI(880).
@SPED
Pulse output 0
#0000
CW/CCW method, CW, Continuous Mode
#0000
D00100
@INI
Pulse output 0
#0000
Stop pulse output
#0003
(Not used.)
0000
PRV(881) reads the following data on the built-in I/O of CJ1M CPU Units.
• PVs: High-speed counter PV, pulse output PV, interrupt input PV in
counter mode.
• The following status information.
Status type
Pulse output status
High-speed counter input status Comparison In-progress Flag
PWM(891) output status
Operation
ON if the specified range for P, C, or NV is exceeded.
ON if the combination of P and C is not allowed.
ON if a comparison table has not been registered but
starting comparison is specified.
ON if a new PV is specified for a port that is currently out-
putting pulses.
ON if changing the PV of a high-speed counter is speci-
fied for a port that is not specified for a high-speed
counter.
ON if a value that is out of range is specified as the PV for
an interrupt input in counter mode.
ON if INI(880) is executed in an interrupt task for a high-
speed counter and an interrupt occurs when CTBL(882)
is executed.
ON if executed for a port not set for an interrupt input in
counter mode.
D00100
01F4
D00101
0000
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
PV Underflow/Overflow Flag
Pulse Output In-progress Flag
Section 5-2
Target frequency: 500 Hz
Contents
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1m-cpu23Cj1m-cpu22

Table of Contents