format
Advanced parameter
descriptions
Serial
comms
6.2
CT
Modbus
RTU
specification
This section describes the adaptation of the MODBUS RTU protocol offered on Control Techniques' products. The portable software class which
implements this protocol is also defined.
MODBUS RTU is a master slave system with half-duplex message exchange. The Control Techniques (CT) implementation supports the core
function codes to read and write registers. A scheme to map between MODBUS registers and CT parameters is defined. The CT implementation
also defines a 32bit extension to the standard 16bit register data format.
6.2.1
MODBUS
RTU
The frame has the following basic format
SLAVE
ADDRESS
FUNCTION
CODE
message data
16bit CRC
Silent
interval
Message data
The frame is terminated with a minimum silent period of 3.5 character times (for example, at 19200 baud the minimum silent period is 2 ms).
Nodes use the terminating silence period to detect the end of frame and begin frame processing. All frames must therefore be transmitted as a
continuous stream without any gaps greater or equal to the silence period. If an erroneous gap is inserted then receiving nodes may start frame
processing early in which case the CRC will fail and the frame will be discarded.
MODBUS RTU is a master slave system. All master requests, except broadcast requests, will lead to a response from an individual slave. The
slave will respond (i.e. start transmitting the response) within the quoted maximum slave response time (this time is quoted in the data sheet for all
Control Techniques products). The minimum slave response time is also quoted but will never be less that the minimum silent period defined by
3.5 character times.
If the master request was a broadcast request then the master may transmit a new request once the maximum slave response time has expired.
The master must implement a message time out to handle transmission errors. This time out period must be set to the maximum slave response
time + transmission time for the response.
Master request
minimum silence
period
frame detect
Slave
frame
Slave response time
Time
minimum silence
period
Master request
New master request
can start here
206
Mentor MP Advanced User Guide
www.onxcontrol.com
Issue Number: 4
Attribute