Previous in Forum: Fault Level   Next in Forum: Roupen
Close
Close
Close
13 comments
Rate Comments: Nested
Commentator

Join Date: Apr 2008
Posts: 59
Good Answers: 2

Modbus Master on RS485 with Digital Outputs

02/25/2020 12:09 PM

I have a small application, which is actually getting complex because it’s so simple… We have a control system which is out of I/O and we can’t program it any further. However, it does have a Modbus RTU Slave accessible on RS485. So I’m looking for a Modbus RS485 Master that has 4 x digital outputs. What would be the simplest implementation of this? I just need to give it 4 discrete input register addresses and have it drive 4 relay outputs. A PLC seems overkill and has a very large footprint for such a small requirement.
Thanks for your help!

Register to Reply
Pathfinder Tags: Modbus Master Relay I/O
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#1

Re: Modbus Master on RS485 with Digital Outputs

02/25/2020 12:49 PM
__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#2
In reply to #1

Re: Modbus Master on RS485 with Digital Outputs

02/25/2020 7:22 PM
__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Commentator

Join Date: Apr 2008
Posts: 59
Good Answers: 2
#4
In reply to #1

Re: Modbus Master on RS485 with Digital Outputs

02/26/2020 8:43 AM

I've used several devices like those before, but unless I'm missing something, they are all Modbus SLAVES. It's misleading that they state they "support the MODBUS MASTER protocol" when those devices are slaves. I need a device that is the Master, and will poll the slaves.

Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#7
In reply to #4

Re: Modbus Master on RS485 with Digital Outputs

02/26/2020 1:56 PM

I though you said you had a controller with RS485 channel available...? It seems to me you should be able to control everything through the MOD-4DO...

__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Commentator

Join Date: Apr 2008
Posts: 59
Good Answers: 2
#9
In reply to #7

Re: Modbus Master on RS485 with Digital Outputs

02/27/2020 11:38 AM

No, our existing controller cannot be modified, but can be a Modbus Slave. Which is why I specifically said (a few times now) "I’m looking for a Modbus RS485 Master".

I don't know how else to say what I've already said.

My device = Modbus Slave.

Device I require = Modbus Master with digital outputs.

I could work with a solution that had a Modbus Master that read from my slave and also drove another slave (e.g. the MOD-4DO), however, I need that master.

MOD-4DO is a Modbus Slave, not a Master.

Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#10
In reply to #9

Re: Modbus Master on RS485 with Digital Outputs

02/27/2020 4:09 PM
__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Guru

Join Date: Jul 2010
Posts: 669
Good Answers: 176
#11
In reply to #10

Re: Modbus Master on RS485 with Digital Outputs

02/27/2020 10:10 PM

No. The statement, "The device can be controlled over TCP/IP using the Modbus TCP protocol" means that the module is a Modbus slave that can be controlled, by an Modbus master that does the controlling.

Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#12
In reply to #11

Re: Modbus Master on RS485 with Digital Outputs

02/27/2020 10:22 PM
__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Guru

Join Date: Jul 2010
Posts: 669
Good Answers: 176
#13
In reply to #12

Re: Modbus Master on RS485 with Digital Outputs

02/29/2020 8:27 PM

Yes

Register to Reply
Guru

Join Date: Jul 2010
Posts: 669
Good Answers: 176
#3

Re: Modbus Master on RS485 with Digital Outputs

02/25/2020 7:47 PM

I do not think the Mod-4DO module is a Modbus master. The devil is in the details.

I would expect the I/O modules to be a Modbus RTU slave with the DO's where the module has a slave ID address and each DO has a Modbus Coil address. The PLC would be the Modbus master and write the coil logic state using either FC05 (Write single coil) or FC15 (hex) (Write multiple coils). But the PLC can't do that, it's not a Modbus Master.

When the I/O module is a Modbus Master then the module has to read one or more coil registers in the PLC to determine what to do with its DO's. The PLC would have to be configured with slave registers to reflect what the I/O module's outputs should be.

And then when Master reads the PLC's coil registers, it has to change the master's DO registers to reflect the read values. That could be done, but I doubt it, because the Mod-4DO module has settings that are typical of a Modbus slave.

The on-line manual is only in Polish. Although I don't read Polish, some of the settings are self evident either through cognates of English words or their location in a table of values that are recognizable as Modbus settings.

Mod-4DO manual in Polish

1. Only Modbus slaves have a slave address, a Modbus RTU master does not have an address. Table 3.4.2 on page 7 has register 40002 that defines a slave node address value. Presumably this is the module's address, and not the target device's slave address.

2. I suspect that table 7.2 on page 9 is the table for the four coil outputs. Which would make sense for a Modbus slave.

3. The home page statement, "Our I/O modules are devices that communicate with the most popular PLC devices and devices that support the MODBUS MASTER protocol." most probably means that their Modbus Slave modules talk to Modbus Master modules, which is true, that's how Modbus works. I do not think that the statement means that the modules are Modbus masters.

4. Only Modbus slaves have register map/tables. Modbus Masters never do. The presence of register tables 3.4.2, 7.1, 7.2 define this device as a Modbus slave.

I think you need a PLC with Modbus master functionality that can do what I described above, or something like Red Lion's Data Station Plus with a DO module (I believe Red Lion has that as an automation controller under a name other than data Station.)

Register to Reply
Guru

Join Date: Jan 2007
Location: Edinburgh, Bonnie Scotland
Posts: 1334
Good Answers: 23
#5

Re: Modbus Master on RS485 with Digital Outputs

02/26/2020 12:31 PM

What device are you currently using? If it already has one Modbus slave, can you not just get another slave to add? Most masters will cope with up to 127 slaves, although there may be other limitations depending on data amounts. I don't think that there would be an issue with only four outputs.

__________________
Madness is all in the mind
Register to Reply
Power-User

Join Date: Dec 2019
Posts: 160
Good Answers: 14
#6

Re: Modbus Master on RS485 with Digital Outputs

02/26/2020 1:41 PM

I think Iris is on the right track. I would differ only in suggesting the G07C0000 with the GMDIOR00 I/O. The G07C0000 has a multitude of serial protocols, Modbus Master being one of them. Be aware it is expensive for 4 DO and watch out for a delay in updating the I/O. I would caution that if there is anything critical about the sequence of operation for the outputs you need to consider that you can't count on a predictable I/O update and might encounter some unexpected and unwanted operation in the equipment being controlled which would appear random in nature. You do have the advantage of having a display as well. The programming software is offered for free by Red Lion.

Register to Reply
Power-User

Join Date: Dec 2019
Posts: 160
Good Answers: 14
#8

Re: Modbus Master on RS485 with Digital Outputs

02/26/2020 6:17 PM

I noticed you said a PLC has such a large footprint gives me the impression you are using a rather large footprint PLC currently. You might consider a PLC such as the Panasonic FPX-C14; it's footprint is about 3.5Hx3Wx3D and has 8-in and 6-outputs, relay or transistor, and it is inexpensive. You can parallel the inputs you used on the existing platform that would apply to the 4-outputs you need and then do all of the logic in the FPX. The PLC, last time I check, is about $120.00. The inputs are DC so that has to be factored in with the current inputs you are using. The biggest expense would be the software but it is about $400.00. The combined package is much less than the Red Lion approach.

Register to Reply
Register to Reply 13 comments
Copy to Clipboard

Users who posted comments:

Critcho (2); GM1964 (1); Iris (3); R_i_c_h (2); SolarEagle (5)

Previous in Forum: Fault Level   Next in Forum: Roupen

Advertisement