HAModSecondLifecom (FB)

FUNCTION_BLOCK HAModSecondLifecom

{attribute ‘conditionalshow’ := ‘XJ*o-kfZ8Ah)2t9_/&I'}

InOut:

Scope

Name

Type

Initial

Comment

Input

IP_ADD_PM1

DWORD

0

IP address of the PM1 - CPU connected to Line A

SecSlot

BYTE

0

Slot number on which second communication LifeCom2 is configured. Range 1 to 3.

IpAdrCpuALifecom2

STRING

‘0.0.0.0’

IP Address(on which 2nd LifeCom Communication is configured) of AC500 CPU connected to PLC A

IpAdrCpuBLifecom2

STRING

‘0.0.0.0’

IP Address(on which 2nd LifeCom Communication is configured) of AC500 CPU connected to PLC B

bitCAN2nLifeCom

BOOL

FALSE

2nd Lifbit via CAN

bitMOD2nLifeCom

BOOL

FALSE

2nd Lifbit via MODBUS

bitUDP2nLifeCom

BOOL

FALSE

2nd Lifebit via UDP

stHA

HaModStatusPlc

Own CPU HA status derived from lifecom 1 HA1

stHaModCi52xFieldStatus

HaModCi52xFieldStatus

CI52x bus status

fbGetOnwIP

EthOwnIP

Read Own IP address

Output

bitHAotherRUNSTATE

BOOL

FALSE

Other CPU in RUN STATE

stHAother

HaModStatusLifecom2

Other CPU HA status derived from lifecom 2

IP_send_ADR_ForLC2

DWORD

0

Send IP address for LC2 Lib3649

Methods:

Evaluate2ndLifeCom

Receive2ndLifeComModbus

SendReceive

Receive2ndLifeComCan

SendReceive2ndLifeComUdp

Reset

Structure: