Overview Plus/Minus

This function block implements a plus/minus counter. Important: See the notes on using the counter blocks.


Inputs

PL
Plus
A positive edge at the input increases the counter value by 1.
MI
Minus
A positive edge at the input decreases the counter value by 1.
RS
Reset
A positive edge at the input resets the counter value.

Outputs

ZS
Counter value
Current counter value
MI
Minimum reached
Output becomes 1 when the counter value from the parameter Minimum has been reached.
MA
Maximum reached
Output becomes 1 when the counter value from the parameter Maximum has been reached.

Parameters

Minimum
Minimum counter value
Maximum
Maximum counter value
Init after reset
After a reset the counter is initialized with this counter value.
Reset when below minimum
Reset the counter automatically when the counter value reaches the minimum.
Reset when above maximum
Reset the counter automatically when the counter value reaches the maximum.


Important: See the notes on using the counter blocks.




See also common parameters of all function blocks.