Counting With The 24-Bit Counters; Binary Counting, Recycle Mode; Binary Counting, Non-Recycle Mode; Divide-By-N Counting, Recycle Mode - Siemens SIMATIC TI505 User Manual

High speed counter encoder module
Hide thumbs Also See for SIMATIC TI505:
Table of Contents

Advertisement

1.5

Counting with the 24-Bit Counters

Binary Counting,
Recycle Mode
Binary Counting,
Non-Recycle
Mode
Divide-by-N
Counting,
Recycle Mode
1-10
Product Overview
In binary recycle mode, the counter counts up or down on each input pulse.
In the count-up direction, a carry signal is generated when the counter
overflows (see note). In the count-down direction, a borrow signal is
generated when the count underflows (see note). When the count equals the
preset value, the output signal pulses, toggles, or latches, depending on the
output option you select.
NOTE:
Overflow: the count value increments from –1 to 0 in bipolar
format, or from 16,777,215 to 0 in unipolar format.
Underflow: the count value decrements from 0 to –1 in bipolar
format, or from 0 to 16,777,215 in unipolar format.
In binary non-recycle mode, the counter counts up or down on each input
pulse. In the count-up direction, a carry signal is generated when the
counter overflows. In the count-down direction, a borrow signal is generated
when the count underflows. When a carry or borrow signal occurs, the
counter stops.
The counter restarts when you reload the preset value into the counter, or
when you reset the counter registers by one of the following conditions:
An external INDEX pulse when WY21.07, or WY27.07, or both are set).
A PLC counter reset (WY19.02 or WY19.06).
Setting the program flag (WY20.01).
In divide-by-N recycle mode, a preset value is loaded into the counter. The
counter counts up or down on each input pulse. In the count-up direction, a
carry signal is generated when the counter overflows. In the count-down
direction, a borrow signal is generated when the count underflows. In both
cases, the carry or borrow signal reloads the counter with the preset value
and the count continues. Loading presets loads the new preset value after
the next carry or borrow pulse occurs.
High Speed Counter Encoder Module User Manual

Advertisement

Table of Contents
loading

Table of Contents