Down Counter - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

4.7.2

Down Counter

The Down Counter (DNCTR) function counts down from a preset value. The minimum
Preset Value (PV) is zero; the maximum PV is +32,767 counts. When the Current Value
(CV) reaches the minimum value, -32,768, it stays there until reset. When DNCTR is reset,
CV is set to PV. When the power flow input transitions from OFF to ON, CV is
decremented by one. The output is ON whenever CV  0.
The output state of DNCTR is retentive on power failure; no automatic initialization occurs
at power-up.
Note: For DNCTR to function properly, you must provide an initial reset to set the CV to the value in
PV. If DNCTR is not initially reset, CV will decrement from 0 and the output of DNCTR will be
set to ON immediately.
Operands
Parameter Description
Address
The beginning address of a three-word WORD array:
(????)
Word 1: Current Value (CV)
Word 2: Preset Value (PV)%
Word 3: Control word
R
When R receives power flow, it resets the counter's CV to PV. Power flow
PV
Preset Value to copy into word 2 of the counter's address
when the counter is enabled or reset. 0 PV  32,767. If PV is
out of range, word 2 cannot be reset.
CV
The current value of the counter
Example – Down Counter
DNCTR counts 5000 new parts before energizing output %Q00005.
GFK-2950C
Do not use the Address of the down counter with other
instructions. Overlapping references cause erratic
counter operation.
February 2018
Chapter 4. Ladder Diagram (LD) Programming
Warning
Allowed Operands
R, W, P, L, symbolic
All except S, SA, SB, SC
All except S, SA, SB, SC
and constant
Optional
No
No
No
No
135

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents