HaModDataSync (FB)
FUNCTION_BLOCK HaModDataSync
Function block HaModDataSync is intended to be used for synchronizing different instances of function blocks in the HA application. It collects data and size information from the connected FB and delivers details to HaModControl fb. User can use upto 3000 instances of HaModDataSync fb in one project. This number is dependent on the number of High availability utility blocks used. The utility blocks are synchronizing relevant data automatically.
Note
If user has configured more than 3000 instances of HaModDataSync function block (including HA utility blocks) in one project, then errors xHaModDataErr = True and wHaModDataErNo = 16#2022 in HA_GLOBAL_VARIABLES are generated.
Note
In the user program if Interfaces(ITF) is used in programming, in the same POU do not call the HaModDataSync function block.
- InOut:
Scope
Name
Type
Initial
Comment
Input
EnableBOOLFALSE
1: TRUE - Enable the function block
DataDWORD0
2: Function block Instance input (via ADR-operator) for pointer data
LenWORD0
3: Function block Instance input (via SIZEOF-operator) for Size. Max 1412 Bytes
Output
DoneBOOLFALSE
1: Block process bit. This output always has to be considered together with output Error. If Error is TRUE, an error occurred. In this case, the error number can be read at output ERROR_ID.
ErrorBOOLFALSE
2: Error occured during execution when output Error = TRUE
ErrorIDERROR_ID.NO_ERROR
3: Error code in case of error in the function block execution