background image

7

Modbus RTU

Message

Framing

Structure

The controllers are setup to communicate on
the Modbus network using RTU (Remote
Terminal Unit) mode, with each 8-bit byte in a

Coding System:

8-bit binary, hexadecimal 0-9, A-F

Two hexadecimal characters contained in each 8-bit

field of the message

Bits Per Byte:

1 start bit

8 data bits, least significant bit sent first

1 bit for even/odd parity; no bit for no parity

1 stop bit if parity is used; 2 bits if no parity

Error Check Field:

Cyclical Redundancy Check (CRC)

A Modbus RTU message is placed by the
transmitting device into a frame with a known
beginning and ending point. This allows
receiving devices to begin at the start of the
message, read the address portion, determine
which device is addressed (or all devices, if
the message is broadcast), and to know when
the message is completed. Partial messages
are detected and errors set as a result.

The allowable characters transmitted for all
fields are hexadecimal 0-9, A-F. The adjustable
frequency drives monitor the network bus
continuously, including ‘silent’ intervals. When

the first field (the address field) is received, each
drive or device decodes it to determine
whether it is the addressed device.

Modbus RTU messages addressed to zero
are broadcast messages. No response is
needed on broadcast messages.

To ensure the attribute data returned is the
most current, each attribute access must
include one attribute only.

A typical message frame is shown below.

Start 

Address 

Function 

Data 

CRC Check 

End 

T1-T2-T3-T4 8 

Bits  8 

Bits 

n x 

8 Bits 

16 Bits 

T1-T2-T3-T4 

Remote

Terminal

Unit

Start/Stop Field

Messages start with a silent interval of at least
3.5 character times. This is implemented as a
multiple of character times at the selected
network baud rate (shown as Start T1-T2-
T3-T4). The first field then transmitted is the
device address. Following the last transmitted
character, a similar interval of at least 3.5
character times marks the end of the
message. A new message can begin after
this interval.

The entire message frame must be transmitted
as a continuous stream. If a silent interval of

more than 1.5 character times occurs before
completion of the frame, the receiving device
flushes the incomplete message and assumes
that the next byte will be the address field of a
new message.

Similarly, if a new message begins earlier that
3.5 character times following a previous
message, the receiving device will consider it
a continuation of the previous message. This
will cause a timeout (no response from the
slave), since the value in the final CRC field is
not valid for the combined messages.

Typical Modbus RTU Message Structure

Modbus RTU

Message

Framing

Structure

(continued)

message contains two 4-bit hexadecimal
characters. The format for each byte is shown
below.

Summary of Contents for Mobrus RTU TR1 Series

Page 1: ...TR1 Series VFD Variable Frequency Drive ModbusTM RTU Instruction Manual June 2004 TR1 SVX02A EN 175R5563...

Page 2: ...ear safety glasses whenever working on electric control or rotating equipment WARNING Hazardous Voltage Touching electrical parts may be fatal even after equipment has been disconnected from the AC in...

Page 3: ...and Data Type 12 Communication Examples Standard Modbus Functions 13 Example 1 Start the Drive and Give It a Reference via Modbus RTU 14 Example 2 Give the Drive a Reference via Modbus RTU 15 Example...

Page 4: ...Series VFD Modbus RTU is designed to communicate with any controller that supports the interfaces defined in this document It is assumed that you have full knowledge of the capabilities and limitation...

Page 5: ...ed to them individually Responses are not returned to broadcast queries from the master The Modbus RTU protocol establishes the format for the master s query by placing into it the device or broadcast...

Page 6: ...s 0 5 Nm Shielded wiring must be used Ground shield to drive terminal 61 drive casing or as appropriate for the network application DIP switches 2 and 3 located on the main control board of the drive...

Page 7: ...adcast messages To ensure the attribute data returned is the most current each attribute access must include one attribute only A typical message frame is shown below Start Address Function Data CRC C...

Page 8: ...ns additional information which the slave must use to take the action defined by the function code This can include items like coil or register addresses the quantity of items to be handled and the co...

Page 9: ...cases if references from multiple sources are supplied to the drive the drive will respond to the sum of the references Master to Drive 33 48 Drive Status Word see table Drive to Master 49 64 Open Lo...

