CounterUp - 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

Increments an integer value on rising signal edge.

If the reset parameter is TRUE, value is 0; changes at other parameters have no effect.

Incrementing a counter with a value of LINT#MAX will not change the value.

Parameters:

Name Type Section Description
up BOOL Input Increment value by 1 on rising edge.
reset BOOL Input Set value to 0.
presetValue LINT Input Value to use as preset.
presetReached BOOL Output value is equal to or greater than presetValue.
value LINT Output Current count value.