background image

Modbus - general info

vacon • 5

Local contacts: http://drives.danfoss.com/danfoss-drives/local-contacts/

2

2.

M

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 and the devices supplying information are Modbus Slaves. The Master can also 
write information to the Slaves. Modbus is typically used to transmit signals from instrumentation 
and control devices back to a main controller or data gathering system.

Standard Modbus network contains one Master device and up to 247 Slave devices. In ModbusRTU  
networks it is mandatory to define a unique Slave Address (or Unit identifier number) for the every 
Slave Device. Slave Address is a number between 1 and 247. Modbus ASCII mode is not supported.

The Modbus communication interface is built around messages. The format of these Modbus mes-
sages is independent of the type of physical interface used. The same protocol can be used regard-
less of the connection type. Because of this, Modbus gives the possibility to easily upgrade the 
hardware structure of an industrial network, without the need for large changes in the software. A 
device can also communicate with several Modbus nodes at once, even if they are connected with 
different interface types, without the need to use a different protocol for every connection.

Figure 1.Basic structure of Modbus frame

On simple interfaces like RS485, the Modbus messages are sent in plain form over the network. In 
this case the network is dedicated to Modbus. 

Each Modbus message has the same structure. Four basic elements are present in each message. 
The sequence of these elements is the same for all messages, to make it easy to parse the content 
of the Modbus message. A conversation is always started by a master in the Modbus network. A 
Modbus master sends a message and—depending of the contents of the message—a slave takes 
action and responds to it. Addressing in the message header is used to define which device should 
respond to a message. All other nodes on the Modbus network ignore the message if the address 
field does not match their own address. 

Your VACON

®

 20 family AC drive is equipped with Modbus support as standard. If you need to con-

tact 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.

11608_uk

Master´s

message

Slave 

response

Start

Address

Function

Data

CRC

End

Start

Address

Function

Data

CRC

End

Содержание 20

Страница 1: ...user manual modbus rtu ac drives vacon 20 cp vacon 20 x vacon 20...

Страница 2: ......

Страница 3: ...0 5 2 Modbus RTU parameters and monitoring values 10 5 2 1 Fieldbus protocol 11 5 2 2 Slave address 11 5 2 3 Baud rate 11 5 2 4 Parity type 12 5 2 5 Communication timeout 12 5 2 6 Reset communication...

Страница 4: ...if no keypad is attached see the indicators on the cover Wait 5 more minutes before doing any work on the connections of the drive Do not open the cover before this time has expired After expiration...

Страница 5: ...tart immediately if the start signal is active unless the pulse control for Start Stop logic has been selected Futhermore the I O functionalities including start inputs may change if param eters appli...

Страница 6: ...rthing 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...

Страница 7: ...in the software A device can also communicate with several Modbus nodes at once even if they are connected with different interface types without the need to use a different protocol for every connect...

Страница 8: ...foss com danfoss drives local contacts Figure 2 Principal example diagram of Modbus 2 1 Restrictions When a fieldbus option board or an OPTBH option board has been installed Modbus is not working Ethe...

Страница 9: ...ices in the bus The Modbus RTU specification states that for a maximum 9600 bits second bitrate and AWG26 or wider gauge the maximum length is 1000 meters The actual cable length used in an installati...

Страница 10: ...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 Also strip the cable now...

Страница 11: ...ation resistor which is switched off as a default presented below The termination resistor can be switched on and off with the right hand dip switch located above IO terminals in the front of the driv...

Страница 12: ...ication to application The exemplary paths below apply to the VACON 20 family AC drive 5 1 Fieldbus control and basic reference selection The following tables list some of the parameters related to fi...

Страница 13: ...d bad messages is shown 1 Illegal function 2 Illegal address 3 Illegal data value 4 Illegal slave device 53 USART receive fault parity error frame error USART buffer overflow 90 Receive buffer overflo...

Страница 14: ...ed 5 2 6 Reset communication status Used to reset the communication status shown in monitor value V2 1 5 2 7 Communication status The Communication status shows how many good and bad messages the driv...

Страница 15: ...ers the interface driver for Modbus RTU communicationmay contain an offset of 1 the ID number to be used would then subtract 1 6 2 Supported Modbus Functions The VACON variables and fault codes as wel...

Страница 16: ...rocess data ID Modbus register Name Scale Type 2101 32101 42101 FB Status Word Binary coded 2102 32102 42102 FB General Status Word Binary coded 2103 32103 42103 Actual speed 0 01 2104 32104 42104 Pro...

Страница 17: ...f the device and messages is indicated in the Status word The Status word is composed of 16 bits the meanings of which are described in the table below Table 9 Input process data ID Modbus register Na...

Страница 18: ...ings of the bits of control word are explained in the table below Speed reference input process data This is the Reference 1 to the AC drive Used normally as Speed reference The allowed scaling is 0 1...

Страница 19: ...nly if the drive is in Ready state see Status Word b0 and actual control place is Fieldbus CW b2 Fault Reset is active even if control place is not the Fieldbus Table 13 Modbus register Name Descripti...

Страница 20: ...nsidered only when control place is the Fieldbus It is computed in AND with a possible enable from digital input Fall of enable will cause coasting stop b2 FreqRef2 Sel is considered only when control...

Страница 21: ...word Drive state As Status word and b7 Control place is fieldbus 2103 Actual speed Actual speed 0 10000 as 0 00 100 00 of Min freq Max freq range 2104 Fieldbus Data OUT 1 Programmable See P11 1 2105...

Страница 22: ...s HI 00 hex Number of registers 0003 hex 3 No of registers LO 03 hex Byte count 06 hex Byte count 06 hex 6 Data HI 00 hex Data 1 0001 hex 1 Setting control word run bit to 1 Data LO 01 hex Data HI 00...

Страница 23: ...RESS 01 hex Slave address 1 hex 1 FUNCTION 04 hex Function 4 hex 4 DATA Starting address HI 08 hex Starting address 0836 hex 2102 Starting address LO 36 hex No of registers HI 00 hex Number of registe...

Страница 24: ...ly near 0 V due to the termination resistors This may cause problems in character reception because the single characters in serial communication begin with start bit referring to bus status 0 with vo...

Страница 25: ...ors chapter 4 Check parameters e Is the device in READY state Check Master s parameters Is fieldbus selected as control place Does Master give RUN command Check cabling Check termination resistors Oth...

Страница 26: ...li cation used P2 1 in VACON 20 P1 11 in VACON 20 X and VACON 20 CP 2 Make these settings in the master software A Set Control Word to 0 by writing the data 0000h to the register 2001d B Set Control W...

Страница 27: ...DATA 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 var...

Страница 28: ...Document ID DPD01925A Rev A Sales code DOC INSV20MODBUS DLUK Vacon Ltd Member of the Danfoss Group Runsorintie 7 65380 Vaasa Finland www danfoss com...

Отзывы: