Honeywell Installation and User Manual Modbus protocol for Variable Frequency Drives By using this Honeywell literature, you agree that Honeywell will have no liability for any damages arising out of your use or modification to, the literature. You will defend and indemnify Honeywell, its affiliates and subsidiaries, from and against any liability, cost, or damages, including attorneys’ fees, arising out of, or resulting from, any modification to the literature by you.
Honeywell • 1 INDEX Document:DPD00372A Version release date: 29/12/10 1. 2. 3. 4. 5. Safety ............................................................................................................................. 2 1.1 Danger ................................................................................................................... 2 1.2 Warnings................................................................................................................ 3 1.
Honeywell • 2 1. Safety Safety This manual contains clearly marked cautions and warnings which are intended for your personal safety and to avoid any unintentional damage to the product or connected appliances. Please read the information included in cautions and warnings carefully. The cautions and warnings are marked as follows: = DANGER! Dangerous voltage = WARNING or CAUTION = Caution! Hot surface Table 1. Warning signs 1.
Safety 1.2 Honeywell • 3 Warnings Drive is meant for fixed installations only. Do not perform any measurements when the AC drive is connected to the mains. The ground leakage current of drives exceeds 3.5mA AC. According to standard EN61800-5-1, a reinforced protective ground connection must be ensured. See chapter 1.3. If the AC drive is used as a part of a machine, the machine manufacturer is responsible for providing the machine with a supply disconnecting device (EN 60204-1).
Honeywell • 4 Safety The cross-sectional area of every protective grounding conductor which does not form part of the supply cable or cable enclosure shall, in any case, be not less than: - 2.5mm2 if mechanical protection is provided or - 4mm2 if mechanical protection is not provided. The ground fault protection inside the AC drive protects only the drive itself against ground faults in the motor or the motor cable. It is not intended for personal safety.
Modbus - general info 2. Honeywell • 5 Modbus - general info Modbus is a communication protocol developed by Modicon systems. In simple terms, it is a way of sending information between electronic devices. The device requesting the information is called the Modbus Master (or the Client in Modbus TCP) and the devices supplying information are Modbus Slaves (in Modbus TCP servers). In a standard Modbus network, there is one Master and up to 247 Slaves, each with a unique Slave Address from 1 to 247.
Honeywell • 6 Modbus - general info Ethernet Modbus TCP Switch Modbus RTU master Modbus RTU Figure 2. Principal example diagram of Modbus If you need to contact Honeywell service in problems related to Modbus, please call Honeywell Technical Support at 888-516-9347 “Option 4”.
Modbus technical data Honeywell • 7 3. Modbus technical data 3.1 Modbus RTU protocol Interface RS-485 Data transfer method RS-485 MS/TP, half-duplex Connections and communications Transfer cable STP (Shielded Twisted Pair), type Belden 9841 or similar Connector 2.5 mm2 Electrical isolation Functional Modbus RTU As described in “Modicon Modbus Protocol Reference Guide” Baud rate 300, 600, 1200, 2400, 4800, 9600, 19200, 38400 and 57600 baud Addresses 1 to 247 Table 2. 3.
Honeywell • 8 4. Modbus installation Modbus installation 1 Open the cover of the AC drive. The relay outputs and other I/O-terminals may have a dangerous control voltage present even when drive is disconnected from mains. DANGER Figure 3. 2 Locate the components that you will need on the AC drive to connect and run the Modbus cables. Be sure not to plug the Modbus TCP cable to the terminal under the keypad! This might harm your personal computer.
Modbus installation Honeywell • 9 RS485 terminals A = Data- B = Data+ DIP switches 21 22 23 24 25 26 28 29 Ethernet connector 12 13 14 15 16 17 18 19 30 A B Ethernet cable run conduit 1 2 3 4 5 6 7 8 9 10 11 I/O terminal (see larger picture) Grounding bar Figure 4. You can use the Modbus communication protocol through Ethernet and RS485. 4.
Honeywell • 10 4 Modbus installation Cut free the opening on the AC drive cover for the Ethernet cable (protection class IP21). Figure 6. 5 Remount the AC drive cover. NOTE: When planning the cable runs, remember to keep the distance between the Ethernet cable and the motor cable at a minimum of 30 cm. Ethernet cable Figure 7.
Modbus installation 4.2 Honeywell • 11 Prepare for use through RTU Strip about 15 mm of the RS485 cable (see specification on page 7) and cut off the grey cable shield. Remember to do this for both bus cables (except for the last device). Leave no more than 10 mm of the cable outside the terminal block and strip the cables at about 5 mm to fit in the terminals. See picture below.
Honeywell • 12 Modbus installation Using the cable clamp included in the delivery of the drive, ground the shield of the RS485 cable to the frame of the AC drive. Cable clamp 5 If drive is the last device on the bus, the bus termination must be set. Locate the DIP switches to the right of the control keypad of the drive and turn the switch for the RS485 bus termination resistor to position ON. Biasing is built in the termination resistor. See also step 9 on page 13.
Modbus installation Honeywell • 13 Unless already done for the other control cables, cut free the opening on the AC drive cover for the RS485 cable (protection class IP21). 7 Remount the AC drive cover and run the RS485 cables as shown in picture. NOTE: When planning the cable runs, remember to keep the distance between the fieldbus cable and the motor cable at a minimum of 30 cm. 8 RS485 cables The bus termination must be set for the first and the last device of the fieldbus line. See picture below.
Honeywell • 14 5. Programming Programming Basic information on how to use the control keypad you will find in the Application Manual. The navigation path to the fieldbus parameters may differ from application to application. The exemplary paths below apply to the drive. 1. First ensure that the right fieldbus protocol is selected. Navigate: Main Menu > I/O and Hardware (M5) > RS-485 (M5.7) OR Ethernet (M5.8) > Common settings (M5.7.1) > Protocol (P5.7.1.1) > Edit > (Choose protocol) 2.
Programming Code Honeywell • 15 Parameter Min Max Unit Default ID Description MONITORING VALUES P5.7.3.2.1 Fieldbus protocol status 1 3 1 0 = Init 1 = Stopped 2 = Operational 3 = Faulted 0-99 Number of messages with errors 0-999 Number of messages without communication errors P5.7.3.2.2 Communication status 0.0 P5.7.3.2.3 Illegal functions 0 See page 18. P5.7.3.2.4 Illegal data addresses 0 See page 18. P5.7.3.2.5 Illegal data values 0 See page 18. P5.7.3.2.
Honeywell • 16 Programming 5.2 Modbus TCP parameters and monitoring values 5.2.1 Ethernet common settings (M5.8.1) Code Parameter Min Max Unit Default ID Description P5.8.1.1 IP address mode See page 19. P5.8.1.2 IP address See page 19. P5.8.1.3 Subnet mask See page 19. P5.8.1.4 Default gateway See page 19. P5.8.1.5 MAC address See page 19. Table 5. Common settings for Modbus TCP (Ethernet) 5.2.2 Modbus TCP settings (M5.8.
Programming Honeywell • 17 5.3 Modbus RTU parameter descriptions 5.3.1 Modbus RTU Parameters P5.7.3.1.1 SLAVE ADDRESS Each slave must have a unique address (from 1 to 247) so that it can be addressed independently from other nodes. P5.7.3.1.2 BAUD RATE Select the communication speed for the network. The default value is 9600 baud. P5.7.3.1.3 PARITY TYPE Users can select the parity type for the network. Parity type Stopbits None 0 Odd 1 Even 2 Table 7. Parity type P5.7.3.1.
Honeywell • 18 Programming Good messages 0…999 Number of messages received without errors Bad Frames 0…99 Number of messages received with errors Table 9. P5.7.3.2.3 ILLEGAL FUNCTIONS The function code received in the query refers to an unallowed action for the server (or slave). P5.7.3.2.4 ILLEGAL DATA ADDRESSES The data address received in the query refers to an unallowed address for the server (or slave). P5.7.3.2.
Programming Honeywell • 19 5.4 Modbus TCP parameter descriptions 5.4.1 Ethernet common settings P5.8.1.1 IP ADDRESS MODE Selectable alternatives are DHCP (Dynamic Host Configuration Protocol) and Fixed. DHCP protocol gives IP addresses to new devices connecting to local network. This address is valid for a certain period of time. If no DHCP server is found an automatic random IP is given. A fixed IP address is specified manually and it does not change.
Honeywell • 20 Programming 5.4.2 Modbus TCP settings 5.4.2.1 Common settings P5.8.2.1.1 CONNECTION LIMIT Defines how many clients can access the server simultaneously. P5.8.2.1.2 UNIT IDENTIFIER NUMBER The Modbus ‘slave address’ field usually used on Modbus Serial Line is replaced by a single byte ‘Unit Identifier’. On TCP/IP, the Modbus server is addressed using its IP address; therefore, the Modbus Unit Identifier is useless. COMMUNICATION TIME-OUT P5.8.2.1.
Programming P5.8.2.2.1.2 Honeywell • 21 COMMUNICATION STATUS The Communication status shows how many error and how many good messages the drive has received. The Communication status includes a common error counter that counts errors and a counter for good messages. Good messages 0…999 Number of messages received without errors Bad Frames 0…99 Number of messages received with errors Table 11. Communication status P5.8.2.2.1.
Honeywell • 22 6. Communications Communications Features of the Modbus-drive interface: • • • Direct control of drive (e.g. Run, Stop, Direction, Speed reference, Fault reset) Full access to all drive parameters Monitor drive status (e.g. Output frequency, Output current, Fault code) 6.1 Data addresses in Modbus messages All data addresses in Modbus messages are referenced to zero. The first occurrence of a data item is addressed as item number zero.
Communications Honeywell • 23 6.3 Modbus data mapping 6.3.1 Coil registers Coil registers contain binary data (Read/Write). See page 25. Address Function Purpose 0001 RUN/STOP Control Word, bit 0 0002 Direction Control Word, bit 1 0003 Fault reset Control Word, bit 2 Table 13. Defined coil registers 6.3.2 Input discrete registers Input discrete registers contain binary data (Read). See page 26.
Honeywell • 24 Communications Address range Purpose Access type See 10701 - 10760 IDMap Read/Write 32bit Table 23 20001 - 40000 Drive Application ID's 32bit Table 16 40001 - 40007 Operation day counter 16bit Table 25 40101 - 40107 Resettable operation day counter 16bit Table 26 40201 - 40203 Energy counter 16bit Table 27 40301 - 40303 Resettable energy counter 16bit Table 28 40401 - 40430 Fault history 16bit Table 29 Table 15. Defined input holding registers 6.3.3.
Communications Honeywell • 25 Address 16-bit* Name Range/Type 32-bit 2004 2055 = High data 2056 = Low data FB Process Data In 1 See chapter 9 2005 2057 = High data 2058 = Low data FB Process Data In 2 See chapter 9 2006 2059 = High data 2060 = Low data FB Process Data In 3 See chapter 9 2007 2061 = High data 2062 = Low data FB Process Data In 4 See chapter 9 2008 2063 = High data 2064 = Low data FB Process Data In 5 See chapter 9 2009 2065 = High data 2066 = Low data FB Process D
Honeywell • 26 6.3.3.
Communications Honeywell • 27 B6 ZeroSpeed True False Motor running at zero speed B7 FluxReady True False Motor is magnetized B8-B28 Not used Table 20. Status Word bits B1-B28 B29 Control place B30 Control place B31 Control place Description 0 0 1 Fieldbus 0 1 0 Keypad 0 1 1 PC tool 1 0 0 I/O terminals Table 21. Status Word bits B29-B31, descriptions of bit connections The use of process data depends on the application.
Honeywell • 28 Communications Once the IDMap address range has been initialized with any parameter ID number, the parameter value can be read and written in the IDMap Read/Write address range address IDMap address + 100. Address Data 410601 Data included in parameter ID700 410602 Data included in parameter ID702 410603 Data included in parameter ID707 410604 Data included in parameter ID704 Table 23.
Communications 6.3.3.6 Honeywell • 29 Resettable operation day counter Reset the counter by writing “1” for parameter ID2311. Address Register Purpose 40101 440101 Years 40102 440102 Days 40103 440103 Hours 40104 440104 Minutes 40105 440105 Seconds Table 26. Resettable operation day counter 6.3.3.7 Energy counter The last number of the Format field indicates the decimal point place in the Energy field.
Honeywell • 30 6.3.3.9 Communications Fault history The fault history can be viewed by reading from address 40401 onward. The faults are listed in chronological order so that the latest fault is mentioned first and the oldest last. The fault history can contain 29 faults at the same time. The fault history contents are represented as follows. Address Register 40401 440401 40402 440402 40403 440403 ... ... 40429 440429 Table 29.
Communications 6.4 Honeywell • 31 Example messages Example 1 Write the process data 42001…42003 with command 16 (Preset Multiple Registers). Command Master - Slave: ADDRESS 01 hex Slave address 1 hex (= 1) FUNCTION 10 hex Function 10 hex (= 16) DATA Starting address HI 07 hex Starting address 07D0 hex (= 2000) Starting address LO D0 hex No. of registers HI 00 hex No.
Honeywell • 32 Communications Example 2: Read the Process Data 42103…42104 with command 4 (Read Input Registers). Command Master - Slave: ADDRESS 01 hex Slave address 1 hex (= 1) FUNCTION 04 hex Function 4 hex (= 4) DATA Starting address HI 08 hex Starting address LO 36 hex No. of registers HI 00 hex Number of registers 0002 hex (= 2) No.
Communications Honeywell • 33 Example of an exception response In an exception response, the Slave sets the most-significant bit (MSB) of the function code to 1. The Slave returns an exception code in the data field. Command Master - Slave: ADDRESS 01 hex Slave address 1 hex (= 1) FUNCTION 04 hex Function 4 hex (= 4) DATA Starting address HI 17 hex Starting address 1770 hex (= 6000) Starting address LO 70 hex No. of registers HI 00 hex Invalid number of registers 0005 hex (= 5) No.
Honeywell • 34 7. Fault tracing Fault tracing When an unusual operating condition is detected by the AC drive control diagnostics, the drive initiates a notification visible, for example, on the keypad. The keypad will show the ordinal number of the fault, the fault code and a short fault description. The fault can be reset with the Reset button on the control keypad or via the I/O terminal. The faults are stored in the Fault history menu which can be browsed.
Poor communication No communication Check configurations (Slave address, baudrate etc.) Check selected protocol (M5.7.1.1) Figure 9. Fault tracing diagram for Modbus RTU Check distances between cables, see chapter 4.2. Check that both ends of the fieldbus line have termination resistors (chapter 4.2) Check parameters Check cable types, see chapter 3. Check cabling Check termination resistors Check other fieldbus parameters in menu M5.8 Check Master’s parameters Check grounding, see chapter 4.
Poor communication No communication Drive does not start from the bus Check IP address, gateway etc. Check selected protocol (M5.7.1.1) Figure 10. Fault tracing diagram for Modbus TCP Check e.g WLAN or other routers Check stripping of cables and conductors, see chapter 4. Check distances between cables, see chapter 4.2. Check cable types and lengths, see chapter 3. Check connections Check cabling Check other fieldbus parameters in menu M5.
Quick setup 8. Honeywell • 37 Quick setup Following these instructions, you can easily and fast set up your Modbus for use: Choose control place. 1 A. Press LOC/REM button on keypad to select Remote Control Place B. Select Fieldbus as remote control place: Main Menu > Quick Setup (M1) > Rem. Ctrl. Place (P1.15) > FieldbusCTRL Make these settings in the master software C. Set Control Word to ‘0’ (2001) D. Set Control Word to ‘1’ (2001) 2 E. Drive status is RUN F. Set Reference value to ‘5000’ (50.
Honeywell • 38 9. Annex Annex Process Data IN (Master to Slave) Use of Process Data In variables depends on the used application. The configuration of the data is free. Process Data OUT (Slave to Master) Use of Process Data Out variables depends on the used application. The Fieldbus Master can read the drive’s actual values using process data variables.
Automation and Control Solutions Honeywell International Inc. 1985 Douglas Drive North Golden Valley, MN 55422 Honeywell Limited-Honeywell Limitée 35 Dynamic Drive Toronto, Ontario M1V 4Z9 customer.honeywell.com ® U.S. Registered Trademark © 2011 Honeywell International Inc. 62-0351—01 M.S. 01-11 Printed in U.S.A.