PLC Redundancy (Device)


I have 2 identical PLCs connected with Ignition Server, via Modbus TCP driver.
I want to check the PLC Handshake and If there is no Handshake with one PLC then switch the Ignition communication to second PLC and vise versa.

In addition, PLC system having dual Ethernet cards (Two Ethernet ports with different IP addresses), In this case I need to check Handshake with both the ports.

I just read about “system.device.setDeviceHostname”. Could it help me in this application?