High-Speed Counter Pv Read: Prv(881) (Cj1M-Cpu21/22/23 Only) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

High-speed Counter/Pulse Output Instructions
Flags
Example
000000
000001
3-21-2 HIGH-SPEED COUNTER PV READ: PRV(881) (CJ1M-CPU21/22/23
Only)
Purpose
868
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
#0000
Pulse output 0
#0000
CW/CCW method, CW, Continuous Mode
D00100
@INI
#0000
Pulse output 0
#0003
Stop pulse output
0000
(Not used.)
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 3-21
Target frequency: 500 Hz
Contents

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents