shrikant Posted November 5, 2018 Report Share Posted November 5, 2018 Hello, I am using V130 PLC with Ethernet card configured as Modbus IP slave to communicate with desktop PC running control software configured as Modbus IP Master. I am able to communicate, data exchange happening perfectly. Now I want to know IP address of desktop PC (Modbus master) to which PLC is currently connected, this is to limit connection with only desktop PC at a time. Are there any system operands which holds IP address of Modbus master when PLC configured as Modbus slave? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted November 5, 2018 MVP 2022 Report Share Posted November 5, 2018 10 hours ago, shrikant said: which holds IP address of Modbus master Not that I know of, but this is such a variable that it would be hard to enforce, given the innate address changes that might occur across the network anyway, depending on the setup. Happy for someone else to say I'm wrong. I do recall Joe T having a method of using MAC address to verify access, but I don't know whether it can be used or is suitable for your application.....I think it was for some other sort of direct access. I'm sure he will elaborate on this soon, given my mention of it. cheers, Aus Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted November 6, 2018 MVP 2022 Report Share Posted November 6, 2018 There are no system operands which contain this data. The MAC address method I've used returns the address of the PLC (contained in SDW 22 and 23) for router security configuration. Maybe the Creators know if a way to sniff the incoming TCP packets using the TCP_RAW protocol. The IP of the Master could be extracted from that. Joe T. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.