
Visit our shop for nerds in control lifestyle products.
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
-- Lenny Bruce
www.control.com/rss
In RTU mode in the Modbus message, for each byte there are 11 bits:
1 bit - start
8 bits - data
1 bit for parity
1 bit for stop bit
If parity is none, then stop bit will be 2.
However, in most applications I see that in RTU mode, although parity is set to be NONE, stop bit is still set to be ONE. Why is that? Is stop bit supposed to be TWO because parity is NONE?
Thanks,
T
Darrin Hansen
ICC, Inc.
If a product was designed according to the "old" PI-MBUS-300 Rev J spec, page 6 of that document states "...1 stop bit if parity is used; 2 bits if no parity..."
But again, in practice customers don't really care about what the spec says in this regard: if they want to use no parity/1 stop bit (for whatever reason), they expect products to support that.
Darrin
There is really no reason for a parity bit when using Modbus RTU anyway because the protocol includes a very robust, 16-bit CRC error detection algorithm. Just save the bit time and move on.
Of course, if you are strictly adhering to the 3.5 character time out value, then it makes this computation a little more difficult, but even then, many devices don't really pay that much attention to the exact time out value.
Jerry Miille
Miille Applied Research Co., Inc.
http://www.miille.com/
- Wireless: Free software enhances remote keyless entry security
- Radioland: Wireless spread spectrum, frequency hopping, data radio devices
- NEMA publishes code for electrical metering; ZigBee for wireless smart metering
- Free webinar on Zigbee for embedded systems
- WirelessHART compliance verification receiver available
- PTO reports high growth, cross-industry collaboration
- Wireless helps Hexion with smoke detection, control room reporting
- Wireless networks for water and wastewater plant: easy, timely info access
- Chemical company processes critical data via wireless Ethernet
- Enclosures: Improve NEMA designs, enclose wireless equipment, keep cabinets cool
Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.
Patronize our advertisers!


