Deployment
Counter additional functions
4.5 Counter additional functions
Overview
Schematic structure
Gate function
52
The following additional functions may be set for each counter via the parameterization:
n
Gate function
–
The gate function serves for the start, stop and interrupt of a count function.
n
Comparison
–
You may set a comparison value that activates res. de-activates the digital output
res. releases a process interrupt depending on the counter value.
n
Hysteresis
–
The setting of a hysteresis avoids for example a high interrupt toggling when the
value of an encoder signal shifts around a comparison value.
The illustration shows how the additional functions influence the counting behavior. The
following pages describe these functions in detail:
The activation res. de-activation of the counter happens via an internal gate (I gate). The I
gate corresponds to the software gate (SW gate). The SW gate is opened (activated) via
your user application by an edge 0-1 of the bit SW_GATE_SET of the control word in the
output area. The software gate is closed (de-activated) by an edge 0-1 of the bit
SW_GATE_RESET. If the I gate was automatically closed at "counting once", so this may
only be opened with an edge 0-1 on SW_GATE_SET. The following states influence the I
gate:
SW gate
0
1
with edge 0-1
Gate function abort and interrupt
VIPA System SLIO
influences
I gate
0
1
1
HB300 | FM | 050-1BB00 | en | 19-38