Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Search

Jump to a Date

Sponsored Communities
Cool stuff
Select a topic of interest:
...and press:
Neat Stuff
Control.com Stuff

Visit our shop for nerds in control lifestyle products.

Fortune
"I must have a prodigious quantity of mind; it takes me as much as a
week sometimes to make it up."
-- Mark Twain, "The Innocents Abroad"
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss/
To get a personalized feed, become a member at no cost.
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
advertisement
from the Automation List department...
MODBUS Bit Order
Communications systems and equipment. topic
Posted by Dan Marr on 6 August, 2008 - 12:56 am
I've struggled with what is the proper bit order for Modbus serial communication. I took a look at the "MODBUS Protocol Reference Guide" (PI-MBUS-300 Rev. J) and noted that the proper method appears to be LSB to MSB (Left to Right Reading).

I often use MODSCAN and noted that it seems to be MSB to LSB (Right to Left Reading) and there doesn't seem to be an option to reverse this.

I'm not a serial expert, but I thought that serial information (not specifically MODBUS) typically transmits the LSB first, which to my mind seemed to explain why MODSCAN used MSB to LSB (Right to Left Reading).

Is this assumption correct?

I also seem to remember that several HMI programs I've worked with have an option to define who the software should be looking at the MODBUS information. When I use MODSCAN to read MODBUS information, some equipment seems to transmit the MSB first and other equipment seems to transmit the LSB first.

From a MODBUS Purist point of view, should the equipment be transmitting the MSB first?


Posted by Roy Matson on 7 August, 2008 - 12:01 am
I linked a Rosemount DCS to Modicon PLC using the DCS's Modbus link a while back, mapping bits in one system to the other. When I fired it up all my alarms bits were backwards and I spent days re-typing all the messages.

I can't recall if Modicon word is LSB to the left though.

I think most users of Modbus ignore the book and change it to suit themselves.

Roy


Posted by bohlooli on 7 August, 2008 - 12:48 am
Hi,

Please read the "How Characters are Transmitted Serially" part of this web page:
http://interface.centraltreasure.com/modbus_protocol.html


Posted by Dyck, David on 7 August, 2008 - 12:54 am
I would associate an MSB to LSB (most significant bit to least significant bit) to transmit the "leftmost" (most significant bit) first, so I'm confused by your saying "Right to Left Reading"

According to
http://doc.seg-pp.com/doku.pdf/sl/kommunikation/modbus/modbus_e.pdf
The least significant Bit is sent and received first

I'd call this LSB to MSB transmission - what do you think?


Posted by Robert on 7 August, 2008 - 11:47 pm
I think the problem is in naming the bits, and not was is sent first.

I have seen 3 kinds of naming bits.

1. Usually naming bits in computers is 0=LSB 15=MSB.
2. In old Modicon PLCs 1=MSB 16=LSB.
3. I have seen HMIs that use following naming: 1=LSB 16=MSB

Robert


Posted by Sandeep on 7 August, 2008 - 11:49 pm
Ya, you are right!


Posted by Mark on 8 August, 2008 - 12:32 am
There is another good source of information at http://www.simplymodbus.ca/FAQ.htm

From Control Engineering magazine...
Related articles from Control Engineering magazine
Above articles copyright 2008 Reed Business Information. Subject to its Terms of Use.
Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.

Internet Explorer 6.0 Fix

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!