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.
Note
It is not recommended to call utility blocks inside other function blocks in user application, this can impact the data synchronization between PLCs. For example, if HaModTon function block is used inside user’s function block, it will lead to data sync mismatch.
- InOut:
Scope
Name
Type
Initial
Comment
Input
CuBOOLFALSE
1:Count Up
CdBOOLFALSE
2:Count Down
ResetBOOLFALSE
3:Reset Counter to Null
LoadBOOLFALSE
4:Load Start Value
PvWORD0
5:Start Value / Counter Limit
Output
QuBOOLFALSE
1:Counter reached Limit
QdBOOLFALSE
2:Counter reached Null
CvWORD0
3:Current Counter Value