Modbus tcp and rtu master and slave


kanber

Recommended Posts

Hi

On same project;

Can I use daqfactory modbus tcp server on port 502 and for example on port 503 with configuration two different protocol?

Same thing for rtu also; com1 modbus rtu master com2 modbus rtu slave

 

Link to comment
Share on other sites

You are talking about Modbus Master?  Then yes, it doesn't matter.  The ports are handled by the remote device.  192.168.0.1 port 502 and 192.168.0.1 port 503 are two completely different connection points so are no different than 192.168.0.1 port 502 and 192.168.0.56 port 502.  To connect to a device you need the IP and the port.  Any changes in either of these are a different connection, even though a change of port is still the same device.

I like to think of it like a telephone to an office building.  The IP address gets you to the main office line, and the port # is the extension.  So calling the telephone number (IP address) gets you to the right building (device), but you also need to know the extension (port) of the person (protocol) you want to talk to.  If your device has both 502 and 503 open and available to receive calls (sockets), then DAQFactory can certainly connect to both simultaneously using two different DAQFactory "ports" and "devices".

 

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.