Forum

Notifications
Clear all

[Solved] Modbus RTU RS-485 to six meters on a MicroLogix 1400, timeouts on the far three

8 Posts
3 Users
0 Reactions
92 Views
 edj
(@edj)
Trusted Member
Joined: 2 years ago
Posts: 56
Topic starter   [#80]

Morning.

Six panel power meters on an RS485 chain back to a MicroLogix 1400 doing Modbus RTU master. 19200 8N1, about 400 ft of shielded twisted pair from the panel to the compressor room.

Meters 1 to 3 near the panel read fine. Meters 4, 5 and 6 at the far end time out most of the time, though now and then a good read gets through. Meter 6 is the only one with the termination jumper on, whoever installed it did that.

I metered the cable end to end, no shorts, and tried 9600, which was slightly better but nowhere near fixed. Somebody here wants to buy a repeater for the middle of the run. Before I spend the money, is 400 ft too long for RS485? And is meter 6 being the only one with the jumper on part of this, or does that not matter at 400 ft?


Advertisement

   
Quote
(@marekw)
New Member
Joined: 2 years ago
Posts: 0
 

400 ft is nothing for RS485, a kilometre works at 19200. Before you buy a repeater: with the master idle, what DC voltage do you read A to B at meter 6? And which terminal have you got on A at meter 1 versus meter 4? Some makers print A and B the other way round.


Advertisement

   
ReplyQuote
 edj
(@edj)
Trusted Member
Joined: 2 years ago
Posts: 56
Topic starter  

A to B idle at meter 6, 0.02 V. Nothing there. At the panel end it's 0.2 V. Meters 4 and 5 are a newer batch, terminals say + and minus instead of A and B, and I put + to A.



   
ReplyQuote
(@marcob)
New Member
Joined: 2 years ago
Posts: 0
 

Two problems, both classic. Idle voltage near zero at the far end means there's no bias anywhere, so the line floats and the far receivers read noise as start bits. Bias once, at the master end, the 1400 has a jumper for it if I remember right. Terminate at both ends and only there: 120 ohm at the 1400 and the one meter 6 already has.

Then the + and minus batch. Wire by voltage, not by label. With the master idle and bias on, whichever terminal sits high at the panel goes to whichever terminal sits high at each meter. I've been caught by the backwards labels more than once. There's a writeup on the serial side here: https://plctr.com/understanding-the-communication-protocols-for-plc-and-scada-systems/



   
ReplyQuote
 edj
(@edj)
Trusted Member
Joined: 2 years ago
Posts: 56
Topic starter  

120 ohm across the 1400 terminals, bias jumper on. Swapped + and minus on 4 and 5 after checking which side sat high with the meter. 4 and 5 read now. 6 still times out. Back to 19200.



   
ReplyQuote
(@marekw)
New Member
Joined: 2 years ago
Posts: 0
 

Meter 6 is the one with the terminator and the last on the chain. Check the jumper is actually across the bus pair and not a spare pair, and check A and B there with the meter the same way. An open or a swapped pair past meter 5 only ever shows up at 6.



   
ReplyQuote
 edj
(@edj)
Trusted Member
Joined: 2 years ago
Posts: 56
Topic starter  

Meter 6 was A and B backwards too. Same new batch as 4 and 5, I'd assumed it was the old type because it had the jumper. Swapped it, all six read, no timeouts in a full shift at 19200.

So, no termination at the master end, no bias at all, and A B swapped on three of six. Terminating both ends, bias at the master, and wiring by which side sits high instead of the printed letter fixed it. Never did buy the repeater.

Still not sure why meter 6 got a good read through now and then before, it should have been deaf. Thanks marcob, marekw.



   
ReplyQuote
(@marcob)
New Member
Joined: 2 years ago
Posts: 0
 

Meter 6 getting reads through swapped, I can't explain that one either.



   
ReplyQuote
Share: