0% found this document useful (0 votes)
170 views

Calculating RTU Transmission

This document provides an example of how to calculate the total time of a Modbus RTU transmission. It explains that the calculation depends on the function code and involves determining the number of bytes and then multiplying by the transmission time per byte, plus a wait time between frames. An example calculation is shown for a typical transmission using a specific function code and register values.

Uploaded by

celeritas81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views

Calculating RTU Transmission

This document provides an example of how to calculate the total time of a Modbus RTU transmission. It explains that the calculation depends on the function code and involves determining the number of bytes and then multiplying by the transmission time per byte, plus a wait time between frames. An example calculation is shown for a typical transmission using a specific function code and register values.

Uploaded by

celeritas81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

NHA3076700

FAQ | Product 10/2014

Modbus RTU Transmission


Calculating the Total Time of a Modbus RTU Transmission
Data Bulletin

Retain for future use.

FAQ Question: How is the total time of a Modbus RTU transmission calculated?
Answer: Calculation of the time span of a Modbus RTU transmission
depends on the Modbus Function code being used. The following is one
example of how transmission time can be calculated:
1. Use the following formula to calculate the time required to transmit each
byte:
(Data Bits + Start Bits + Stop Bits + Parity Bits) Transmission Speed
For example, a typical transmission might consists of the following
elements:

Transmission Speed 38400 bits per second (38.4 kbps)


Data Bits 8
Start Bits 1 (always 1)
Stop Bits 1
Parity Bits 1 (Even, 1; Odd, 1; None, 0)

This transmission takes 0.000286458 seconds to transmit each byte:


(8+1+1+1)/38400= 0.000286458 seconds per byte
2. Calculate the required number of bytes for each Modbus RTU
transmission frame by adding together the Request and Response
bytes. For example, in our sample transmission:

Request Bytes

Slave ID 1
Function Code 1
Register Address 2
Register Value 2
CRC Code 2
Total Bytes 8

Response Bytes

Slave ID 1
Function Code 1
Register Address 2
Register Value 2
CRC Code 2
Total Bytes 8

The total number of bytes required for this transmission is 16 bytes.

2014 Schneider Electric All Rights Reserved


SoMachine Logic Builder NHA3076700
FAQ | Product 10/2014

3. Multiplying the total number of bytes for a single transmission by the


transmission time for one byte, then adding a wait time between frames
of 2 ms, yields a total transmission time of 0.006583333 seconds for a
single transmission:
(16 x 0.000286458) + 0.002 = 0.006583333 seconds
NOTE: The calculations shown here can only provide an estimate of the
response time without any other system-dependent factors. Other factors
such as processor response time and bus loadingcan increase the total
response time.
The following illustration shows a spreadsheet, including formulas, used to
calculate Modbus RTU transmission time:

Electrical equipment should be installed, operated, serviced, and maintained only by


qualified personnel. No responsibility is assumed by Schneider Electric for any
Schneider Electric USA, Inc. consequences arising out of the use of this material.
18001 Knightdale Blvd. 2014 Schneider Electric All Rights Reserved
Knightdale, NC 27545 Schneider Electric and Square D are trademarks owned by Schneider Electric
1-888-778-2733 Industries SAS or its affiliated companies. All other trademarks are the property of
www.schneider-electric.us their respective owners.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy