Modbus RTU: Instruction Manual
Modbus RTU: Instruction Manual
Modbus RTU: Instruction Manual
TM
VLT6000
Adjustable
Frequency
Drive
Instruction Manual
175R5467
Revision C 06/04
! WARNING ! WARNING
Equipment Hazard! Unintended Start!
Rotating shafts and electrical equipment can In Auto Mode, a start signal via digital inputs may
be hazardous. Therefore, it is strongly cause drive to start at any time. The drive, motor,
recommended that all electrical work and any driven equipment must be in operational
conform to National Electrical Code (NEC) readiness. Failure to be in operational readiness
and all local regulations. Installation, start- in Auto Mode could result in death, serious injury,
up and maintenance should be performed or equipment or property damage.
only by qualified personnel. Failure to follow
the NEC or local regulations could result in
death or serious injury. CAUTION
Electrostatic Discharge!
Motor control equipment and electronic controls are Electronic circuit card components are
connected to hazardous line voltages. When servicing sensitive to electrostatic discharge (ESD).
drives and electronic controls, there will be exposed ESD can reduce performance or destroy
components at or above line potential. Extreme care sensitive electronic components. Follow
should be taken to protect against shock. Stand on an proper ESD procedures during installation
insulating pad and make it a habit to use only one hand or servicing to prevent damage.
when checking components. Always work with another
person in case of an emergency. Disconnect power
whenever possible to check controls or to perform
maintenance. Be sure equipment is properly grounded.
Wear 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 input line. To be sure that capacitors have fully
discharged, wait 14 minutes for 208 V and 480 V units and 30 minutes for 600 V
units over 25 hp after power has been removed before touching any internal
component. Failure to wait for capacitors to fully discharge before touching
internal components could result in death or serious injury.
Table of Contents
Overview
Introduction ............................................................................................. 4
About This Manual .................................................................................. 4
Assumptions ............................................................................................ 4
What You Should Already Know ............................................................. 4
References ............................................................................................... 4
Modbus RTU Overview ............................................................................ 5
Overview: VLT 6000 with Modbus RTU .................................................. 5
Network Connection
Network Connection ................................................................................ 6
Drive DIP Switch Settings for Network Connection ............................... 6
Drive Parameter Settings for Modbus RTU Communication ................. 6
Network Configuration
Remote Terminal Unit .............................................................................. 7
Modbus RTU Message Structure ............................................................ 7
Memory Mapping: Coils ......................................................................... 9
Memory Mapping: Holding Registers .................................................... 11
Memory Mapping: Numbering ............................................................... 12
Conversion Index 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 3 Read Basic Drive Status Information .................................. 16
Example 4 Give the Drive a Ramp to Stop Command .......................... 18
Example 5 Give the Drive a Coast to Stop Command .......................... 19
Example 6 Set How the Drive Stores Parameter Values ....................... 20
Example 7 Write a Parameter Value from a List of Choices ................. 21
Example 8 Write a 16 Bit Parameter ...................................................... 22
Example 9 Write a 32 Bit Parameter ...................................................... 23
Example 10 Read a 32 Bit Parameter .................................................... 24
Example 11 Read Indexed Parameter and Read 8 Bit Parameter ......... 25
Example 12 Write a Text String .............................................................. 27
Example 13 Read a Text String .............................................................. 28
Exception Codes
Exception Codes ..................................................................................... 29
About This This manual is intended to be used for both experienced Modbus programmer, it is
Manual instruction and reference. It only briefly suggested that you read this manual in its
touches on the basics of the Modbus proto- entirety before you start programming since
col whenever necessary to gain an important information can be found in all
understanding of the Modbus RTU for the VLT sections.
6000.
Assumptions This manual assumes that you have a VLT 6000 Adjustable Frequency Drive, are
controller that supports the interfaces in this strictly observed, along with all limitations
document and that all the requirements therein.
stipulated in the controller, as well as the
What You The VLT 6000 Modbus RTU protocol is document. It is assumed that you have full
Should designed to communicate with any controller knowledge of the capabilities and limitations of
that supports the interfaces defined in this the controller.
Already Know
Overview: The VLT 6000 Adjustable Frequency Drive The Bus Reference is commonly used for
VLT 6000 with communicates in Modbus RTU format over speed control.
an EIA-485 (formerly RS-485) network.
Modbus RTU Modbus RTU allows access to the drive's It is also possible to access the drive
Control Word and Bus Reference. parameters, read their values, and, where
possible, write values to them. This permits
The Control Word allows Modbus to control a range of control possibilities, including
several important functions of the drive: controlling the drive's setpoint when its
internal PID controller is used.
Start
Stop the drive 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
SWITCH SETTING
Switch 1 No function
Switches 2 & 3 Used for terminating an EIA-485 interface. When
the drive is the first, last, or only device on a
network, switches 2 and 3 must be ON.
When the drive is in any other location on the
network, switches 2 and 3 must be OFF.
Switch 4 Separates the common potential of the internal 24
VDC supply from the common potential of external
24 VDC supply. When switch 4 is in the OFF
position, the external 24 VDC supply is isolated
from the drive. See the drive operation manual for
more information on switch 4.
Drive The Modbus RTU interface to the VLT 6000 Parameter 570, Modbus Parity/Frame:
Parameter Series drive requires drive parameter values select from the following, based on
Settings for selected as shown. See the VLT 6000 application.
Operating Instructions for details on selecting Even Parity/1 Stop
Modbus RTU and changing parameter values, if necessary.
Communica- Odd Parity/1 Stop
tion Parameter 500, Protocol: Modbus RTU No Parilty/1 Stop (factory default)
Parameter 501, Address: 001 - 247 Parameter 571, Modbus Communication
Parameter 502, Baud Rate: 300 - 9600 Timeout: 10 - 2000 ms. (Factory default
baud. (Factory default is 9600 baud.) setting is 100 ms.)
Modbus RTU A Modbus RTU message is placed by the intervals. When the first field (the address field)
Message transmitting device into a frame with a known is received, each drive or device decodes it
beginning and ending point. This allows to determine whether it is the addressed
Framing receiving devices to begin at the start of the device.
Structure message, read the address portion,
determine which device is addressed (or all Modbus RTU messages addressed to zero
devices, if the message is broadcast), and to are broadcast messages. No response is
know when the message is completed. needed on broadcast messages.
Partial messages are detected and errors set
as a result. To ensure the attribute data returned is the
most current, each attribute access must
The allowable characters transmitted for all include one attribute only.
fields are hexadecimal 0-9, A-F. The
adjustable frequency drives monitor the A typical message frame is shown below.
network bus continuously, including silent
Coil
Number Description Signal Direction
1 16 Drive Control Word (see table) Master to Drive
17 - 32 Drive Speed or Setpoint Reference Master to Drive
0HEX = 0% Reference, the value set in
parameter 204.
4000HEX = 100% Reference, the value
set in parameter 205.
8000HEX = 200% Reference, the
maximum value that can be
transmitted via Modbus RTU.
In most cases, if references from multiple
sources are supplied to the drive, the drive
will respond to the sum of the references
33 48 Drive Status Word (see table) Drive to Master
49 64 Open Loop Mode: Drive Output Drive to Master
Frequency
0HEX = 0% of the reference value set in
parameter 204.
4000HEX = 100% of the reference value
set in parameter 205.
Closed Loop Mode: Drive Feedback
Signal
0HEX = 0% of the reference value set in
parameter 204.
4000HEX = 100% of the Reference value
set in parameter 205.
65 Parameter Write Control (Master to Drive) Master to Drive
0 Parameter changes are written to
the drives RAM and are lost when
power is removed from the drive.
1 Parameter changes are written to
the drive RAM and to its EEPROM
and are maintained when power is
removed from the drive.
66 - 65536 Reserved
Coil 0 1
33 Control not 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
42 Hand mode Auto mode
43 Out of frequency range In frequency range
44 Stopped Running
45 No function No function
46 No voltage warning Voltage warning
47 Not in current limit Current limit
48 No thermal warning Thermal warning
Register
Number Description
00001 00008 Reserved
00009 Used to specify the index number to be used when an indexed parameter is
accessed.
00010 00990 000 Parameter Group (parameters 001 through 099, as available)
01000 01990 100 Parameter Group (parameters 100 through 199, as available)
02000 02990 200 Parameter Group (parameters 200 through 299, as available)
03000 03990 300 Parameter Group (parameters 300 through 399, as available)
04000 04990 400 Parameter Group (parameters 400 through 499, as available)
05000 05990 500 Parameter Group (parameters 500 through 599, as available)
06000 06990 600 Parameter Group (parameters 600 through 699, as available)
07000 07990 700 Parameter Group (parameters 700 through 799, as available)
08000 08990 800 Parameter Group (parameters 800 through 899, as available)
09000 09990 900 Parameter Group (parameters 900 through 999, as available)
Communica- The examples on the following pages demonstrate how to use these functions to control and
monitor drive operation. All communication examples assume that the drives Modbus RTU
tion
address is 1.
Examples
Example 1 Start the Drive and Give It a Reference via ModbusRTU
Setting the Control Word and Serial Reference Coils
Modbus Function 0FHEX Force Multiple Coils
Example 2 Give the Drive a Reference via ModbusRTU
Setting the Control Word and Serial Reference Coils
Modbus Function 0FHEX Force Multiple Coils
Example 3 Read Basic Drive Status Information
Reading the Status Word and Output Frequency/Feedback Coils
Modbus Function 01HEX Read Coil Status
Example 4 Give the 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 0FHEX Force Multiple Coils
Example 6 Set How the Drive Stores Parameter Values
Setting Coil 65
Modbus Function 05HEX Force Single Coil
Example 7 Write a Parameter Value from a List of Choices
Writing a single register
Modbus Function 06HEX Preset Single Register
Example 8 Write a 16 Bit Parameter
Writing a single register
Modbus Function 06HEX Preset Single Register
Example 9 Write a 32 Bit Parameter
Writing two registers
Modbus Function 10HEX Preset Multiple Registers
Example 10 Read a 32 Bit Parameter
Reading two registers
Modbus Function 03HEX Read Holding Registers
Example 11 Read an Indexed Parameter and Read an 8 Bit Parameter
Setting the value of register 1 and reading a single register
Modbus Function 06HEX Preset Single Register
Modbus Function 03HEX Read Holding Registers
Example 12 Write a Text String
Writing multiple registers
Modbus Function 10HEX Preset Multiple Registers
Example 13 Read a Text String
Reading multiple registers
Modbus Function 03HEX Read Holding Registers
While this example shows both starting the drive and giving it a reference via Modbus RTU, it is
possible to simply give it a start command. To do this, force only coils 1 through 16.
[01] [0F] [00] [00] [00] [20] [04] [7C] [04] [99] [19] [37] [43]
{
Byte 6 Byte 7
CRC Error Check
54 13
Byte 6 Byte 7
CRC Error Check
55 C2
While detailed status information can be read by accessing the Data Read-out parameters in the
500 group of parameters and some other locations, it is also possible to read general drive status
by reading coils 33 through 64.
Coils 33 through 48 contain the drive Status Word.
Coils 49 through 64 contain the drive output speed during open loop operation and the
drive feedback value during closed loop operation.
Byte 6 Byte 7
CRC Error Check
3C 18
Byte 7 Byte 8
CRC Error Check
CA 9E
{
At Reference Control Ready
Remote Mode Drive Ready
In Frequency Range Safety Closed
Running
{
Output Frequency (for Open Loop operation)
4000HEX = 100%, so 1FFFHEX = 50%
If Parameter 204, MIN. REFERENCE = 10Hz
and Parameter 205, MAX. REFERENCE = 60Hz,
then the output frequency is 50% of the way between 10Hz and
60Hz,
or 35Hz.
Byte 6 Byte 7
CRC Error Check
54 07
A ModbusRTU coasting stop command, when drive parameter 503 is set to allow coasting
stop commands via the serial bus, acts much like a safety interlock. The drive cannot run
in any mode until the coasting stop command is removed. The lower right corner of the
drives normal display will show UN.READY when a coasting stop command is active.
Byte 6 Byte 7
CRC Error Check
54 07
By default, parameter changes made via ModbusRTU are only written to Random Access
Memory (RAM). When power to the drive is cycled, these changes are lost. Because it is
possible to write to parameters a large number of times using ModbusRTU, writing values
by default to RAM avoids subjecting the Electronically Erasable Programmable Read Only
Memory (EEPROM) to an excessive number of write operations. To write a parameter
change to the drives EEPROM, first write the value 1 to coil number 65. Then make the
parameter change. Afterwards, to keep future parameter changes from being permanent,
write the value 0 to coil number65.
Byte 6 Byte 7
CRC Error Check
8D EE
Byte 6 Byte 7
CRC Error Check
8D EE
Byte 6 Byte 7
CRC Error Check
DB D4
Byte 6 Byte 7
CRC Error Check
DB D4
Byte 6 Byte 7
CRC Error Check
B8 E8
6010 = 003CHEX
Byte 6 Byte 7
CRC Error Check
B8 E8
[01] [10] [04] [19] [00] [02] [04] [00] [00] [03] [FC] [00] [B8]
{{
{
Byte 6 Byte 7
CRC Error Check
91 3F
Byte 6 Byte 7
CRC Error Check
30 3E
B yte 7 Byte 8
CRC E rror Check
3B 69
00000259HEX = 60110
601 x 0.01 = 6.01 A
Step 1
ModbusRTU Function: 06HEX (Preset Single Register)
Overview:
Set register 910 to 4, the index value.
Byte 6 Byte 7
CRC Error Check
09 CB
Index Number = 4
Step 2
ModbusRTU Function: 03HEX (Read Holding Registers)
Overview:
Read Register 615010
Because the value is an 8 bit number, only one register needs to be read.
No conversion factor will be needed.
Byte 6 Byte 7
CRC Error Check
92 AB
{
Register Address = (Parameter Number x 10) 1 = 614910 = 1805HEX
Some parameters are designed to hold text strings. The maximum length of a text string is
20characters. Text is transferred in ASCII format. Each register can hold two ASCII
characters.
Byte 13 Byte 14
CRC Error Check
33 BD
[01] [10] [14] [DB] [00] [03] [06] [44] [72] [69] [76] [65] [20] [33] [BD]
{
{
{
D r i v e [space]
Byte 6 Byte 7
CRC Error Check
F5 C3
A text field in the drive can contain up to 20 characters. If too few characters are read, the
string that is transferred will be truncated. Text is transferred in ASCII format. Each
register can hold two ASCII characters.
Byte 6 Byte 7
CRC Error Check
B3 7B
Byte 7 Byte 8
CRC Error Check
0E C5
Modbus Code
(hexadecimal) Meaning
00 The parameter number does not exist.
01 There is no write access to the parameter.
02 The data value exceeds the parameter limits.
03 The used sub-index does not exist.
17 Data change in the parameter called is not possible in the present
mode of the drive. Some parameters can only be changed when
the motor has stopped.
40 Invalid data address
41 Invalid message length
42 Invalid data length
43 Invalid function code
82 There is no bus access to the parameter called
Exception Codes
23-6130-00