HaModDataSync (FB)
FUNCTION_BLOCK HaModDataSync
The function block HaModDataSync is used to synchronize selected program variables required for High Availability (HA) operation. It shall not be used to synchronize complete function block instances. The block collects data and size information of the configured variables and provides these details to the HaModControl function block. User can configure upto 3000 instances of HaModDataSync within a project, depending on the number of HA utility blocks used. The utility blocks automatically synchronize relevant system data.
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