HA_CS31_CTU - HA Up Counter

../_images/4f8e12e8fe5e86320a33139001cdc98b

Function block HA_CS31_CTU

General Information
Available as of PLC runtime system V1.3 and above
Included in library HA_CS31_AC500_V13.lib (V1.3) and above
Type Function Block with historical values.

This function block is a standard up counter with automatic data synchronization in a high availability application.

Note

Only internal variables and outputs are synchronized. Input variables and parameters are not synchronized. If needed, use HA_CS31_DATA_SYNC to achieve the same.

Parameter CV (Counter Variable) will be initialized with 0 if RESET=TRUE. If parameter CU (Count Up) has a rising edge from FALSE to TRUE, parameter CV will be raised by 1. Parameter Q will return TRUE when CV is greater or equal to the upper limit PV (Preset Value).