Modbus Driver - Configuration with 2 HostsAndPorts

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
telisabeth
Posts:7
Joined: Thu Sep 05, 2019 4:56 pm

Modbus Driver - Configuration with 2 HostsAndPorts

Post by telisabeth »

Hello,
I work with a Redundant project, 3.16 P021

My development computer is in 192.168.11.77.

I use MODBUS Driver to query two identical gateways with identical data.
The first gateway is at the IP address 192.168.11.62.
The second gateway is at the IP address 192.168.11.61.

The communication works well, and when one gateway is unavailable WOA will read well on the other available gateway and vice versa.

When both gateways are available, I would like to know which one is polled?
the first one or the second one?
I didn't find the information in the internal datapoint _Mod_Plc
An idea?

Then if I'm on the first gateway, how do I know that the second gateway is still operational in case of need ??!

Thanks !
Image

I used the debug information "-num 2 -dbg 27" and saw the IP address used by the MODBUS Driver !

WCCOAmod2:WCCOAmod (2), 2021.01.22 10:43:04.508, DRV_USR3, ModMasterConnection::sendRequest with len 12 to "192.168.11.62":502 in state 1
WCCOAmod2:2021.01.22;10:43:04:508
WCCOAmod2:00 03 00 00 00 06 02 04 05 de 00 7d
WCCOAmod2:WCCOAmod (2), 2021.01.22 10:43:04.586, DRV_USR3, ModModbus::dataAvailable TCP "192.168.11.62":502 len: 259

But how do I extract it, to use this data in my application ?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Modbus Driver - Configuration with 2 HostsAndPorts

Post by leoknipp »

Are you using a redundant PLC?
If not, why are there configured two PLCs with exactly the same data?

Best Regards
Leopold Knipp
Senior Support Specialist

telisabeth
Posts:7
Joined: Thu Sep 05, 2019 4:56 pm

Re: Modbus Driver - Configuration with 2 HostsAndPorts

Post by telisabeth »

I do not use a redundant PLC.
They are not two PLCs but two gateways,
if gateway number one is lost, WOA switches to gateway number 2.

Except that I don't have any information about the IP address of the gateway where the Driver is connected at a time t.

3 posts • Page 1 of 1