Jump to content

How to Determine IP address of desktop PC(Modbus Master) connected to V130 (Modbus slave) using modbus IP


Recommended Posts

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? 

 

Link to comment
Share on other sites

  • MVP 2023
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

Link to comment
Share on other sites

  • MVP 2023

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...