HA_GLOBAL_VARIABLES (GVL)
Global variables for the status of high availability and ethernet data exchange
- InOut:
Name
Type
Initial
Comment
xHaModPrimary
BOOLFALSE
State of the AC500 CPU. TRUE = PM acts as Primary. FALSE = PM acts as Secondary
xHaModCpuStop
BOOLFALSE
IF TRUE -> Indicates the CPU in STOP mode
xHaModDataErr
BOOLFALSE
IF TRUE -> HA data sync is in error state
wHaModDataErNo
WORD0
HA data sync error code
diHaModTimersBaseTime
DINT0
HA base time value for HA timers
xHaModErr
BOOLFALSE
IF TRUE -> HA error state
dwHaModOwnIP
DWORD0
Own IP address configured for sync link connection
dwHaModOtherIP
DWORD0
Other PMs IP address configured for sync link connection
dwHaModServerAlive
DWORD0
Life counter incremented by OPC server
wHaModEthLife
WORD0
Ethernet Life Count
timHaModSyncTimeOut
TIMETIME#20ms
LifeCom1 UDP synchronization timeout. May be changed by user based on Cycle time of HA Task
timCanTimeOut
TIMETIME#100ms
LifeCom2 CAN timeout. May be changed by user based CAN and distance between 2 CPUs
uiHaModSyncArrayIndex
UINT0
Synchronization Array index
stHAEthRecData
Received Ethernet Header
iTotalSyncData
UINT0
Total sync data for the HA System
iNoOfEthFrames
INT0
Number of Packages sent for for all Sync Data
xNoCiBus
BOOLFALSE
No CI BUS configured, HA Standalone
timLifecom2Timeout
TIMETIME#50ms
Time limit to check whether lifecom2 is received when configured via Modbus TCP
xEnableDualSync
BOOLFALSE
Enable the dual sync mode, if configured ETH sync connection breaks, data sync will be switched to other onboard ETH port
timDualSyncPingTimeout
TIMETIME#100ms
Dual sync ping timeout which defines the timeout to receive ping reply from another PLC