Vacon 100 Industrial User Manual

Modbus tcp/udp and modbus rtu
Hide thumbs Also See for 100 Industrial:
Table of Contents

Advertisement

vacon 100 industrial
®
vacon 100 flow
®
vacon 100 hvac
®
vacon 100 x
®
ac drives
modbus tcp/udp and modbus rtu
user manual

Advertisement

Table of Contents
loading

Summary of Contents for Vacon 100 Industrial

  • Page 1 100 industrial ® vacon 100 flow ® vacon 100 hvac ® vacon 100 x ® ac drives modbus tcp/udp and modbus rtu user manual...
  • Page 3: Table Of Contents

    Modbus UDP vs TCP......................8 Connections and wiring ....................11 ACD (Address Conflict Detection) in Ethernet network ...........11 Installation......................12 Installation in VACON® 100 family AC drives ..............12 4.1.1 Prepare for use through ethernet ..................13 4.1.2 Prepare for use through RS485..................15 Installation in VACON® 100 X...................19 4.2.1 Prepare for use through Ethernet ..................19...
  • Page 4 6.3.1 Coils registers........................31 6.3.2 Clearing resettable counters....................31 6.3.3 Discrete inputs ........................31 6.3.4 Holding registers and input registers ................32 6.3.5 Vacon Application IDs......................33 6.3.6 FB Process data IN ......................33 6.3.7 FB Process data OUT ......................34 6.3.8 ID map ..........................35 6.3.9 Operation day counter.......................36 6.3.10Resettable operation day counter ..................37...
  • Page 5: Safety

    Safety vacon • 3 AFETY 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.
  • Page 6: Warnings

    (EN 60204-1). 13006.emf ® Only spare parts delivered by VACON can be used. 13006.emf At power-up, power break or fault reset the motor will start immediately if the start signal is active, unless the pulse control for Start/Stop logic has been selected.
  • Page 7: Earthing And Earth Fault Protection

    Safety vacon • 5 Earthing and earth fault protection CAUTION! 13006.emf The AC drive must always be earthed with an earthing conductor connected to the earthing terminal marked with The earth leakage current of the drive exceeds 3.5mA AC. According to EN61800-5-1, one or more...
  • Page 8: Modbus - General Info

    • 6 Modbus - general info ODBUS 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/UDP) and the devices supplying information are Mod- bus Slaves (in Modbus TCP/UDP servers).
  • Page 9 VACON service in problems related to Modbus, send a description of the problem together ® with the Drive Info File taken with VACON Live to customer support. If possible, also send a "Wire- shark" log from the situation if applicable.
  • Page 10: Modbus Technical Data

    Modbus TCP Implementation Guide Default IP Selectable: Fixed or DHCP (AutoIP) Modbus UDP vs TCP ® In addition to TCP, the VACON 100 family AC drive supports also UDP starting from following firm- ware versions: ® ® • VACON 100 INDUSTRIAL and VACON 100 X: FW0072V025 ®...
  • Page 11 Modbus technical data vacon • 9 Modbus TCP Communication Modbus UDP Communication Drive Drive TCP, SYN Modbus Query TCP, SYN, ACK TCP, ACK Modbus Response Modbus Query Modbus Query Modbus Response, TCP, ACK TCP, ACK Modbus Query TCP, ACK TCP, ACK...
  • Page 12 • 10 Modbus technical data Modbus TCP Communication Modbus UDP Communication Drive Drive Modbus Query (1) Modbus Query (1) Modbus Response (1), TCP, ACK Modbus Response (1) TCP, ACK Modbus Query (2) Modbus Query (2) Packet lost, no response...
  • Page 13: Connections And Wiring

    Modbus technical data vacon • 11 Losing one packet is not a big issue because the same request can be sent again after timeout. In TCP, the packages always reach their destination but if network congestion causes retransmis- sions, the resent packages will most likely contain old data or instructions when they reach their destination.
  • Page 14: Installation

    • 12 Installation NSTALLATION ® Installation in VACON 100 family AC drives Open the cover of the AC drive. M4x55 9174.emf The relay outputs and other I/O-terminals may have a dangerous control voltage present even when the AC drive is disconnected from mains.
  • Page 15: Prepare For Use Through Ethernet

    Installation vacon • 13 4.1.1 Prepare for use through ethernet Connect the Ethernet cable (see specification in Chapter 3.2) to its terminal as shown in figure below. Ethernet cable 9316.emf Local contacts: http://drives.danfoss.com/danfoss-drives/local-contacts/...
  • Page 16 • 14 Installation Protection class IP21: Cut free the opening on the AC drive cover for the Ether- net cable. Protection class IP54: Cut the rubber grommets open to slide the cables through. Should the grommets fold in while inserting the cable, just draw the cable back a bit to straighten the grommets up.
  • Page 17: Prepare For Use Through Rs485

    Installation vacon • 15 4.1.2 Prepare for use through RS485 Strip about 15 mm of the RS485 cable (see specification in Chapter 3.1) and cut off the grey cable shield. Remember to do this for both bus cables (except for the last device).
  • Page 18 • 16 Installation ® Then connect the cable to its appropriate terminals on VACON 100 family AC drive standard terminal block, terminals A and B (A = negative, B = positive). See figure below. 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.
  • Page 19 Installation vacon • 17 ® If VACON 100 family AC 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.
  • Page 20 The bus termination must be set for the first and the last device of the fieldbus line. See picture below. See also step 3 on page 17. We recommend that the first device on the bus and, thus, terminated was the Master device. Vacon 100 Vacon 100 Vacon 100 Vacon 100 Vacon 100 Termination...
  • Page 21: Prepare For Use Through Ethernet

    Installation vacon • 19 ® Installation in VACON 100 X The AC drive can be connected to fieldbus either through RS485 or Ethernet. The connection for RS485 is on the standard I/O terminals (A and B) and the connection for Ethernet is left to the control terminals.
  • Page 22: Prepare For Use Through Rs485

    Do not strip the aluminum cable shield! 9188.emf ® Then connect the cable to its appropriate terminals on VACON 100 X AC drive standard terminal block, terminals A and B (A = negative, B = positive). See Figure 6.
  • Page 23 The bus termination must be set for the first and the last device of the fieldbus line. See picture below and step 4. We recommend that the first device on the bus and, thus, terminated, was the Master device. Vacon 100 Vacon 100 Vacon 100 Vacon 100 Vacon 100 Termination...
  • Page 24: Fiedlbus Parametrization

    100 family AC drive. Fieldbus control and basic reference selection ® The following tables list some of the parameters related to fieldbus control in case of VACON ® applications for the VACON 100 family AC drive. See the application specific manuals for more detailed information.
  • Page 25: Enabling Modbus Protocol

    0…65535 IDMap IDs 3159 ® ® * This feature is not supported in VACON 100 HVAC. The default application in the VACON family AC drives supports only Slave mode. A special application is required for Master functionality. Local contacts: http://drives.danfoss.com/danfoss-drives/local-contacts/...
  • Page 26 Used to select the operate mode of the Modbus RTU protocol (slave / master). This feature is not ® ® supported in VACON 100 HVAC. The default application in the VACON 100 family AC drives supports only Slave mode. A special application is required for Master functionality. Table 8. Operate mode values...
  • Page 27: Fieldbus Protocol Status

    Fiedlbus parametrization vacon • 25 5.2.7 IDMap IDs See Chapter 6.3.8. Table 9. Monitoring values related with Modbus used through RTU Panel Tree Parameter Range Description 0 = Init 1 = Stopped P5.8.3.2.1 Fieldbus protocol status 1…3 2381 2 = Operational...
  • Page 28 • 26 Fiedlbus parametrization Only messages to the current slave in use are counted in the good messages. Table 11. Communication status description Good messages 0…999 Number of messages received without errors Bad messages 0…99 Number of messages received with errors 5.2.10...
  • Page 29: Modbus Tcp/Udp Parameters And Monitoring Values

    Fiedlbus parametrization vacon • 27 Modbus TCP/UDP parameters and monitoring values 5.3.1 Ethernet common settings (M5.9.1) Table 12. Ethernet common settings (M5.9.1) Panel Parameter Range Default Description Tree Fixed (1), P5.9.1.1 IP address mode DHCP (2) 2482 IP Mode DHCP(2) This is setting for enabling ACD (See Chapter 3.4).
  • Page 30: Fixed Subnet Mask

    • 28 Fiedlbus parametrization 5.3.4 Fixed Subnet Mask The network mask marks all the bits of an IP address for the identification of the network and the subnetwork. 5.3.5 Fixed default gateway Gateway address is the IP address of a network point that acts as an entrance to another network.
  • Page 31: Connection Limit

    Fiedlbus parametrization vacon • 29 Table 14. Modbus TCP/UDP Monitoring values Panel Tree Parameter Range Unit Default Description P5.9.2.2.1.5 Illegal data values 0…65535 2453 See 5.2.12 P5.9.2.2.1.6 Slave device busy 0…65535 2454 See 5.2.13 Memory parity P5.9.2.2.1.7 0…65535 2455 See 5.2.14...
  • Page 32: Communications

    Features of the Modbus-Vacon interface: ® • Direct control of VACON drive (e.g. Run, Stop, Direction, Speed reference, Fault reset) ® • Full access to all VACON parameters ® • Monitor VACON status (e.g. Output frequency, Output current, Fault code) Data addresses in Modbus messages All data addresses in Modbus messages are referenced to zero.
  • Page 33: Modbus Data Mapping

    Coils registers ® A "coil" in Modbus is a single-bit binary data item which can be both read and written. In VACON 100 family AC drives, the coils refer to some bits in the fieldbus control word." See page 34.
  • Page 34: Holding Registers And Input Registers

    16-bit value which can be both read and written. Holding and input registers are accessed using ® different function codes, and the address ranges are different. In VACON 100 family AC drives, the same information can be accessed as input registers and holding registers, i.e. input register X refers to the same 16-bit value as the holding register X.
  • Page 35 Communications vacon • 33 6.3.5 Vacon Application IDs Application IDs are parameters that depend on the drive's application. These parameters can be read and written by pointing the corresponding memory range directly or by using the so-called ID map (more information below). The easiest way to read a single parameter value or parameters with consecutive ID numbers is to use a straight address.
  • Page 36 • 34 Communications Process Data Master -> Slave (max 22 bytes) Table 21. Fieldbus Process Data IN Address Name Range/Type 16-bit 32-bit 2051 = High data 2001 FB Control Word Binary coded 2052 = Low data 2002 FB General Control Word Binary coded...
  • Page 37 ID Map read/write for 32bit values. Maximum of 30 IDs and ID values can be written and read with single request. ® IDMap IDs can be also configured from the panel or VACON Live PC tool. IDmap menu is located under Modbus TCP and Modbus RTU settings. See details in chapters 5.1 and 5.2.2.
  • Page 38 Data included in parameter ID704 If the IDMap table has not been initialized, all data fields are showing the value '0'. Once the IDMap ® table has been initialized, the parameter ID's are stored in the VACON 100 family AC drive’s flash memory.
  • Page 39: Resettable Operation Day Counter

    Communications vacon • 37 Operation day counter as seconds This counter in registers 40011d to 40012d holds the value of operation days as seconds in a 32-bit unsigned integer. Table 25. Operation days counter as seconds Address Description 40011 High data Holds the counter value as seconds.
  • Page 40: Energy Counter

    • 38 Communications 6.3.11 Energy counter This counter holds the value of total amount of energy taken from a supply network. This counter cannot be reset. The values are read only. Energy counter as kWh This counter is in registers 40211d to 40212d and is a 32-bit floating point (IEEE 754) value containing the number of kilowatt-hours (kWh) that is in the drive's energy counter.
  • Page 41: Resettable Energy Counter

    Communications vacon • 39 6.3.12 Resettable energy counter This counter holds the value of total amount of energy taken from a supply network since the counter was last reset. For resetting this counter see Chapter 6.3.2". The values are read only.
  • Page 42: Fault History

    • 40 Communications 6.3.13 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.
  • Page 43: Modbus Tcp/Udp Communication And Connection Timeout

    Modbus TCP/UDP communication and connection timeout ® It is possible to open up to three Modbus TCP/UDP connections to the VACON 100 family AC drive. One of the connections could be used for process data and other just for reading monitoring data.
  • Page 44: Example Messages

    • 42 Communications Example messages 6.5.1 Example 1 - Write Process Data Write the process data 42001…42003 with command 16 (Preset Multiple Registers). Command Master - Slave: Table 36. ADDRESS 01 hex Slave address 1 hex (= 1) FUNCTION...
  • Page 45: Example 2 - Read Process Data

    Communications vacon • 43 Reply frame: Table 39. 01 10 07 D0 00 03 80 85 6.5.2 Example 2 - Read process data Read the Process Data 42103…42104 with command 4 (Read Input Registers). Command Master - Slave: Table 40.
  • Page 46: Example 3 - Exception Response

    • 44 Communications Reply frame: Table 43. 01 04 04 13 88 09 C4 78 E9 6.5.3 Example 3 - Exception response most-significant bit (MSB) In an exception response, the Slave sets the of the function code to 1.
  • Page 47: Fault Tracing

    Fault tracing vacon • 45 AULT TRACING When an unusual operating condition is detected by the AC drive control diagnostics, the drive ini- tiates 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.
  • Page 48: Other Fault Conditions

    • 46 Fault tracing Other fault conditions The following fault tracing diagram will help you to locate and fix some of the most usual problems. If the problem persists contact your local distributor. 9330.emf Figure 9. Fault tracing diagram for Modbus RTU...
  • Page 49 Fault tracing vacon • 47 9329.emf Figure 10. Fault tracing diagram for Modbus TCP Local contacts: http://drives.danfoss.com/danfoss-drives/local-contacts/...
  • Page 50: Quick Setup

    • 48 Quick setup UICK SETUP Following these instructions, you can easily and fast set up your Modbus for use: Choose control place. Remote Control Place A. Press LOC/REM button on keypad to select Fieldbus Main Menu Quick Setup (M1)
  • Page 51: Appendix 1 - Process Data

    NOTE 2! In VACON 100 HVAC, the default ID is 45 meaning "Motor Current 1 Decimal". In VACON 100 family AC drives, the default ID is 3 for Motor Current. The ID 45 can be mapped by the user to ®...
  • Page 52: Appendix 2 - Control And Status Word

    VACON standard applications, the functionality of FBGeneralControlWord is totally ® application specific and can vary even in the VACON standard applications. The meanings of FBFixedControlWord bits are described below. Unused bits have to be set to zero.
  • Page 53 Jogging request with reference 2. No action Quick stop Drive executes quick stop / emergency stop. 13 - 15 Reserved ® Table 52. Control word bit support in VACON 100 family AC drives ® VACON ® Function VACON 100 HVAC...
  • Page 54: Status Word Descriptions

    Motor is running at zero speed. Motor is not magnetized. Flux ready Motor is magnetized. B8-B12 Reserved The following table is valid for most of VACON 100 applications. Table 54. Status Word bits B29-B31, descriptions of bit connections Description Control place Control place Control place...
  • Page 55: Appendix 6 - Lwip Licence

    APPENDIX 6 - LWIP LICENCE vacon • 53 APPENDIX 6 - LWIP LICENCE License for LWIP Copyright (c) 2001, 2002 Swedish Institute of Computer Science. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1.Redistributions of source code must retain the above copyright notice, this list of conditions and...
  • Page 56 Document ID: Vacon Ltd DPD00156D Member of the Danfoss Group Rev. D Runsorintie 7 65380 Vaasa Sales code: DOC-INSMODBUS+DLUK Finland...

This manual is also suitable for:

100 hvac100 flow100 x

Table of Contents