Functions
Ä
Chapter 6.12 ‘Counter - Additional functions’
on page 164
n Comparison value
– Via the parametrization you may preset a comparison value
that may influence the counter output respectively throw a
process interrupt when compared with the recent counter
value.
– The behavior of the output respectively the process interrupt
has to be set via the record set 0.
n Load value, end value
– You may define a main counting direction for every counter via
the parametrization.
– If "none" or "endless" is chosen, the complete counting range
is available:
Lower counter limit: - 2 147 483 648 (-2
31
)
Upper counter limit: + 2 147 483 648 (-2
31
-1)
– Otherwise you may set an upper and a lower limit by setting a
load value as start and an end value.
n Hysteresis
– The hysteresis serves the avoidance of many toggle pro-
cesses of the output and the interrupt, if the counter value is in
the range of the comparison value.
– You may set a range of 0 to 255.
– The settings 0 and 1 deactivate the hysteresis.
– The hysteresis influences zero run, comparison, over- and
underflow.
n Pulse (Pulse duration)
– The pulse duration tells for what time the output is set when
the parametrized comparison criterion is reached respectively
overstepped.
– The pulse duration can be set in steps of 2.048ms between 0
and 522.24ms.
– If the pulse duration = 0, the output is set active until the com-
parison condition is not longer fulfilled.
A register can be preset using record set (9A+x)h. The current
counter value is replaced by the register value by setting bit 5 of the
output status word without any influence to the load value.
Byte Bit 15...0
0...1
n Module selection
–
0000h = Digital/analog part activated (default)
– 0001h = Digital part activated
– 0002h = Analog part activated
n Using this record set you can de-activate the digital respectively
analog part.
n Please regard that in spite of the de-activation of the digital
respectively analog part, the process image for both components
remains reserved.
Record set 9A ... 9Dh -
Set counter value tem-
porary
Record set 9Eh -
Module selection
VIPA System 300SDeployment I/O periphery
Counter - Parametrization
HB140 | CPU | 314-6CF03 | GB | 16-43 158