CounterDown - Manual - SIMATIC AX - Counter function blocks. - System.Counters,library

System.Counters library

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
7.0.17
Edition
08/2025
Language
English (original)
Package Name
@ax/system-counters

Decrements an integer value on rising signal edge.

If the loadPreset parameter is TRUE, value is the value of presetValue; changes at other parameters have no effect.

Decrementing a counter with a value of LINT#MIN will not change the value.

Parameters:

Name Type Section Description
down BOOL Input Decrement value by 1 on rising edge.
loadPreset BOOL Input Set value to presetValue.
presetValue LINT Input Value to use as preset.
zeroReached BOOL Output value is equal to or less than 0.
value LINT Output Current count value.