HA_GLOBAL_VARIABLES (GVL)

Global variables for the status of high availability and ethernet data exchange

InOut:

Name

Type

Initial

Comment

xHaModPrimary

BOOL

FALSE

State of the AC500 CPU. TRUE = PM acts as Primary. FALSE = PM acts as Secondary

xHaModCpuStop

BOOL

FALSE

IF TRUE -> Indicates the CPU in STOP mode

xHaModDataErr

BOOL

FALSE

IF TRUE -> HA data sync is in error state

wHaModDataErNo

WORD

0

HA data sync error code

diHaModTimersBaseTime

DINT

0

HA base time value for HA timers

xHaModErr

BOOL

FALSE

IF TRUE -> HA error state

dwHaModOwnIP

DWORD

0

Own IP address configured for sync link connection

dwHaModOtherIP

DWORD

0

Other PMs IP address configured for sync link connection

dwHaModServerAlive

DWORD

0

Life counter incremented by OPC server

wHaModEthLife

WORD

0

Ethernet Life Count

timHaModSyncTimeOut

TIME

TIME#20ms

LifeCom1 UDP synchronization timeout. May be changed by user based on Cycle time of HA Task

timCanTimeOut

TIME

TIME#100ms

LifeCom2 CAN timeout. May be changed by user based CAN and distance between 2 CPUs

uiHaModSyncArrayIndex

UINT

0

Synchronization Array index

stHAEthRecData

HaModEthFrameHeader

Received Ethernet Header

iTotalSyncData

UINT

0

Total sync data for the HA System

iNoOfEthFrames

INT

0

Number of Packages sent for for all Sync Data

xNoCiBus

BOOL

FALSE

No CI BUS configured, HA Standalone

timLifecom2Timeout

TIME

TIME#50ms

Time limit to check whether lifecom2 is received when configured via Modbus TCP

xEnableDualSync

BOOL

FALSE

Enable the dual sync mode, if configured ETH sync connection breaks, data sync will be switched to other onboard ETH port

timDualSyncPingTimeout

TIME

TIME#100ms

Dual sync ping timeout which defines the timeout to receive ping reply from another PLC