Jump to content

how do i configure my PLC for dual ModbusTCP Slave.


Recommended Posts

  • MVP 2014

Hi Tim,

Unilogic doesn't support 2 slaves on the same protocol.

Since it's ethernet you may find that the two masters can connect and each poll the same slave without issue, this would depend on how rapidly the masters were each polling the slave.  This would definitely be a problem on RS485, but Ethernet can handle some level of simultaneous requests.  I suspect if both masters made a poll request at the same time, one of them would be buffered until the other one was answered, then the buffered request would be answered.

I understand if you want a more tightly engineered solution, and for that you would need to add something external like the Moxa Mgate product that can allow multiple masters to access a single slave.

Link to comment
Share on other sites

  • MVP 2023
11 hours ago, tim.snelling said:

This sounds like a step backwards

Agree.  Have never done this, but if you have and now can't on something way more capable, that's a bit silly.

Tim, if your other devices are Unitronics, would Unican work instead?

cheers, Aus

Link to comment
Share on other sites

Thanks AUS,

With the vision 230 PLC's, we are establishing a remote socket connection from 2 different applications that run on a windows OS workstation PC.

One application is connecting on the standard Modbus TCP port, and the other is connecting on a non-standard port. Both applications communicate with the PLC, and we have never had any issues with this. It's a simple setup for the 2nd socket connection via VisiLogic. So i'm confused with this issue showing up as an error in UniLogic...

We want to duplicate/improve the V230 program with a UniStream PLC.

If it was PLC to PLC, I assume UniCan would require CAN comm modules on each PLC?

Thanks, Tim

 

Link to comment
Share on other sites

  • MVP 2014

I would definitely try a test setup with two ModbusTCP masters polling the single UniStream slave.  As I said it may just work exactly the way the V230 has been working.  If you don't have the actual masters, then test with a PC based emulator.

I took a quick look and see what you mean about setting up two Modbus configs and two Scan EX blocks in Visilogic. Easy to do.

If you used UniCAN you would need CAN modules on all PLCs.  But you say you are using a windows PC as the master, so I don't think CAN is the right option.

It's frustrating that a newer version doesn't do what the old one did.  If you want to push it further with Unitronics, then yes I would open a support ticket.

 

Hope this helps, Simon

Link to comment
Share on other sites

Thanks Guys, I appreciate everything.

My problem is, I can't test anything. Hardware is being assembled in control panels, at a vendor. and then shipping to the job-site. I have to go to the job-site, to connect up all of the external IO. And I'll be expected to have the logic close to completion by the time they put  power to the panels. The only good thing at this point, is one of the Masters is only for monitoring purposes, so if that one isn't working when the site goes live, it wouldn't be tragic. But I do need to resolve this soon. I went ahead and submitted a Support Ticket.

Thanks, Tim

Link to comment
Share on other sites

If you are interested, this is the reply that I received from my Support Ticket.

With the UniStream, you can have dozens of devices connect to the PLC on the same port. All you will need to do is set up 1 Modbus TCP slave instance, and point all of your devices to the same port (502).

So it appears I can delete my Slave on port 503, and all should be good, with dual connections (or more if needed) on port 502 :)

Tim

Link to comment
Share on other sites

  • MVP 2014
5 hours ago, tim.snelling said:

If you are interested, this is the reply that I received from my Support Ticket.

With the UniStream, you can have dozens of devices connect to the PLC on the same port. All you will need to do is set up 1 Modbus TCP slave instance, and point all of your devices to the same port (502).

So it appears I can delete my Slave on port 503, and all should be good, with dual connections (or more if needed) on port 502 :)

Tim

 

Hi Tim,

Good to have Unitronics confirm that.  I suspected it was the case but have never tried it.

Simon

Link to comment
Share on other sites

  • MVP 2014
5 hours ago, tim.snelling said:

If you are interested, this is the reply that I received from my Support Ticket.

With the UniStream, you can have dozens of devices connect to the PLC on the same port. All you will need to do is set up 1 Modbus TCP slave instance, and point all of your devices to the same port (502).

So it appears I can delete my Slave on port 503, and all should be good, with dual connections (or more if needed) on port 502 :)

Tim

 

Hi Tim,

Good to have Unitronics confirm that.  I suspected it was the case but have never tried it.

Simon

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...