background image

5

Modbus RTU

Overview

The common language used by all Modicon
controllers is the Modbus RTU (Remote
Terminal Unit) protocol. This protocol defines
a message structure that controllers will
recognize and use, regardless of the type of
networks over which they communicate. It
describes the process a controller uses to
request access to another device, how it
will respond to requests from the other
devices, and how errors will be detected
and reported. It establishes a common
format for the layout and contents of
message fields.

During communications on a Modbus RTU
network, the protocol determines how each
controller will know its device address,
recognize a message addressed to it,
determine the kind of action to be taken,
and extract any data or other information
contained in the message. If a reply is
required, the controller will construct the reply
message and send it.

Controllers communicate using a master-
slave technique in which only one device
(the master) can initiate transactions (called

queries

). The other devices (slaves) respond

by supplying the requested data to the
master, or by taking the action requested in
the query.

The master can address individual slaves, or
can initiate a broadcast message to all slaves.
Slaves return a message (called a 

response

)

to queries that are addressed 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) address, a
function code defining the requested action,
any data to be sent, and an error-checking
field. The slave’s response message is also
constructed using Modbus protocol. It
contains fields confirming the action taken,
any data to be returned, and an error-
checking field. If an error occurs in receipt of
the message, or if the slave is unable to
perform the requested action, the slave will
construct an error message and send it in
response, or a timeout will occur.

TR1 Series

VFD with

Modbus RTU

Option

Overview

The TR1 Series variable frequency drive
communicates in Modbus RTU format over
an EIA-485 (formerly RS-485) network.
Modbus RTU allows access to the drive
Control Word and Bus Reference.

The Control Word allows Modbus to control
several important functions of the drive:

• Start
• Stop (in several ways):

Coast stop
Quick stop
DC Brake stop
Normal (ramp) stop

• Reset after a fault trip
• Run at a variety of preset speeds
• Run in reverse
• Change the active setup
• Control the drive's two built-in relays

The Bus Reference is commonly used for
speed control.

It is also possible to access the drive
parameters, read their values, and, where
possible, write values to them. This permits
a range of control possibilities, including
controlling the drive setpoint when its internal
PID controller is used.

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: