HaModCtud
(FB)
FUNCTION_BLOCK HaModCtud
Function block HaModCtud is a standard up and down counter with automatic data synchronization in a high availability system QV is TRUE, if counter is 0. QU is TRUE, if counter is PV Only internal variables and outputs are synchronized. Input variables and parameters are not synchronized. If needed, use HaModDataSync to achieve the same.
- InOut:
Scope
Name
Type
Initial
Comment
Input
Cu
BOOL
FALSE
1:Count Up
Cd
BOOL
FALSE
2:Count Down
Reset
BOOL
FALSE
3:Reset Counter to Null
Load
BOOL
FALSE
4:Load Start Value
Pv
WORD
0
5:Start Value / Counter Limit
Output
Qu
BOOL
FALSE
1:Counter reached Limit
Qd
BOOL
FALSE
2:Counter reached Null
Cv
WORD
0
3:Current Counter Value