RedundancyManager (FB)¶
FUNCTION_BLOCK RedundancyManager
This FB can be used to manage MODBUS communication when using CODESYS Redundancy. It does NOT handle the case of both PLCs becoming standanlone and will activate MODBUS communication on both PLCs. When this FB is used I/O-Mapping should either only be done to exisiting variables or the addresses of the newly created variables need to be added to the “Registered Areas” of the redundancy configuration
- InOut:
Scope
Name
Type
Comment
Input
xForceStartBOOLCan only be used to enable MODBUS communication on the second PLC in case of a startup without link and has no effect otherwise
Inout
clientModbus Client Instance
Output
xRedundancyActiveBOOLCODESYS PLC Redundancy is available
PLC_IDINTPLC-ID = 1/2 if redundancy is activated
RedundancyStateRDCY.RedundancyStateCurrent state of CODESYS PLC Redundancy
xConnectedBOOLRedundant PLCs can communicate via the configured redundancy link
xSyncBOOLRedundant PLCs are synchronized, for details see RedundancyState output
xPrimaryBOOLMODBUS TCP Client is Primary
xBackupBOOLMODBUS TCP Client is Backup