Author Topic: MODBUS ASCII vs RTU  (Read 16186 times)

marius

  • Newbie
  • Posts: 3
  • I love YaBB 1G - SP1!
    • View Profile
MODBUS ASCII vs RTU
« on: February 27, 2002, 11:24:27 PM »
What are the differences between using ASCII/RTU?
What protocol is more efficiently?

Thx
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
ARoBS Transilvania Software srl
Cipariu Nr 9 / 69
3400 Cluj-Napoca, Romania

Ph:        +40 64 198204,198454
Fax:       +40 64 198426
Cel:       +40 94 768489
eMail:     mc@arobs.ro

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re: MODBUS ASCII vs RTU
« Reply #1 on: February 28, 2002, 05:47:13 AM »
MODBUS ASCII and RTU are really two different protocols devised by Modicon. ASCII uses ASCII character to represent number. e.g the number
1234 is represented as Hex 31, 32, 33 and 34. Four bytes  to represent a number. For RTU, the number is represented as a 16-bit (two byte) number, So RTU appear more efficient.

However, RTU has very strict requirement of the timing to mark the end of a message and messages are considered failure  if the timing falls out of the narrow required spec. ASCII data on the other hand, uses CR LF character to mark the ending of a message and are far more forgiving towards time of response from the device. Also for RTU, since the data are in binary, you can't easily read the transaction using e.g a HyperTerminal whereas you can monitor ASCII messages very easily. Personally we prefer to recommend using MODBUS ASCII if there is a choice.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS