MODBUS in Unitronics PLC

2rlp

Member
Join Date
Sep 2006
Location
Mumbai
Posts
136
I am planning to use the MODBUS feature of Unitronics' Jazz PLC. There are going to be 16 field objects capable of MODBUS communication. These 16 may be at various distances, the maximum being around 50 metres away. What should the ideal baud rate be? How long will it take the PLC to communicate with all 16 ( the data sent & recieved by the PLC will be 3 bytes long on either side )?
 
You don't mention whether this is Modbus TCp over ethernet or Modbus RTU over RS-485.

RS-485 is multi-drop, meaning one starts at the PLC, wires to the first device, the wiring continues on to the 2nd device, which then continues on to the 3rd device, and so on. Some people call this daisy-chaining.

So the entire length might be considerably longer than 50m if all the devices are not in a straight line.

My experience shows that the longer the total wiring length, the slower the effective baud rate. I've used 38K successfully within a control panel. But 38K wouildn't work all the time at 300m and I had to step down to 19K baud. Once I was limited to 9600 baud because the slave wouldn't run any faster.

I think 19K is a reasonable rate that can be implemented at moderate wiring runs.

Although you're sending or receiving 3 data bytes, the Modbus data word is approx 3x longer:

Request Message (Read (Gain 1) = ID Tag 001)
02 14 07 06 00 03 00 01 00 02 (CRC16)

Where:
02 = Address
14 = Function Code 20 (14 hex)
07 = Byte Count
06 = Reference Type
00,03 = File Number (Access Data Value)
[font=Times New Roman,Times New Roman]00,01 = Register Address (Standard Access Gain 1 - Tag ID #1) [/font]
[font=Times New Roman,Times New Roman]00 02 = Register Count (Floating Point Data) (CRC16)[/font]
[font=Times New Roman,Times New Roman]

So, at 10 bytes per message, 11 bits per word (start, 8 bits, parity, stop) you have 110 bits per modbus request and about the same for a resposne.​


So a single poll-response at zero turn-around time would take 220/19200 = 12mS. That might sound fast or slow, depending on how old you are (young ethernet guys croak. We who have used 300 baud go Wow!)


But slaves don't respond instantly. If a slave doesn't respond, the master waits until the its wait timer expires. That adds to the cycle time.


The master is not always ready to immediately send another request as soon as the reponse from the former request is received.


It the master gets an error message, it has to process it.

All these things add up to not really knowing what the throughput rate is until you wire it and try it. Unitronics might be able to tell you from an experience that someone, somewhere did X devices at 300mS, but that probably isn't the same configuration that you have.


Maybe someone else on the forum has Unitronics experience and can comment.


Dan


[/font]
 
Last edited:
Thanks Dan,
The Devices are in a straight line & will be situated at a distance of around 3.5 to 4 mtrs from one another. The devices are basically just a single discreet input type and so donot have much activity. their response to any query by the PLC will be fast.
Ron
 
2rlp said:
Thanks Dan,
The Devices are in a straight line & will be situated at a distance of around 3.5 to 4 mtrs from one another. The devices are basically just a single discreet input type and so donot have much activity. their response to any query by the PLC will be fast.
Ron

I'd start at 38K baud and see what performance you get. Don't forget a terminating resistor at the far end.

Dan
 
I would suggest you to put isolator between your port to your device.

Unitronics ports are not isolated and they damage easily.
Its happened to me once(my first project with Uni ) and I know its happend from others.
 
ditto ArikBY's advice on the RS-495 isolator. An isolator adds no time time lag and provides a high degree protection to your primary master port.

Dan
 

Similar Topics

Has anyone been able to get Inductive Automation's Ignition MODBUS OPC Server to communicate with a Unitronics Vision 530 OPLC? I can get...
Replies
14
Views
10,789
Hi, How does one connect a few Serial Devices and a GSM Modem on MODBUS of any UNITRONICS PLC. Is the drawing attached the right method...
Replies
7
Views
4,527
Hello, I'm gonna try to make this as clear as possible. For a project, we have 3 Unitronics PLC's controlling each a machine. The company that...
Replies
8
Views
3,322
Hello all, This is my first time posting. I started messing around with a Unitronics V130 plc to get some practice with modbus rtu. I...
Replies
1
Views
2,402
I need to connect a V570 to several V350s and my PC. I have a hub to connect them all with ethernet. I have read the vague help files and even...
Replies
1
Views
6,886
Back
Top Bottom