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 fb (including HA utility blocks) in one project, then user can see xHaModDataErr = True and wHaModDataErNo = 16#2022 in HA_GLOBAL_VARIABLES
- InOut:
Scope
Name
Type
Initial
Comment
Input
Enable
BOOL
FALSE
1: TRUE - Enable the function block
Data
DWORD
0
2: Function block Instance input (via ADR-operator) for pointer data
Len
WORD
0
3: Function block Instance input (via SIZEOF-operator) for Size. Max 1412 Bytes
Output
Done
BOOL
FALSE
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.
Error
BOOL
FALSE
2: Error occured during execution when output Error = TRUE
ErrorID
ERROR_ID.NO_ERROR
3: Error code in case of error in the function block execution