Modbus over RS232 - odd connection problem

AdrianEL

Member
Join Date
Nov 2013
Location
Edinburgh
Posts
33
OK so here is the setup;

RedLion G3 HMI Panel is communicating over an RS232 port using Modbus RTU protocol to an AB Micrologix 1400 PLC. The communication is not a direct wire but via a radio link at 9600,8,N,1. All timeouts are set very high (like 5000ms) to give propagation time.

I found that;

1. Using a PC with a Modbus Slave simulator in place of the Micrologix PLC I can send data up and down the radio link with absolute reliability and the RedLion G3 requests and receives responses and puts data in the right tags etc.

2. Using a PC with a Modbus Master simulator, plugged directly into the MicroLogix PLC and simulating exactly the same Modbus sentence as the RedLion G3 the PLC responds and sends back the data requested.

3. All the cables used are those in the final installation to prove they are working.

BUT

Plug the radio directly into the Micrologix PLC and there is no communication Radio shows receive transmissions from the G3 but the PLC does not respond indicating that it thinks it is not receiving (anything?) a valid Modbus sentence.

I have tried swapping Tx and Rx on the cables just in case.

It is like the RS232 port on the Micrologix and the port on the Radio are incompatible. Is that possible? Anyone got any other ideas I could try.

Thanks

Adrian
 
Thanks for the replies -

The radios are 169MHz on a licenced frequency. I am certain that the radios are working.

I have wired only the Tx Rx and GND connections on the RedLion G3 and the AB PLC. There does not seem to be a need for any other signals because using only these three connections I can communicate with both devices in both directions perfectly using a PC.
 
Thanks for the replies -

The radios are 169MHz on a licenced frequency. I am certain that the radios are working.

At that low frequency, you may need a slower baud rate. When we use UHF (~450 Mhz), we have to limit the baud to 4800. I have not dealt with any VHF radios, so I cannot say what the baud rate restrictions might be. I would also follow Peter's suggestion about trying DF1 protocol, just to prove all the connections. Some data radio modems will handle the Modbus timing just fine, and they usually advertise that fact. Those that don't advertise it...who knows?

AdrianEL said:
I have wired only the Tx Rx and GND connections on the RedLion G3 and the AB PLC. There does not seem to be a need for any other signals because using only these three connections I can communicate with both devices in both directions perfectly using a PC.

I normally only need these signals, so I think your are okay there.
 
Again I appreciate your reply -

The radios are X8200 models from Warwick Wireless who have been very helpful. They programmed the radios for us and selected the baud rate. They also carrie out a site survey to select the frequency etc and we have a wider than normal bandwidth in our licence from OFCOM. Basically the radios were plug and play - once we found a blown fuse they just worked fine. I can reprogram the AB PLC and the G3 panel to a slower baud rate but what puzzles me is that when I replace the AB PLC with a simulator everything works OK.

Oh and this - we are polling the Modbus slave only once every 5 seconds. The radios have a data buffer so have plenty of time to transmit the Modbus sentence and they know to wait a few ms to check that they have all bytes to send.
 
Last edited:

Similar Topics

Hello, I been trying to pull the probe readings from my Metro M400 air gages through a modbus to a plc. I have a connection right now between the...
Replies
1
Views
1,123
Hi, Can someone confirm me: If there is case with RS232 protocol there can be only 1 slave per 1 master on communication link On RS485 can be...
Replies
3
Views
2,855
I am trying to communicate from a Micrologix 1400 chan 2 to a SC2124M scanner via modbus rtu. I have taken a straight through cable with RS232 on...
Replies
8
Views
2,783
Having an issue in which trying to communicate via modbus on an ACM+. I made the redundant serial cable myself, and verified it with my...
Replies
4
Views
2,417
Hello, I usually use MLX1100 with 1763-NC01 cable to connect my RS485 modbus slaves. But now i have RS232 device (modbus slave) and i wonder if i...
Replies
1
Views
1,875
Back
Top Bottom