Page 10: ...ot ready Control ready 34 Drive not ready Drive ready 35 Coasting Stop Safety closed 36 No alarm Alarm 37 Not in use 38 Not in use 39 Not in use 40 No warning Warning 41 Not at reference At reference...

Page 11: ...the individual parameter description in the drive instruction manual to determine the numeric value associated with each selection This value is shown in brackets in each parameter selection Paramete...

Page 12: ...transmitted via serial communications therefore represents 150 x 0 1 15 0 The data type indicates the number of bits needed to transmit the number via serial communications 8 or 16 bit data occupy on...

Page 13: ...Drive a Ramp to Stop Command Setting the Control Word Coils Modbus Function 0FHEX Force Multiple Coils Example 5 Give the Drive a Coast to Stop Command Setting the Control Word Coils Modbus Function 0...

Page 14: ...age from Modbus RTU Master to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Slave Address Function Coil Addr High Coil Addr Low No of Coils High No of Coils Low Byte Count 01 0F 00 00 00 20 0...

Page 15: ...Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Coil Addr High Coil Addr Low No of Coils High No of Coils Low 01 0F 00 10 00 10 Byte 6 Byte 7 CRC Error Check 55 C2 Example 2 Byte 0 Byte 1 By...

Page 16: ...ion 01HEX Read Coil Status Overview Read the value of coils 3310 through 6410 Message from Modbus RTU Master to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Coil Addr High Co...

Page 17: ...uency Range Running 01 01 04 07 0F FF 1F CA 9E Output Frequency for Open Loop operation 4000HEX 100 so 1FFFHEX 50 If Parameter 204 MIN REFERENCE 10 Hz and Parameter 205 MAX REFERENCE 60 Hz then the ou...

Page 18: ...m Modbus RTU Master to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Slave Address Function Coil Addr High Coil Addr Low No of Coils High No of Coils Low Byte Count 01 0F 00 00 00 10 02 Byte...

Page 19: ...p command Refer to the description of the Control Word Other Control Words could also give a coast stop command depending on the other functions desired Message sent from the Modbus RTU Master to the...

Page 20: ...umber 65 Then make the parameter change Afterwards to keep future parameter changes from being permanent write the value 0 to coil number65 Modbus RTU Function 05HEX Force Single Coil Overview Force c...

Page 21: ...only a single register needs to be accessed Message from Modbus RTU Master to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Register Addr High Register Addr Low Preset Data Hi...

Page 22: ...o convert 6010 to 3CHEX Message from Modbus RTU Master to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Register Addr High Register Addr Low Preset Data High Preset Data Low 0...

Page 23: ...ion Start Register Addr High Start Register Addr Low No of Registers High No of Registers Low No of Bytes 01 10 04 19 00 02 04 Byte 7 Byte 8 Byte 9 Byte 10 Byte 11 Byte 12 Register 1 Data High Registe...

Page 24: ...ter to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Register Addr High Register Addr Low No of Registers High No of Registers Low 01 03 14 13 00 02 Byte 6 Byte 7 CRC Error Ch...

Page 25: ...ng 01 06 00 08 00 04 09 CB Register Address Register Number 1 9 1 8 01 06 00 08 00 04 09 CB Index Number 4 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Register Addr High Register...

Page 26: ...er 1 Message returned from Drive to Modbus RTU Master Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 7 Byte 8 Slave Address Function Byte Count Data High Data Low CRC Error Check 01 03 02 00 3C B8 55 Modbus...

Page 27: ...ave Address Function Start Register Addr High Start Register Addr Low No of Registers High No of Registers Low No of Bytes 01 10 14 DB 00 03 06 Byte 7 Byte 8 Byte 9 Byte 10 Byte 11 Byte 12 Register 1...

Page 28: ...Address Parameter Number x 10 1 621910 184BHEX Message returned from Drive to Modbus RTU Master Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Slave Address Function Byte Count Data High Register 6...

Page 29: ...a field of the response message This tells the master what kind of error occurred or the reason for the exception The tables below identify the codes and describe their meaning Modbus Code hexadecimal...

Page 30: ......

Page 31: ...s product and product data improvement and reserves the right to change design and specifications without notice Literature Order Number TR1 SVX02A EN File Number SL VEN TR1 000 SVX02A EN 0604 Superse...

Reviews: