SlideShare a Scribd company logo
1 of 36
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
1 
Drives Division 
MMooddbbuuss ffoorr VVLLTT®FFCC--sseerriieess66
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
2 
Drives Division 
Agenda 
• OOvveerrvviieeww 
• MMooddbbuuss AASSCCIIII//RRTTUU 
• FFrraammee SSttrruuccttuurree 
• EExxcceeppttiioonn ccooddeess 
• FFuunnccttiioonn ccooddeess 
• CCooiillss 
• HHoollddiinngg rreeggiisstteerrss 
• DDrriivvee ppaarraammeetteerrss 
• RRSS--448855
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
3 
Drives Division 
Overview 
• MMOODDBBUUSS PPrroottooccooll iiss aa mmeessssaaggiinngg ssttrruuccttuurree ccrreeaatteedd bbyy MMOODDIICCOONN 
ccoommppaannyy ttoo ccoonnnneecctt PPLLCC ttoo pprrooggrraammmmiinngg ttoooollss.. 
• IItt iiss nnooww wwiiddeellyy uusseedd ttoo eessttaabblliisshh mmaasstteerr--ssllaavvee ccoommmmuunniiccaattiioonn bbeettwweeeenn 
iinntteelllliiggeenntt ddeevviicceess.. 
• MMOODDBBUUSS iiss iinnddeeppeennddeenntt ooff tthhee pphhyyssiiccaall llaayyeerr.. 
• IItt ccaann bbee iimmpplleemmeenntteedd uussiinngg RRSS223322,, RRSS442222,, oorr RRSS448855 oorr oovveerr aa vvaarriieettyy 
ooff mmeeddiiaa ((ee..gg.. ffiibbrree,, rraaddiioo,, cceelllluullaarr,, eettcc......))..
MODBUS is independent of the physical layer: 
MMooddbbuuss oonn TTCCPP 
TTCCPP 
IIPP 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
4 
Drives Division 
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
MMooddbbuuss AApppplliiccaattiioonn LLaayyeerr 
OOtthheerr 
OOtthheerr 
MMooddbbuuss++//HHDDLLCC 
RRSS--448855 
MMaasstteerr//SSllaavvee 
RRSS--448855//RRSS--223322 
EEtthheerrnneett IIII 
880022..33 
EEtthheerrnneett 
pphhyyssiiccaall llaayyeerr 
MMooddbbuuss ++ MMooddbbuuss RRTTUU
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
5 
Drives Division 
Modbus ASCII and Modbus RTU 
TThhee MMOODDBBUUSS pprroottooccooll ccoommeess iinn 22 vveerrssiioonnss :: 
• AASSCCIIII ttrraannssmmiissssiioonn mmooddee: 
EEaacchh eeiigghhtt--bbiitt bbyyttee iinn aa mmeessssaaggee iiss sseenntt aass 22 AASSCCIIII cchhaarraacctteerrss.. 
• RRTTUU ttrraannssmmiissssiioonn mmooddee 
EEaacchh eeiigghhtt--bbiitt bbyyttee iinn aa mmeessssaaggee iiss sseenntt aass ttwwoo ffoouurr--bbiitt hheexxaaddeecciimmaall cchhaarraacctteerrss.. 
TThhee mmaaiinn aaddvvaannttaaggee ooff tthhee RRTTUU mmooddee iiss tthhaatt iitt aacchhiieevveess hhiigghheerr tthhrroouugghhppuutt.. 
AASSCCIIII mmooddee aalllloowwss ttiimmee iinntteerrvvaallss ooff uupp ttoo 11 sseeccoonndd ttoo ooccccuurr bbeettwweeeenn cchhaarraacctteerrss wwiitthhoouutt 
ccaauussiinngg aann eerrrroorr ((ee..gg.. bbaarr--ccooddee ssccaannnneerrss))..
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
MMooddbbuuss RRTTUU: 
silence Address Function Data Checksum silence 
Silence >= 3.5 characters 
MMooddbbuuss AASSCCIIII: 
Start CR LF 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
6 
Drives Division 
Modbus frame structure 
TThhee MMooddbbuuss ffrraammee ssttrruuccttuurree iiss tthhee ssaammee ffoorr rreeqquueessttss ((mmaasstteerr -->> ssllaavvee)) aanndd rreessppoonnsseess 
((ssllaavvee -->> mmaasstteerr)): 
Address Function Data Checksum 
3A hex 0D hex 0A hex
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
Address Function Data Checksum 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
7 
Drives Division 
Address field 
• VVaalliidd ssllaavvee ddeevviiccee aaddddrreesssseess aarree iinn tthhee rraannggee ooff 00 ...... 224477 ddeecciimmaall.. 
• TThhee iinnddiivviidduuaall ssllaavvee ddeevviicceess aarree aassssiiggnneedd aaddddrreesssseess iinn tthhee rraannggee ooff 11 ...... 224477.. 
• VVaalluuee 00 iiss rreesseerrvveedd ffoorr bbrrooaaddccaasstt mmeessssaaggeess ((nnoo rreessppoonnssee)).. 
RReeqquueesstt:: 
AA mmaasstteerr aaddddrreesssseess aa ssllaavvee bbyy ppllaacciinngg tthhee ssllaavvee aaddddrreessss iinn tthhee aaddddrreessss ffiieelldd ooff 
tthhee mmeessssaaggee.. 
RReessppoonnssee:: 
WWhheenn tthhee ssllaavvee sseennddss iittss rreessppoonnssee,, iitt ppllaacceess iittss oowwnn aaddddrreessss iinn tthhiiss aaddddrreessss ffiieelldd 
ooff tthhee rreessppoonnssee ttoo lleett tthhee mmaasstteerr kknnooww wwhhiicchh ssllaavvee iiss rreessppoonnddiinngg..
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
Address Function Data Checksum 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
8 
Drives Division 
Function Field 
• VVaalliidd ccooddeess aarree iinn tthhee rraannggee ooff 11 -->> FFFF hheexx.. 
RReeqquueesstt:: 
TThhee ffuunnccttiioonn ccooddee ffiieelldd tteellllss tthhee ssllaavvee wwhhaatt kkiinndd ooff aaccttiioonn ttoo ppeerrffoorrmm.. 
RReessppoonnssee:: 
FFoorr aa nnoorrmmaall rreessppoonnssee,, tthhee ssllaavvee ssiimmppllyy eecchhooeess tthhee oorriiggiinnaall ffuunnccttiioonn ccooddee.. 
FFoorr aann eexxcceeppttiioonn rreessppoonnssee,, tthhee ssllaavvee rreettuurrnnss aa ccooddee tthhaatt iiss eeqquuiivvaalleenntt ttoo tthhee oorriiggiinnaall 
ffuunnccttiioonn ccooddee wwiitthh iittss mmoosstt ssiiggnniiffiiccaanntt bbiitt sseett ttoo aa llooggiicc 11..
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
Address Function Data Checksum 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
9 
Drives Division 
Data Field 
RReeqquueesstt:: 
TThhee ddaattaa ffiieelldd ccoonnttaaiinnss aaddddiittiioonnaall iinnffoorrmmaattiioonn wwhhiicchh tthhee ssllaavvee mmuusstt uussee ttoo ttaakkee tthhee aaccttiioonn 
ddeeffiinneedd bbyy tthhee ffuunnccttiioonn ccooddee.. TThhiiss ccaann iinncclluuddee iitteemmss lliikkee rreeggiisstteerr aaddddrreesssseess,, qquuaannttiittyy ooff 
iitteemmss ttoo bbee hhaannddlleedd,, eettcc...... 
RReessppoonnssee:: 
IIff nnoo eerrrroorr ooccccuurrss,, tthhee ddaattaa ffiieelldd ccoonnttaaiinnss tthhee ddaattaa rreeqquueesstteedd.. 
IIff aann eerrrroorr ooccccuurrss,, tthhee ffiieelldd ccoonnttaaiinnss aann eexxcceeppttiioonn ccooddee tthhaatt tthhee mmaasstteerr aapppplliiccaattiioonn ccaann uussee 
ttoo ddeetteerrmmiinnee tthhee nneexxtt aaccttiioonn ttoo bbee ttaakkeenn..
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
10 
Drives Division 
FC 100 Modbus Exception Codes 
code in 
data field Exception code description 
0x00 The parameter number does not exist 
0x01 There is no write access to the parameter 
0x02 The data value exceeds the parameter limits 
0x03 The sub-index in use does not exist 
0x04 The parameter is not of the array type 
0x05 The data type does not match the parameter called 
0x06 Only reset 
0x07 Not changeable 
0xB No write access 
0x11 Data change in the parameter called is not possible in the present mode 
0x12 Other error 
0x40 Invalid data address 
0x41 Invalid message length 
0x42 Invalid data length or value 
0x43 Invalid function code 
0x82 There is no bus access to the parameter called 
0x83 Data change is not possible because factory set-up is selected
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
Address Function Data Checksum 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
11 
Drives Division 
Checksum Field 
• MMooddbbuuss RRTTUU uusseess CCRRCC:: CCyycclliiccaall RReedduunnddaannccyy CChheecckk ((22 bbyyttee)) 
• MMooddbbuuss AASSCCIIII uusseess LLRRCC:: LLoonnggiittuuddiinnaall RReedduunnddaannccyy CChheecckk ((11 bbyytteess)) 
RReeqquueesstt:: 
TThhee cchheecckkssuumm iiss ccaallccuullaatteedd bbyy tthhee mmaasstteerr aanndd sseennddss ttoo tthhee ssllaavvee.. 
RReessppoonnssee:: 
TThhee cchheecckkssuumm iiss rree--ccaallccuullaatteedd bbyy tthhee ssllaavvee aanndd ccoommppaarreedd ttoo tthhee vvaalluuee sseenntt bbyy tthhee mmaasstteerr.. 
IIff aa ddiiffffeerreennccee iiss ddeetteecctteedd,, tthhee ssllaavvee wwiillll nnoott ccoonnssttrruucctt aa rreessppoonnssee ttoo tthhee mmaasstteerr..
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
1 byte 1 byte 2 bytes 2 bytes 2 bytes 
1 byte 1 byte 2 bytes 2 bytes 2 bytes 
2 bytes 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
12 
Drives Division 
Modbus RTU Frame example: 
FFuunnccttiioonn ccooddee == 0033hheexx :: RReeaadd HHoollddiinngg RReeggiisstteerrss...... 
Slave 
Function 
First word 
Number of 
Address code=0x03 
address 
words to read 
CRC16 RReessppoonnssee :: 
Slave 
Function 
Number of 
Value of the 
Value of the 
Address code=0x03 
bytes read 
first word 
last word 
CRC16 RReeqquueesstt ::
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
RReeqquueesstt :: 
1 byte 1 byte 2 bytes 2 bytes 2 bytes 
1 byte 1 byte 2 bytes 2 bytes 2 bytes 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
13 
Drives Division 
Modbus RTU Frame example: 
FFuunnccttiioonn ccooddee == 0066hheexx :: WWrriittee ssiinnggllee RReeggiisstteerr 
Slave 
Function 
Word 
Address code=0x06 address 
Value of word 
CRC16 RReessppoonnssee :: 
Slave 
Address Word address CRC16 Function 
code=0x06 Value of word
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
RReeqquueesstt :: 
1 byte 1 byte 2 bytes 2 bytes 1 byte 2 bytes 
2 bytes 
Slave 
Function 
First word 
Address code=0x10 
address 
CRC16 1 byte 1 byte 2 bytes 2 bytes 2 bytes 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
14 
Drives Division 
Modbus RTU Frame example: 
FFuunnccttiioonn ccooddee == 1100hheexx :: WWrriittee MMuullttiippllee RReeggiisstteerrss 
RReessppoonnssee :: 
Number of 
words to write 
Value of the 
first word 
Number of 
bytes 
Slave 
Function 
First word 
Number of 
Address code=0x10 
address 
words to write 
CRC16
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
15 
Drives Division 
Supported Modbus Function Codes in FC 100 
• TThhee FFuunnccttiioonn CCooddee tteellllss wwhhaatt ttyyppee ooff MMooddbbuuss tteelleeggrraamm iitt iiss...... 
Function Function 
code 
Read coils 1 hex 
Read holding registers 3 hex 
Write single coil 5 hex 
Write single register 6 hex 
Diagnostics* 8 hex 
Write multiple coils F hex 
Write multiple registers 10 hex 
Get comm. event counter B hex 
Report slave ID* 11 hex 
Read Device Identification* 2B hex 
** ==
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
16 
Drives Division 
Supported Modbus Function Codes 
• FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss 
Function Function 
code 
Sub-function code Sub-function 
Diagnostics 8 
1 Restart communication 
2 Return diagnostic register 
10 (0xA) Clear counters and diagnostic register 
11 (0xB) Return bus message count 
12 (0xC) Return bus communication error count 
13 (0xD) Return bus exception error count 
14 (0xE) Return slave message count
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
17 
Drives Division 
Supported Modbus Function Codes 
• FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss,, ssuubb--ffuunnccttiioonn 22 RReettuurrnn ddiiaaggnnoossttiiccss rreeggiisstteerr 
Function Function 
code 
Sub-function code Sub-function 
Diagnostics 8 2 Return diagnostic register 
Description Length Data 
MSB Function code 1 byte 0x08 
Sub-function code 2 bytes 0x0002 
4 bytes Alarm word 
LSB 4 bytes Warning word 
• RReessppoonnssee::
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
18 
Drives Division 
Supported Modbus Function Codes 
• FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss,, ssuubb--ffuunnccttiioonn 22 RReettuurrnn ddiiaaggnnoossttiiccss rreeggiisstteerr 
Function Function 
code 
Sub-function code Sub-function 
Diagnostics 8 11 Return Bus Message Count 
Description Length Data 
MSB Function code 1 byte 0x08 
Sub-function code 2 bytes 0x000B 
LSB Data 2 bytes Par. 8-80 Bus Message Count 
• RReessppoonnssee::
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
19 
Drives Division 
Supported Modbus Function Codes 
• FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss,, ssuubb--ffuunnccttiioonn 22 RReettuurrnn ddiiaaggnnoossttiiccss rreeggiisstteerr 
Function Function 
code 
Sub-function code Sub-function 
Diagnostics 8 12 Return bus communication error count 
• RReessppoonnssee:: 
Description Length Data 
MSB Function code 1 byte 0x08 
Sub-function code 2 bytes 0x000C 
LSB Data 2 bytes Par. 8-81 Bus Error Count
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
20 
Drives Division 
Supported Modbus Function Codes 
• FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss,, ssuubb--ffuunnccttiioonn 22 RReettuurrnn ddiiaaggnnoossttiiccss rreeggiisstteerr 
Function Function 
code 
Sub-function code Sub-function 
Diagnostics 8 13 Return slave message count 
• RReessppoonnssee:: 
Description Length Data 
MSB Function code 1 byte 0x08 
Sub-function code 2 bytes 0x000D 
LSB Data 2 bytes Par. 8-83 Slave Error Message Count
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
21 
Drives Division 
Supported Modbus Function Codes 
• FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss,, ssuubb--ffuunnccttiioonn 22 RReettuurrnn ddiiaaggnnoossttiiccss rreeggiisstteerr 
Function Function 
code 
Sub-function code Sub-function 
Diagnostics 8 14 Return slave message count 
• RReessppoonnssee:: 
Description Length Data 
MSB Function code 1 byte 0x08 
Sub-function code 2 bytes 0x000E 
LSB Data 2 bytes Par. 8-82 Slave Message Count
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
• RReessppoonnssee:: 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
22 
Drives Division 
Supported Modbus Function Codes 
• FFuunnccttiioonn CCooddee 1111hheexx:: RReeppoorrtt SSllaavvee IIDD 
Function Length Data 
MSB Function code 1 byte 0x11 
Byte count 1 byte 1-251(N) 
Slave ID 0-250 bytes Slave ID 
LSB Run status Indicators 1 bytes 0x00 or 0xFF 
FC 
Parameter 
Name 
15-40 FC Type 
15-41 Power section 
15-42 Voltage 
15-43 SW version 
• 00xx0000 iiff ccooiill ‘‘SSttooppppeedd // RRuunnnniinngg’’ iiss 00 ((ccooiill nnoo.. 4444)) 
• 00xxFFFF iiff ccooiill ‘‘SSttooppppeedd // RRuunnnniinngg’’ iiss 11 ((ccooiill nnoo.. 4444))
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
• RReessppoonnssee:: 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
23 
Drives Division 
Supported Modbus Function Codes 
• FFuunnccttiioonn CCooddee 22BBhheexx:: DDeevviiccee IIddeennttiiffiiccaattiioonn 
Description Length Data 
MSB Function code 1 byte 0x2B 
MEI type 1 byte 0x0E 
Read device ID code 1 byte 1 or 2 or 3 or 4 
Conformity level 1 byte 1 or 2 or 3 or 81 or 82 
More Follows 1 byte 0x00 or 0xFF 
Next Object ID 1 byte Object ID number 
Number of objects 1 byte 0x00 – 0x0F 
1st object ID 1 byte 
1st object length 1 byte 
1st object Value 1st obj. length 
... 
LSB ... 
DDeevviiccee IIddeenntt..
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
24 
Drives Division 
Device Identification 
FC Parameter Name Modbus Obj. ID Modbus description 
15-51 FC Serial 0x80 Private object 
15-60 [0] Option: Slot A 0x81 Private object 
15-61 [0] Option SW: Slot A 0x82 Private object 
15-62 [0] Opt. ord. no.: Slot A 0x83 Private object 
15-60 [1] Option: Slot B 0x84 Private object 
15-61 [1] Option SW: Slot B 0x85 Private object 
15-62 [1] Opt. ord. no.: Slot B 0x86 Private object 
15-60 [2] Option: Slot C0 0x87 Private object 
15-61 [2] Option SW: Slot C0 0x88 Private object 
15-62 [2] Opt. ord. no.: Slot C0 0x89 Private object 
15-60 [3] Option: Slot C1 0x8A Private object 
15-61 [3] Option SW: Slot C1 0x8B Private object 
15-62 [3] Opt. ord. no.: Slot C1 0x8C Private object 
15-45 Option: Slot D 0x8D Private object
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
25 
Drives Division 
Coils (single bit) 
Coil number Description Signal direction 
1 – 16 Frequency converter control word Master -> slave 
17 – 32 Frequency converter speed or set-point 
reference 
Range 0x0 – 0xFFFF (-200% ... 
~200%) 
Master -> slave 
33 – 48 Frequency converter status word Slave -> master 
49 – 64 Open loop mode: Frequency converter 
output frequency 
Closed loop mode: Frequency 
converter feedback signal 
Slave -> master 
65 Parameter write control Master -> slave 
0 = Parameter changes are 
written to the RAM of 
the frequency converter 
1 = Parameter changes are 
written to the RAM and 
EEPROM of the 
frequency converter. 
66 - 65536 Reserved
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
26 
Drives Division 
Holding registers (words) 
Register number Description 
00001 – 00006 Reserved 
00007 Last error code from an FC data object interface 
00008 Reserved 
00009 Parameter index* 
00010 – 00999 000 parameter group (parameters 001 through 099) 
01000 – 01999 100 parameter group (parameters 100 through 199) 
02000 – 02999 200 parameter group (parameters 200 through 299) 
03000 – 03999 300 parameter group (parameters 300 through 399) 
04000 – 04999 400 parameter group (parameters 400 through 499) 
… … 
49000 – 49999 4900 parameter group (parameters 4900 through 4999) 
50000 Input data: Frequency converter control word register (CTW). 
50010 Input data: Bus reference register (REF). 
… … 
50200 Output data: Frequency converter status word register (STW). 
50210 Output data: Frequency converter main actual value register 
(MAV).
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
• HHoollddiinngg rreegg.. 0000001100,, aaddddrreesssseedd aass:: 4400001100 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
27 
Drives Division 
Holding registers (words), addressing 
• HHoollddiinngg rreeggiisstteerr 0000000011 iiss aaddddrreesssseedd aass rreeggiisstteerr 4400000011 iinn tthhee ddaattaa aaddddrreessss 
ffiieelldd ooff tthhee mmeessssaaggee.. 
• TThhee ffuunnccttiioonn ccooddee ffiieelldd aallrreeaaddyy ssppeecciiffiieess aa ‘‘hhoollddiinngg rreeggiisstteerr’’ ooppeerraattiioonn.. 
TThheerreeffoorree,, tthhee ‘‘44XXXXXXXX’’ rreeffeerreennccee iiss iimmpplliicciitt.. 
EExxaammppllee:: PPaarr 00--0011 LLaanngguuaaggee:: 
EExxaammppllee:: PPaarr 2200--2211 FFeeeeddbbaacckk:: ((NNBB:: 3322 bbiitt)) 
• HHoollddiinngg rreegg.. 002200221100,, aaddddrreesssseedd aass:: 442200221100 ((hhiigghh 
wwoorrdd)) 
• HHoollddiinngg rreegg.. 002200221111,, aaddddrreesssseedd aass:: 442200221111 ((llooww 
wwoorrdd))
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
28 
Drives Division 
FC 100 Frequency Converter Set-up 
TToo eennaabbllee MMooddbbuuss RRTTUU oonn tthhee FFCC 110000,, sseett tthhee ffoolllloowwiinngg ppaarraammeetteerrss:: 
Parameter no. Parameter name Setting 
8-30 Protocol Modbus RTU 
8-31 Address 1 – 247 
8-32 Baud rate 2400 - 115200 
8-33 Parity / Stop bits Even parity, 1 stop bit 
(default)
MMooddbbuuss RRTTUU ffoorr FFCC 110000 
D1 
D0 
Common 
5 V 
650 W 
650 W 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
29 
Drives Division 
RS-485 physics 
Master 
Slave 1 Slave 2 
120 W 
1 nF 
120 W 
1 nF 
MMaaxxiimmuumm lleennggtthh ooff bbuuss 11000000 mm aatt 1199220000 bbppss 
MMaaxxiimmuumm nnuummbbeerr ooff ssttaattiioonnss ((wwiitthhoouutt rreeppeeaatteerr)) 3322 ((3311 ssllaavveess)) 
MMaaxxiimmuumm lleennggtthh ooff ttaapp lliinnkkss 2200 mm ffoorr oonnee ttaapp lliinnkk 
4400 mm ddiivviiddeedd bbyy tthhee nnuummbbeerr ooff ttaapp lliinnkkss 
BBuuss ppoollaarriissaattiioonn 665500 W aatt 55VV aanndd ccoommmmoonn ffoorr tthhee mmaasstteerr 
LLiinnee tteerrmmiinnaattoorr 112200 W -- 00,,2255WWmm iinn sseerriieess wwiitthh 11nnFF 1100VV 
CCoommmmoonn ppoollaarriittyy YYeess ((CCoommmmoonn)) ccoonnnneecctteedd ttoo tthhee PPGG
MMooddbbuuss TTCCPP 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
30 
Drives Division 
MCA 122 
• MMooddbbuuss TTCCPP iiss tthhee oollddeesstt IInndduussttrriiaall EEtthheerrnneett 
PPrroottooccooll 
•WWaass iinnttrroodduucceedd bbyy MMooddiiccoonn bbaacckk iinn 11999999.. 
• TThhee PPrroottooccooll iiss wwiiddeellyy uusseedd iinnssiiddee:: 
• WWaatteerr//WWaasstteewwaatteerr aanndd iinnssiiddee ccoommppaanniieess 
ssttaannddaarrddiizziinngg tthheeiirr PPLLCC ssyysstteemm oonn 
MMooddiiccoonn//GGrroouupp SScchhnneeiiddeerr PPLLCC’’ss
MMooddbbuuss TTCCPP 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
31 
Drives Division 
MCA 122 
• MMooddbbuuss RRTTUU ttoo MMooddbbuuss TTCCPP 
•EEaassyy ccoonnnneeccttiioonn ttoo GGrroouupp SScchhnneeiiddeerr PPLLCC’’ss aanndd lleeaaddiinngg 
SSCCAADDAA ssyysstteemmss 
• HHiigghh ppeerrffoorrmmaannccee ooppttiioonn,, ccaappaabbllee ooff eexxeeccuuttee 
ccoommmmaannddss iinn 55mmSSeecc rraattee 
• TTwwoo EEtthheerrnneett ppoorrttss wwiitthh bbuuiilldd iinn sswwiittcchh,, eennaabblliinngg lliinnee 
ssttrruuccttuurree.. 
• NNoo nneeeedd ffoorr eexxppeennssiivvee sswwiittcchheess,, dduuee ttoo tthhee bbuuiilldd iinn 
sswwiittcchh,, 
• BBuuiilldd iinn wweebb sseerrvveerr,, ffoorr eeaassyy ssttaattuuss ffrroomm rreemmoottee PPCC 
• EE--mmaaiill nnoottiiffyy,, tthhaatt ccaann sseenndd EE--mmaaiill iiff WWaarrnniinngg//aallaarrmm 
ooccccuurrss 
• RReeggiisstteerr mmaappppiinngg eeqquuaall ttoo MMooddbbuuss RRTTUU,, wwhhiicchh aalllloowwss aa 
eeaassyy uuppggrraaddee ffrroomm 
•HHiigghh ssppeeeedd aacccceessss ffrroomm MMCCTT--1100 SSeettuupp SSooffttwwaarree vviiaa 
EEtthheerrnneett
MMooddbbuuss RRTTUU//TTCCPP 
1 byte 1 byte 2 bytes 2 bytes 2 bytes 
1 byte 1 byte 2 bytes 2 bytes 1 byte 2 bytes 
2 bytes 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
32 
Drives Division 
Read/write block of data (Process data) 
FFuunnccttiioonn ccooddee == 0033hheexx :: RReeaadd HHoollddiinngg RReeggiisstteerrss...... 
Slave 
Function 
First word 
Number of 
Address code=0x03 
address 
words to read 
CRC16 RReeqquueesstt :: 
FFuunnccttiioonn ccooddee == 1100hheexx :: WWrriittee MMuullttiippllee RReeggiisstteerrss 
RReeqquueesstt :: 
Slave 
Function 
First word 
Number of 
Number of 
Value of the 
Address code=0x10 
address 
words to write 
bytes 
first word 
CRC16 TThhiiss iiss oonnllyy ppoossssiibbllee wwiitthh ccoonnsseeccuuttiivvee rreeggiisstteerrss ((nnoo ““hhoolleess”” iinn tthhee rraannggee))
MMooddbbuuss RRTTUU//TTCCPP 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
33 
Drives Division 
Read/write block of data (Process data) 
• SSiinnccee ppaarraammeetteerrss aarree oorrggaanniizzeedd iinn rreeggiisstteerrss 
wwiitthh jjuummppss ooff 1100,, iitt iiss nnoott ppoossssiibbllee ttoo mmaakkee 
bblloocckk--rreeaadd//wwrriittee.. 
Register # Data 
10 Par. 0-01 
11 … 
12 … 
13 … 
14 … 
15 … 
16 … 
17 … 
18 … 
19 
20 Par. 0-02 
21
MMooddbbuuss RRTTUU//TTCCPP 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
34 
Drives Division 
Read/write block of data (Process data) 
• TToo eennaabbllee bblloocckk--rreeaadd//wwrriittee,, aa bblloocckk ooff 
pprroocceessss--ddaattaa hhaass bbeeeenn ddeeffiinneedd.. 
• PPaarr.. 228811 aanndd 229911 iiss nnoott uusseedd.. 
• BBlloocckk iiss bbeellooww rreegg.. ##1100,,000000 wwhhiicchh iiss 
aacccceessssiibbllee ffoorr aallll PPLLCC’’ss 
• CCaann aallssoo bbee uusseedd ffoorr ddoowwnn--mmaappppiinngg ooff 
ppaarraammeetteerrss…… 
• AAvvaaiillaabbllee oonn MMooddbbuuss TTCCPP 
• WWiillll aallssoo bbee aavvaaiillaabbllee oonn MMooddbbuuss RRTTUU 
RReeggiisstteerr ## DDaattaa 
MMooddbbuuss TTCCPP MMooddbbuuss RRTTUU 
MMaappppiinngg ppaarraammeetteerr 
WRITE 
2810 CTW 12-21[0] 8-43[0] 
2811 REF 12-21[1] 8-43[1] 
2812 PCD 3 12-21[2] 8-43[2] 
2813 PCD 4 12-21[3] 8-43[3] 
2814 PCD 5 12-21[4] 8-43[4] 
2815 PCD 6 12-21[5] 8-43[5] 
2816 PCD 7 12-21[6] 8-43[6] 
2817 PCD 8 12-21[7] 8-43[7] 
2818 PCD 9 12-21[8] 8-43[8] 
2719 PCD 10 12-21[9] 8-43[9] 
… … … 
READ 
2910 STW 21-22[0] 8-44[0] 
2911 MAV 21-22[1] 8-44[1] 
2912 PCD 3 21-22[2] 8-44[2] 
2913 PCD 4 21-22[3] 8-44[3] 
2914 PCD 5 21-22[4] 8-44[4] 
2915 PCD 6 21-22[5] 8-44[5] 
2916 PCD 7 21-22[6] 8-44[6] 
2917 PCD 8 21-22[7] 8-44[7] 
2918 PCD 9 21-22[8] 8-44[8] 
2919 PCD 10 21-22[9] 8-44[9]
MMooddbbuuss RRTTUU//TTCCPP 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
35 
Drives Division 
Read/write block of data (Process data) 
......
MMooddbbuuss 
2009-June-22 
Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 
36 
Drives Division 
Want to know more? 
VVLLTT® FFCC 110000 LLoonnWWoorrkkss:: 
MMGG..1111..EE11..0022 
wwwwww..mmooddbbuuss..oorrgg

More Related Content

What's hot

Osteo osteomalacia ricket2
Osteo osteomalacia ricket2Osteo osteomalacia ricket2
Osteo osteomalacia ricket2padli ahmad
 
Gmdss reglementation
Gmdss   reglementationGmdss   reglementation
Gmdss reglementationRabah HELAL
 
Penetration testing: A proactive approach to secure computing - Eric Vanderbu...
Penetration testing: A proactive approach to secure computing - Eric Vanderbu...Penetration testing: A proactive approach to secure computing - Eric Vanderbu...
Penetration testing: A proactive approach to secure computing - Eric Vanderbu...Eric Vanderburg
 
Resume gmdss _ smdsm
   Resume   gmdss _ smdsm   Resume   gmdss _ smdsm
Resume gmdss _ smdsmRabah HELAL
 
Activity 3 axial skeleton
Activity 3 axial skeletonActivity 3 axial skeleton
Activity 3 axial skeletonmeleebirdsong
 
2011planningforcollege 111129150759-phpapp01
2011planningforcollege 111129150759-phpapp012011planningforcollege 111129150759-phpapp01
2011planningforcollege 111129150759-phpapp01Ariunaa Nasan-Ochir
 
Nanaimo Marketing Agency - Evolution Business Media Group
Nanaimo Marketing Agency - Evolution Business Media GroupNanaimo Marketing Agency - Evolution Business Media Group
Nanaimo Marketing Agency - Evolution Business Media GroupChris Cathers
 
Hardware and operating sytems
Hardware and operating sytemsHardware and operating sytems
Hardware and operating sytemsspooler85
 
Treatment & disposal of waste water
Treatment & disposal of waste waterTreatment & disposal of waste water
Treatment & disposal of waste waterArvind Kumar
 
06.introduction to middle third fractures
06.introduction to  middle third fractures  06.introduction to  middle third fractures
06.introduction to middle third fractures vasanramkumar
 
Activitats extraescolars 14 15
Activitats extraescolars 14 15Activitats extraescolars 14 15
Activitats extraescolars 14 15Pepe Rodenas
 
Acceleration and force 2010
Acceleration and force 2010Acceleration and force 2010
Acceleration and force 2010sbarkanic
 
Komunikasi serial avr
Komunikasi serial avrKomunikasi serial avr
Komunikasi serial avrmuslih4475
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015Edhole.com
 
3 bis assignation tribunal Sidi M'Hamed
3 bis assignation tribunal Sidi M'Hamed3 bis assignation tribunal Sidi M'Hamed
3 bis assignation tribunal Sidi M'HamedRabah HELAL
 

What's hot (17)

Osteo osteomalacia ricket2
Osteo osteomalacia ricket2Osteo osteomalacia ricket2
Osteo osteomalacia ricket2
 
Gmdss reglementation
Gmdss   reglementationGmdss   reglementation
Gmdss reglementation
 
VLSI11
VLSI11VLSI11
VLSI11
 
Penetration testing: A proactive approach to secure computing - Eric Vanderbu...
Penetration testing: A proactive approach to secure computing - Eric Vanderbu...Penetration testing: A proactive approach to secure computing - Eric Vanderbu...
Penetration testing: A proactive approach to secure computing - Eric Vanderbu...
 
Major Regions of Texas
Major Regions of TexasMajor Regions of Texas
Major Regions of Texas
 
Resume gmdss _ smdsm
   Resume   gmdss _ smdsm   Resume   gmdss _ smdsm
Resume gmdss _ smdsm
 
Activity 3 axial skeleton
Activity 3 axial skeletonActivity 3 axial skeleton
Activity 3 axial skeleton
 
2011planningforcollege 111129150759-phpapp01
2011planningforcollege 111129150759-phpapp012011planningforcollege 111129150759-phpapp01
2011planningforcollege 111129150759-phpapp01
 
Nanaimo Marketing Agency - Evolution Business Media Group
Nanaimo Marketing Agency - Evolution Business Media GroupNanaimo Marketing Agency - Evolution Business Media Group
Nanaimo Marketing Agency - Evolution Business Media Group
 
Hardware and operating sytems
Hardware and operating sytemsHardware and operating sytems
Hardware and operating sytems
 
Treatment & disposal of waste water
Treatment & disposal of waste waterTreatment & disposal of waste water
Treatment & disposal of waste water
 
06.introduction to middle third fractures
06.introduction to  middle third fractures  06.introduction to  middle third fractures
06.introduction to middle third fractures
 
Activitats extraescolars 14 15
Activitats extraescolars 14 15Activitats extraescolars 14 15
Activitats extraescolars 14 15
 
Acceleration and force 2010
Acceleration and force 2010Acceleration and force 2010
Acceleration and force 2010
 
Komunikasi serial avr
Komunikasi serial avrKomunikasi serial avr
Komunikasi serial avr
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
3 bis assignation tribunal Sidi M'Hamed
3 bis assignation tribunal Sidi M'Hamed3 bis assignation tribunal Sidi M'Hamed
3 bis assignation tribunal Sidi M'Hamed
 

Viewers also liked

Documento scan plastic
Documento scan plasticDocumento scan plastic
Documento scan plasticconfidencial
 
Telas do vlt na rede devicenet ultimo
Telas do vlt na rede devicenet ultimoTelas do vlt na rede devicenet ultimo
Telas do vlt na rede devicenet ultimoconfidencial
 
3%20 ii%20sittrs%20 %20kompac
3%20 ii%20sittrs%20 %20kompac3%20 ii%20sittrs%20 %20kompac
3%20 ii%20sittrs%20 %20kompacconfidencial
 
Gea biodiesel lavagem e clarificação
Gea   biodiesel lavagem e clarificaçãoGea   biodiesel lavagem e clarificação
Gea biodiesel lavagem e clarificaçãoconfidencial
 
Eip scan com ethernet
Eip scan com ethernetEip scan com ethernet
Eip scan com ethernetconfidencial
 
Gea 04 - concentração de glicerina completa
Gea   04 - concentração de glicerina completaGea   04 - concentração de glicerina completa
Gea 04 - concentração de glicerina completaconfidencial
 
Clients pb dl03-web-v.4.8
Clients pb dl03-web-v.4.8Clients pb dl03-web-v.4.8
Clients pb dl03-web-v.4.8confidencial
 
Apresentação recife energia
Apresentação recife energiaApresentação recife energia
Apresentação recife energiaconfidencial
 
4.1 broken belt rev2 portugues
4.1 broken belt rev2 portugues4.1 broken belt rev2 portugues
4.1 broken belt rev2 portuguesconfidencial
 
Compensação de vazão
Compensação de vazãoCompensação de vazão
Compensação de vazãoconfidencial
 
Treinamento – vfs15 pratica
Treinamento – vfs15 praticaTreinamento – vfs15 pratica
Treinamento – vfs15 praticaconfidencial
 
Gea 05 - esterificação
Gea   05 - esterificaçãoGea   05 - esterificação
Gea 05 - esterificaçãoconfidencial
 
Ethernet via explorer
Ethernet via explorerEthernet via explorer
Ethernet via explorerconfidencial
 
Gea 03 - cisão retificação tratamento completa
Gea   03 - cisão retificação tratamento completaGea   03 - cisão retificação tratamento completa
Gea 03 - cisão retificação tratamento completaconfidencial
 
Modulo 01 materia prima conceitos básicos
Modulo 01 materia prima  conceitos básicosModulo 01 materia prima  conceitos básicos
Modulo 01 materia prima conceitos básicosconfidencial
 
F1502 p iman3-pt_v3.8_l
F1502 p iman3-pt_v3.8_lF1502 p iman3-pt_v3.8_l
F1502 p iman3-pt_v3.8_lconfidencial
 

Viewers also liked (20)

Documento scan plastic
Documento scan plasticDocumento scan plastic
Documento scan plastic
 
Telas do vlt na rede devicenet ultimo
Telas do vlt na rede devicenet ultimoTelas do vlt na rede devicenet ultimo
Telas do vlt na rede devicenet ultimo
 
3%20 ii%20sittrs%20 %20kompac
3%20 ii%20sittrs%20 %20kompac3%20 ii%20sittrs%20 %20kompac
3%20 ii%20sittrs%20 %20kompac
 
Gea biodiesel lavagem e clarificação
Gea   biodiesel lavagem e clarificaçãoGea   biodiesel lavagem e clarificação
Gea biodiesel lavagem e clarificação
 
Eip scan com ethernet
Eip scan com ethernetEip scan com ethernet
Eip scan com ethernet
 
Gea 04 - concentração de glicerina completa
Gea   04 - concentração de glicerina completaGea   04 - concentração de glicerina completa
Gea 04 - concentração de glicerina completa
 
Clients pb dl03-web-v.4.8
Clients pb dl03-web-v.4.8Clients pb dl03-web-v.4.8
Clients pb dl03-web-v.4.8
 
Apresentação recife energia
Apresentação recife energiaApresentação recife energia
Apresentação recife energia
 
4.1 broken belt rev2 portugues
4.1 broken belt rev2 portugues4.1 broken belt rev2 portugues
4.1 broken belt rev2 portugues
 
Compensação de vazão
Compensação de vazãoCompensação de vazão
Compensação de vazão
 
Treinamento – vfs15 pratica
Treinamento – vfs15 praticaTreinamento – vfs15 pratica
Treinamento – vfs15 pratica
 
Gea 05 - esterificação
Gea   05 - esterificaçãoGea   05 - esterificação
Gea 05 - esterificação
 
Modscan r0x
Modscan r0xModscan r0x
Modscan r0x
 
Ethernet via explorer
Ethernet via explorerEthernet via explorer
Ethernet via explorer
 
Estrutura de rede
Estrutura de redeEstrutura de rede
Estrutura de rede
 
Ethernet ip r0
Ethernet ip r0Ethernet ip r0
Ethernet ip r0
 
Gea 03 - cisão retificação tratamento completa
Gea   03 - cisão retificação tratamento completaGea   03 - cisão retificação tratamento completa
Gea 03 - cisão retificação tratamento completa
 
Explicit message
Explicit messageExplicit message
Explicit message
 
Modulo 01 materia prima conceitos básicos
Modulo 01 materia prima  conceitos básicosModulo 01 materia prima  conceitos básicos
Modulo 01 materia prima conceitos básicos
 
F1502 p iman3-pt_v3.8_l
F1502 p iman3-pt_v3.8_lF1502 p iman3-pt_v3.8_l
F1502 p iman3-pt_v3.8_l
 

Similar to #4 modbus rtu tcp

Uml manuu lab BY SARFARAZ HUSAIN
Uml manuu lab BY SARFARAZ HUSAINUml manuu lab BY SARFARAZ HUSAIN
Uml manuu lab BY SARFARAZ HUSAINAzad public school
 
Metro ethernet(LAN & MAN Networking)
Metro ethernet(LAN & MAN Networking)Metro ethernet(LAN & MAN Networking)
Metro ethernet(LAN & MAN Networking)Vishal Katara
 
Formula1 presentation
Formula1 presentationFormula1 presentation
Formula1 presentationtellalp
 
ROTEX Controls USA - Rack & Pinion and Scotch Yoke Actuators
ROTEX Controls USA - Rack & Pinion and Scotch Yoke ActuatorsROTEX Controls USA - Rack & Pinion and Scotch Yoke Actuators
ROTEX Controls USA - Rack & Pinion and Scotch Yoke ActuatorsROTEX Controls USA
 
Progression testing - on how regression test automation needs to be progressi...
Progression testing - on how regression test automation needs to be progressi...Progression testing - on how regression test automation needs to be progressi...
Progression testing - on how regression test automation needs to be progressi...adampknight
 
Getting to know the cbc - it's about time!
Getting to know the cbc - it's about time!Getting to know the cbc - it's about time!
Getting to know the cbc - it's about time!Mia Lesaca-Medina
 
Chap 03 underlying technology
Chap 03 underlying technologyChap 03 underlying technology
Chap 03 underlying technologyNoctorous Jamal
 
9 hard drive technologies
9 hard drive technologies9 hard drive technologies
9 hard drive technologieshafizhanif86
 
CS201- Introduction to Programming- Lecture 39
CS201- Introduction to Programming- Lecture 39CS201- Introduction to Programming- Lecture 39
CS201- Introduction to Programming- Lecture 39Bilal Ahmed
 

Similar to #4 modbus rtu tcp (20)

Uml manuu lab BY SARFARAZ HUSAIN
Uml manuu lab BY SARFARAZ HUSAINUml manuu lab BY SARFARAZ HUSAIN
Uml manuu lab BY SARFARAZ HUSAIN
 
Rita Leahy: Porous Pavements
Rita Leahy: Porous PavementsRita Leahy: Porous Pavements
Rita Leahy: Porous Pavements
 
Metro ethernet(LAN & MAN Networking)
Metro ethernet(LAN & MAN Networking)Metro ethernet(LAN & MAN Networking)
Metro ethernet(LAN & MAN Networking)
 
Formula1 presentation
Formula1 presentationFormula1 presentation
Formula1 presentation
 
VLSI10
VLSI10VLSI10
VLSI10
 
Ethernet
EthernetEthernet
Ethernet
 
ROTEX Controls USA - Rack & Pinion and Scotch Yoke Actuators
ROTEX Controls USA - Rack & Pinion and Scotch Yoke ActuatorsROTEX Controls USA - Rack & Pinion and Scotch Yoke Actuators
ROTEX Controls USA - Rack & Pinion and Scotch Yoke Actuators
 
Laudo pericial
Laudo pericialLaudo pericial
Laudo pericial
 
Laudo defesa de Lula Tacla Durán
Laudo defesa de Lula Tacla DuránLaudo defesa de Lula Tacla Durán
Laudo defesa de Lula Tacla Durán
 
VLSI2 by RP Rao
VLSI2 by RP RaoVLSI2 by RP Rao
VLSI2 by RP Rao
 
Sindrome x fragil
Sindrome x fragilSindrome x fragil
Sindrome x fragil
 
VLSI9
VLSI9VLSI9
VLSI9
 
Progression testing - on how regression test automation needs to be progressi...
Progression testing - on how regression test automation needs to be progressi...Progression testing - on how regression test automation needs to be progressi...
Progression testing - on how regression test automation needs to be progressi...
 
Getting to know the cbc - it's about time!
Getting to know the cbc - it's about time!Getting to know the cbc - it's about time!
Getting to know the cbc - it's about time!
 
Chap 03 underlying technology
Chap 03 underlying technologyChap 03 underlying technology
Chap 03 underlying technology
 
84640 633554912394375000
84640 63355491239437500084640 633554912394375000
84640 633554912394375000
 
9 hard drive technologies
9 hard drive technologies9 hard drive technologies
9 hard drive technologies
 
22 the internet
22 the internet22 the internet
22 the internet
 
CS201- Introduction to Programming- Lecture 39
CS201- Introduction to Programming- Lecture 39CS201- Introduction to Programming- Lecture 39
CS201- Introduction to Programming- Lecture 39
 
VLSI7
VLSI7VLSI7
VLSI7
 

More from confidencial

19 exercises v1.00_en
19 exercises v1.00_en19 exercises v1.00_en
19 exercises v1.00_enconfidencial
 
18 syntax rules v1.0
18 syntax rules v1.018 syntax rules v1.0
18 syntax rules v1.0confidencial
 
17 demonstration server client system-v1.00_en
17 demonstration server client system-v1.00_en17 demonstration server client system-v1.00_en
17 demonstration server client system-v1.00_enconfidencial
 
15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_enconfidencial
 
14 mass data engineering v1.00_en
14 mass data engineering v1.00_en14 mass data engineering v1.00_en
14 mass data engineering v1.00_enconfidencial
 
13 locking functions and operating modes v1.00_en
13 locking functions and operating modes v1.00_en13 locking functions and operating modes v1.00_en
13 locking functions and operating modes v1.00_enconfidencial
 
12 archiving system v1.00_en
12 archiving system v1.00_en12 archiving system v1.00_en
12 archiving system v1.00_enconfidencial
 
11 customizing the os v1.00_en
11 customizing the os v1.00_en11 customizing the os v1.00_en
11 customizing the os v1.00_enconfidencial
 
10 basics automatic mode control v1.00_en
10 basics automatic mode control v1.00_en10 basics automatic mode control v1.00_en
10 basics automatic mode control v1.00_enconfidencial
 
09 basics operating and monitoring v1.00_en
09 basics operating and monitoring v1.00_en09 basics operating and monitoring v1.00_en
09 basics operating and monitoring v1.00_enconfidencial
 
08 basics control functions v1.00_en
08 basics control functions v1.00_en08 basics control functions v1.00_en
08 basics control functions v1.00_enconfidencial
 
07 connection to the process v1.00_en
07 connection to the process v1.00_en07 connection to the process v1.00_en
07 connection to the process v1.00_enconfidencial
 
06 station and network configuration v1.00_en
06 station and network configuration v1.00_en06 station and network configuration v1.00_en
06 station and network configuration v1.00_enconfidencial
 
05 project setup v1.00_en
05 project setup v1.00_en05 project setup v1.00_en
05 project setup v1.00_enconfidencial
 
03 requirements and functional process description v1.00_en
03 requirements and functional process description v1.00_en03 requirements and functional process description v1.00_en
03 requirements and functional process description v1.00_enconfidencial
 
02 pcs 7 documentation and support v1.00 en
02 pcs 7 documentation and support v1.00 en02 pcs 7 documentation and support v1.00 en
02 pcs 7 documentation and support v1.00 enconfidencial
 
01 introduction v1.00_en
01 introduction v1.00_en01 introduction v1.00_en
01 introduction v1.00_enconfidencial
 
00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 enconfidencial
 
Fluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verdeFluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verdeconfidencial
 
01tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp0101tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp01confidencial
 

More from confidencial (20)

19 exercises v1.00_en
19 exercises v1.00_en19 exercises v1.00_en
19 exercises v1.00_en
 
18 syntax rules v1.0
18 syntax rules v1.018 syntax rules v1.0
18 syntax rules v1.0
 
17 demonstration server client system-v1.00_en
17 demonstration server client system-v1.00_en17 demonstration server client system-v1.00_en
17 demonstration server client system-v1.00_en
 
15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en
 
14 mass data engineering v1.00_en
14 mass data engineering v1.00_en14 mass data engineering v1.00_en
14 mass data engineering v1.00_en
 
13 locking functions and operating modes v1.00_en
13 locking functions and operating modes v1.00_en13 locking functions and operating modes v1.00_en
13 locking functions and operating modes v1.00_en
 
12 archiving system v1.00_en
12 archiving system v1.00_en12 archiving system v1.00_en
12 archiving system v1.00_en
 
11 customizing the os v1.00_en
11 customizing the os v1.00_en11 customizing the os v1.00_en
11 customizing the os v1.00_en
 
10 basics automatic mode control v1.00_en
10 basics automatic mode control v1.00_en10 basics automatic mode control v1.00_en
10 basics automatic mode control v1.00_en
 
09 basics operating and monitoring v1.00_en
09 basics operating and monitoring v1.00_en09 basics operating and monitoring v1.00_en
09 basics operating and monitoring v1.00_en
 
08 basics control functions v1.00_en
08 basics control functions v1.00_en08 basics control functions v1.00_en
08 basics control functions v1.00_en
 
07 connection to the process v1.00_en
07 connection to the process v1.00_en07 connection to the process v1.00_en
07 connection to the process v1.00_en
 
06 station and network configuration v1.00_en
06 station and network configuration v1.00_en06 station and network configuration v1.00_en
06 station and network configuration v1.00_en
 
05 project setup v1.00_en
05 project setup v1.00_en05 project setup v1.00_en
05 project setup v1.00_en
 
03 requirements and functional process description v1.00_en
03 requirements and functional process description v1.00_en03 requirements and functional process description v1.00_en
03 requirements and functional process description v1.00_en
 
02 pcs 7 documentation and support v1.00 en
02 pcs 7 documentation and support v1.00 en02 pcs 7 documentation and support v1.00 en
02 pcs 7 documentation and support v1.00 en
 
01 introduction v1.00_en
01 introduction v1.00_en01 introduction v1.00_en
01 introduction v1.00_en
 
00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en
 
Fluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verdeFluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verde
 
01tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp0101tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp01
 

#4 modbus rtu tcp

  • 1. 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 1 Drives Division MMooddbbuuss ffoorr VVLLTT®FFCC--sseerriieess66
  • 2. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 2 Drives Division Agenda • OOvveerrvviieeww • MMooddbbuuss AASSCCIIII//RRTTUU • FFrraammee SSttrruuccttuurree • EExxcceeppttiioonn ccooddeess • FFuunnccttiioonn ccooddeess • CCooiillss • HHoollddiinngg rreeggiisstteerrss • DDrriivvee ppaarraammeetteerrss • RRSS--448855
  • 3. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 3 Drives Division Overview • MMOODDBBUUSS PPrroottooccooll iiss aa mmeessssaaggiinngg ssttrruuccttuurree ccrreeaatteedd bbyy MMOODDIICCOONN ccoommppaannyy ttoo ccoonnnneecctt PPLLCC ttoo pprrooggrraammmmiinngg ttoooollss.. • IItt iiss nnooww wwiiddeellyy uusseedd ttoo eessttaabblliisshh mmaasstteerr--ssllaavvee ccoommmmuunniiccaattiioonn bbeettwweeeenn iinntteelllliiggeenntt ddeevviicceess.. • MMOODDBBUUSS iiss iinnddeeppeennddeenntt ooff tthhee pphhyyssiiccaall llaayyeerr.. • IItt ccaann bbee iimmpplleemmeenntteedd uussiinngg RRSS223322,, RRSS442222,, oorr RRSS448855 oorr oovveerr aa vvaarriieettyy ooff mmeeddiiaa ((ee..gg.. ffiibbrree,, rraaddiioo,, cceelllluullaarr,, eettcc......))..
  • 4. MODBUS is independent of the physical layer: MMooddbbuuss oonn TTCCPP TTCCPP IIPP 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 4 Drives Division MMooddbbuuss RRTTUU ffoorr FFCC 110000 MMooddbbuuss AApppplliiccaattiioonn LLaayyeerr OOtthheerr OOtthheerr MMooddbbuuss++//HHDDLLCC RRSS--448855 MMaasstteerr//SSllaavvee RRSS--448855//RRSS--223322 EEtthheerrnneett IIII 880022..33 EEtthheerrnneett pphhyyssiiccaall llaayyeerr MMooddbbuuss ++ MMooddbbuuss RRTTUU
  • 5. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 5 Drives Division Modbus ASCII and Modbus RTU TThhee MMOODDBBUUSS pprroottooccooll ccoommeess iinn 22 vveerrssiioonnss :: • AASSCCIIII ttrraannssmmiissssiioonn mmooddee: EEaacchh eeiigghhtt--bbiitt bbyyttee iinn aa mmeessssaaggee iiss sseenntt aass 22 AASSCCIIII cchhaarraacctteerrss.. • RRTTUU ttrraannssmmiissssiioonn mmooddee EEaacchh eeiigghhtt--bbiitt bbyyttee iinn aa mmeessssaaggee iiss sseenntt aass ttwwoo ffoouurr--bbiitt hheexxaaddeecciimmaall cchhaarraacctteerrss.. TThhee mmaaiinn aaddvvaannttaaggee ooff tthhee RRTTUU mmooddee iiss tthhaatt iitt aacchhiieevveess hhiigghheerr tthhrroouugghhppuutt.. AASSCCIIII mmooddee aalllloowwss ttiimmee iinntteerrvvaallss ooff uupp ttoo 11 sseeccoonndd ttoo ooccccuurr bbeettwweeeenn cchhaarraacctteerrss wwiitthhoouutt ccaauussiinngg aann eerrrroorr ((ee..gg.. bbaarr--ccooddee ssccaannnneerrss))..
  • 6. MMooddbbuuss RRTTUU ffoorr FFCC 110000 MMooddbbuuss RRTTUU: silence Address Function Data Checksum silence Silence >= 3.5 characters MMooddbbuuss AASSCCIIII: Start CR LF 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 6 Drives Division Modbus frame structure TThhee MMooddbbuuss ffrraammee ssttrruuccttuurree iiss tthhee ssaammee ffoorr rreeqquueessttss ((mmaasstteerr -->> ssllaavvee)) aanndd rreessppoonnsseess ((ssllaavvee -->> mmaasstteerr)): Address Function Data Checksum 3A hex 0D hex 0A hex
  • 7. MMooddbbuuss RRTTUU ffoorr FFCC 110000 Address Function Data Checksum 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 7 Drives Division Address field • VVaalliidd ssllaavvee ddeevviiccee aaddddrreesssseess aarree iinn tthhee rraannggee ooff 00 ...... 224477 ddeecciimmaall.. • TThhee iinnddiivviidduuaall ssllaavvee ddeevviicceess aarree aassssiiggnneedd aaddddrreesssseess iinn tthhee rraannggee ooff 11 ...... 224477.. • VVaalluuee 00 iiss rreesseerrvveedd ffoorr bbrrooaaddccaasstt mmeessssaaggeess ((nnoo rreessppoonnssee)).. RReeqquueesstt:: AA mmaasstteerr aaddddrreesssseess aa ssllaavvee bbyy ppllaacciinngg tthhee ssllaavvee aaddddrreessss iinn tthhee aaddddrreessss ffiieelldd ooff tthhee mmeessssaaggee.. RReessppoonnssee:: WWhheenn tthhee ssllaavvee sseennddss iittss rreessppoonnssee,, iitt ppllaacceess iittss oowwnn aaddddrreessss iinn tthhiiss aaddddrreessss ffiieelldd ooff tthhee rreessppoonnssee ttoo lleett tthhee mmaasstteerr kknnooww wwhhiicchh ssllaavvee iiss rreessppoonnddiinngg..
  • 8. MMooddbbuuss RRTTUU ffoorr FFCC 110000 Address Function Data Checksum 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 8 Drives Division Function Field • VVaalliidd ccooddeess aarree iinn tthhee rraannggee ooff 11 -->> FFFF hheexx.. RReeqquueesstt:: TThhee ffuunnccttiioonn ccooddee ffiieelldd tteellllss tthhee ssllaavvee wwhhaatt kkiinndd ooff aaccttiioonn ttoo ppeerrffoorrmm.. RReessppoonnssee:: FFoorr aa nnoorrmmaall rreessppoonnssee,, tthhee ssllaavvee ssiimmppllyy eecchhooeess tthhee oorriiggiinnaall ffuunnccttiioonn ccooddee.. FFoorr aann eexxcceeppttiioonn rreessppoonnssee,, tthhee ssllaavvee rreettuurrnnss aa ccooddee tthhaatt iiss eeqquuiivvaalleenntt ttoo tthhee oorriiggiinnaall ffuunnccttiioonn ccooddee wwiitthh iittss mmoosstt ssiiggnniiffiiccaanntt bbiitt sseett ttoo aa llooggiicc 11..
  • 9. MMooddbbuuss RRTTUU ffoorr FFCC 110000 Address Function Data Checksum 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 9 Drives Division Data Field RReeqquueesstt:: TThhee ddaattaa ffiieelldd ccoonnttaaiinnss aaddddiittiioonnaall iinnffoorrmmaattiioonn wwhhiicchh tthhee ssllaavvee mmuusstt uussee ttoo ttaakkee tthhee aaccttiioonn ddeeffiinneedd bbyy tthhee ffuunnccttiioonn ccooddee.. TThhiiss ccaann iinncclluuddee iitteemmss lliikkee rreeggiisstteerr aaddddrreesssseess,, qquuaannttiittyy ooff iitteemmss ttoo bbee hhaannddlleedd,, eettcc...... RReessppoonnssee:: IIff nnoo eerrrroorr ooccccuurrss,, tthhee ddaattaa ffiieelldd ccoonnttaaiinnss tthhee ddaattaa rreeqquueesstteedd.. IIff aann eerrrroorr ooccccuurrss,, tthhee ffiieelldd ccoonnttaaiinnss aann eexxcceeppttiioonn ccooddee tthhaatt tthhee mmaasstteerr aapppplliiccaattiioonn ccaann uussee ttoo ddeetteerrmmiinnee tthhee nneexxtt aaccttiioonn ttoo bbee ttaakkeenn..
  • 10. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 10 Drives Division FC 100 Modbus Exception Codes code in data field Exception code description 0x00 The parameter number does not exist 0x01 There is no write access to the parameter 0x02 The data value exceeds the parameter limits 0x03 The sub-index in use does not exist 0x04 The parameter is not of the array type 0x05 The data type does not match the parameter called 0x06 Only reset 0x07 Not changeable 0xB No write access 0x11 Data change in the parameter called is not possible in the present mode 0x12 Other error 0x40 Invalid data address 0x41 Invalid message length 0x42 Invalid data length or value 0x43 Invalid function code 0x82 There is no bus access to the parameter called 0x83 Data change is not possible because factory set-up is selected
  • 11. MMooddbbuuss RRTTUU ffoorr FFCC 110000 Address Function Data Checksum 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 11 Drives Division Checksum Field • MMooddbbuuss RRTTUU uusseess CCRRCC:: CCyycclliiccaall RReedduunnddaannccyy CChheecckk ((22 bbyyttee)) • MMooddbbuuss AASSCCIIII uusseess LLRRCC:: LLoonnggiittuuddiinnaall RReedduunnddaannccyy CChheecckk ((11 bbyytteess)) RReeqquueesstt:: TThhee cchheecckkssuumm iiss ccaallccuullaatteedd bbyy tthhee mmaasstteerr aanndd sseennddss ttoo tthhee ssllaavvee.. RReessppoonnssee:: TThhee cchheecckkssuumm iiss rree--ccaallccuullaatteedd bbyy tthhee ssllaavvee aanndd ccoommppaarreedd ttoo tthhee vvaalluuee sseenntt bbyy tthhee mmaasstteerr.. IIff aa ddiiffffeerreennccee iiss ddeetteecctteedd,, tthhee ssllaavvee wwiillll nnoott ccoonnssttrruucctt aa rreessppoonnssee ttoo tthhee mmaasstteerr..
  • 12. MMooddbbuuss RRTTUU ffoorr FFCC 110000 1 byte 1 byte 2 bytes 2 bytes 2 bytes 1 byte 1 byte 2 bytes 2 bytes 2 bytes 2 bytes 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 12 Drives Division Modbus RTU Frame example: FFuunnccttiioonn ccooddee == 0033hheexx :: RReeaadd HHoollddiinngg RReeggiisstteerrss...... Slave Function First word Number of Address code=0x03 address words to read CRC16 RReessppoonnssee :: Slave Function Number of Value of the Value of the Address code=0x03 bytes read first word last word CRC16 RReeqquueesstt ::
  • 13. MMooddbbuuss RRTTUU ffoorr FFCC 110000 RReeqquueesstt :: 1 byte 1 byte 2 bytes 2 bytes 2 bytes 1 byte 1 byte 2 bytes 2 bytes 2 bytes 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 13 Drives Division Modbus RTU Frame example: FFuunnccttiioonn ccooddee == 0066hheexx :: WWrriittee ssiinnggllee RReeggiisstteerr Slave Function Word Address code=0x06 address Value of word CRC16 RReessppoonnssee :: Slave Address Word address CRC16 Function code=0x06 Value of word
  • 14. MMooddbbuuss RRTTUU ffoorr FFCC 110000 RReeqquueesstt :: 1 byte 1 byte 2 bytes 2 bytes 1 byte 2 bytes 2 bytes Slave Function First word Address code=0x10 address CRC16 1 byte 1 byte 2 bytes 2 bytes 2 bytes 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 14 Drives Division Modbus RTU Frame example: FFuunnccttiioonn ccooddee == 1100hheexx :: WWrriittee MMuullttiippllee RReeggiisstteerrss RReessppoonnssee :: Number of words to write Value of the first word Number of bytes Slave Function First word Number of Address code=0x10 address words to write CRC16
  • 15. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 15 Drives Division Supported Modbus Function Codes in FC 100 • TThhee FFuunnccttiioonn CCooddee tteellllss wwhhaatt ttyyppee ooff MMooddbbuuss tteelleeggrraamm iitt iiss...... Function Function code Read coils 1 hex Read holding registers 3 hex Write single coil 5 hex Write single register 6 hex Diagnostics* 8 hex Write multiple coils F hex Write multiple registers 10 hex Get comm. event counter B hex Report slave ID* 11 hex Read Device Identification* 2B hex ** ==
  • 16. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 16 Drives Division Supported Modbus Function Codes • FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss Function Function code Sub-function code Sub-function Diagnostics 8 1 Restart communication 2 Return diagnostic register 10 (0xA) Clear counters and diagnostic register 11 (0xB) Return bus message count 12 (0xC) Return bus communication error count 13 (0xD) Return bus exception error count 14 (0xE) Return slave message count
  • 17. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 17 Drives Division Supported Modbus Function Codes • FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss,, ssuubb--ffuunnccttiioonn 22 RReettuurrnn ddiiaaggnnoossttiiccss rreeggiisstteerr Function Function code Sub-function code Sub-function Diagnostics 8 2 Return diagnostic register Description Length Data MSB Function code 1 byte 0x08 Sub-function code 2 bytes 0x0002 4 bytes Alarm word LSB 4 bytes Warning word • RReessppoonnssee::
  • 18. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 18 Drives Division Supported Modbus Function Codes • FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss,, ssuubb--ffuunnccttiioonn 22 RReettuurrnn ddiiaaggnnoossttiiccss rreeggiisstteerr Function Function code Sub-function code Sub-function Diagnostics 8 11 Return Bus Message Count Description Length Data MSB Function code 1 byte 0x08 Sub-function code 2 bytes 0x000B LSB Data 2 bytes Par. 8-80 Bus Message Count • RReessppoonnssee::
  • 19. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 19 Drives Division Supported Modbus Function Codes • FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss,, ssuubb--ffuunnccttiioonn 22 RReettuurrnn ddiiaaggnnoossttiiccss rreeggiisstteerr Function Function code Sub-function code Sub-function Diagnostics 8 12 Return bus communication error count • RReessppoonnssee:: Description Length Data MSB Function code 1 byte 0x08 Sub-function code 2 bytes 0x000C LSB Data 2 bytes Par. 8-81 Bus Error Count
  • 20. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 20 Drives Division Supported Modbus Function Codes • FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss,, ssuubb--ffuunnccttiioonn 22 RReettuurrnn ddiiaaggnnoossttiiccss rreeggiisstteerr Function Function code Sub-function code Sub-function Diagnostics 8 13 Return slave message count • RReessppoonnssee:: Description Length Data MSB Function code 1 byte 0x08 Sub-function code 2 bytes 0x000D LSB Data 2 bytes Par. 8-83 Slave Error Message Count
  • 21. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 21 Drives Division Supported Modbus Function Codes • FFuunnccttiioonn CCooddee 88:: DDiiaaggnnoossttiiccss,, ssuubb--ffuunnccttiioonn 22 RReettuurrnn ddiiaaggnnoossttiiccss rreeggiisstteerr Function Function code Sub-function code Sub-function Diagnostics 8 14 Return slave message count • RReessppoonnssee:: Description Length Data MSB Function code 1 byte 0x08 Sub-function code 2 bytes 0x000E LSB Data 2 bytes Par. 8-82 Slave Message Count
  • 22. MMooddbbuuss RRTTUU ffoorr FFCC 110000 • RReessppoonnssee:: 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 22 Drives Division Supported Modbus Function Codes • FFuunnccttiioonn CCooddee 1111hheexx:: RReeppoorrtt SSllaavvee IIDD Function Length Data MSB Function code 1 byte 0x11 Byte count 1 byte 1-251(N) Slave ID 0-250 bytes Slave ID LSB Run status Indicators 1 bytes 0x00 or 0xFF FC Parameter Name 15-40 FC Type 15-41 Power section 15-42 Voltage 15-43 SW version • 00xx0000 iiff ccooiill ‘‘SSttooppppeedd // RRuunnnniinngg’’ iiss 00 ((ccooiill nnoo.. 4444)) • 00xxFFFF iiff ccooiill ‘‘SSttooppppeedd // RRuunnnniinngg’’ iiss 11 ((ccooiill nnoo.. 4444))
  • 23. MMooddbbuuss RRTTUU ffoorr FFCC 110000 • RReessppoonnssee:: 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 23 Drives Division Supported Modbus Function Codes • FFuunnccttiioonn CCooddee 22BBhheexx:: DDeevviiccee IIddeennttiiffiiccaattiioonn Description Length Data MSB Function code 1 byte 0x2B MEI type 1 byte 0x0E Read device ID code 1 byte 1 or 2 or 3 or 4 Conformity level 1 byte 1 or 2 or 3 or 81 or 82 More Follows 1 byte 0x00 or 0xFF Next Object ID 1 byte Object ID number Number of objects 1 byte 0x00 – 0x0F 1st object ID 1 byte 1st object length 1 byte 1st object Value 1st obj. length ... LSB ... DDeevviiccee IIddeenntt..
  • 24. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 24 Drives Division Device Identification FC Parameter Name Modbus Obj. ID Modbus description 15-51 FC Serial 0x80 Private object 15-60 [0] Option: Slot A 0x81 Private object 15-61 [0] Option SW: Slot A 0x82 Private object 15-62 [0] Opt. ord. no.: Slot A 0x83 Private object 15-60 [1] Option: Slot B 0x84 Private object 15-61 [1] Option SW: Slot B 0x85 Private object 15-62 [1] Opt. ord. no.: Slot B 0x86 Private object 15-60 [2] Option: Slot C0 0x87 Private object 15-61 [2] Option SW: Slot C0 0x88 Private object 15-62 [2] Opt. ord. no.: Slot C0 0x89 Private object 15-60 [3] Option: Slot C1 0x8A Private object 15-61 [3] Option SW: Slot C1 0x8B Private object 15-62 [3] Opt. ord. no.: Slot C1 0x8C Private object 15-45 Option: Slot D 0x8D Private object
  • 25. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 25 Drives Division Coils (single bit) Coil number Description Signal direction 1 – 16 Frequency converter control word Master -> slave 17 – 32 Frequency converter speed or set-point reference Range 0x0 – 0xFFFF (-200% ... ~200%) Master -> slave 33 – 48 Frequency converter status word Slave -> master 49 – 64 Open loop mode: Frequency converter output frequency Closed loop mode: Frequency converter feedback signal Slave -> master 65 Parameter write control Master -> slave 0 = Parameter changes are written to the RAM of the frequency converter 1 = Parameter changes are written to the RAM and EEPROM of the frequency converter. 66 - 65536 Reserved
  • 26. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 26 Drives Division Holding registers (words) Register number Description 00001 – 00006 Reserved 00007 Last error code from an FC data object interface 00008 Reserved 00009 Parameter index* 00010 – 00999 000 parameter group (parameters 001 through 099) 01000 – 01999 100 parameter group (parameters 100 through 199) 02000 – 02999 200 parameter group (parameters 200 through 299) 03000 – 03999 300 parameter group (parameters 300 through 399) 04000 – 04999 400 parameter group (parameters 400 through 499) … … 49000 – 49999 4900 parameter group (parameters 4900 through 4999) 50000 Input data: Frequency converter control word register (CTW). 50010 Input data: Bus reference register (REF). … … 50200 Output data: Frequency converter status word register (STW). 50210 Output data: Frequency converter main actual value register (MAV).
  • 27. MMooddbbuuss RRTTUU ffoorr FFCC 110000 • HHoollddiinngg rreegg.. 0000001100,, aaddddrreesssseedd aass:: 4400001100 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 27 Drives Division Holding registers (words), addressing • HHoollddiinngg rreeggiisstteerr 0000000011 iiss aaddddrreesssseedd aass rreeggiisstteerr 4400000011 iinn tthhee ddaattaa aaddddrreessss ffiieelldd ooff tthhee mmeessssaaggee.. • TThhee ffuunnccttiioonn ccooddee ffiieelldd aallrreeaaddyy ssppeecciiffiieess aa ‘‘hhoollddiinngg rreeggiisstteerr’’ ooppeerraattiioonn.. TThheerreeffoorree,, tthhee ‘‘44XXXXXXXX’’ rreeffeerreennccee iiss iimmpplliicciitt.. EExxaammppllee:: PPaarr 00--0011 LLaanngguuaaggee:: EExxaammppllee:: PPaarr 2200--2211 FFeeeeddbbaacckk:: ((NNBB:: 3322 bbiitt)) • HHoollddiinngg rreegg.. 002200221100,, aaddddrreesssseedd aass:: 442200221100 ((hhiigghh wwoorrdd)) • HHoollddiinngg rreegg.. 002200221111,, aaddddrreesssseedd aass:: 442200221111 ((llooww wwoorrdd))
  • 28. MMooddbbuuss RRTTUU ffoorr FFCC 110000 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 28 Drives Division FC 100 Frequency Converter Set-up TToo eennaabbllee MMooddbbuuss RRTTUU oonn tthhee FFCC 110000,, sseett tthhee ffoolllloowwiinngg ppaarraammeetteerrss:: Parameter no. Parameter name Setting 8-30 Protocol Modbus RTU 8-31 Address 1 – 247 8-32 Baud rate 2400 - 115200 8-33 Parity / Stop bits Even parity, 1 stop bit (default)
  • 29. MMooddbbuuss RRTTUU ffoorr FFCC 110000 D1 D0 Common 5 V 650 W 650 W 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 29 Drives Division RS-485 physics Master Slave 1 Slave 2 120 W 1 nF 120 W 1 nF MMaaxxiimmuumm lleennggtthh ooff bbuuss 11000000 mm aatt 1199220000 bbppss MMaaxxiimmuumm nnuummbbeerr ooff ssttaattiioonnss ((wwiitthhoouutt rreeppeeaatteerr)) 3322 ((3311 ssllaavveess)) MMaaxxiimmuumm lleennggtthh ooff ttaapp lliinnkkss 2200 mm ffoorr oonnee ttaapp lliinnkk 4400 mm ddiivviiddeedd bbyy tthhee nnuummbbeerr ooff ttaapp lliinnkkss BBuuss ppoollaarriissaattiioonn 665500 W aatt 55VV aanndd ccoommmmoonn ffoorr tthhee mmaasstteerr LLiinnee tteerrmmiinnaattoorr 112200 W -- 00,,2255WWmm iinn sseerriieess wwiitthh 11nnFF 1100VV CCoommmmoonn ppoollaarriittyy YYeess ((CCoommmmoonn)) ccoonnnneecctteedd ttoo tthhee PPGG
  • 30. MMooddbbuuss TTCCPP 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 30 Drives Division MCA 122 • MMooddbbuuss TTCCPP iiss tthhee oollddeesstt IInndduussttrriiaall EEtthheerrnneett PPrroottooccooll •WWaass iinnttrroodduucceedd bbyy MMooddiiccoonn bbaacckk iinn 11999999.. • TThhee PPrroottooccooll iiss wwiiddeellyy uusseedd iinnssiiddee:: • WWaatteerr//WWaasstteewwaatteerr aanndd iinnssiiddee ccoommppaanniieess ssttaannddaarrddiizziinngg tthheeiirr PPLLCC ssyysstteemm oonn MMooddiiccoonn//GGrroouupp SScchhnneeiiddeerr PPLLCC’’ss
  • 31. MMooddbbuuss TTCCPP 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 31 Drives Division MCA 122 • MMooddbbuuss RRTTUU ttoo MMooddbbuuss TTCCPP •EEaassyy ccoonnnneeccttiioonn ttoo GGrroouupp SScchhnneeiiddeerr PPLLCC’’ss aanndd lleeaaddiinngg SSCCAADDAA ssyysstteemmss • HHiigghh ppeerrffoorrmmaannccee ooppttiioonn,, ccaappaabbllee ooff eexxeeccuuttee ccoommmmaannddss iinn 55mmSSeecc rraattee • TTwwoo EEtthheerrnneett ppoorrttss wwiitthh bbuuiilldd iinn sswwiittcchh,, eennaabblliinngg lliinnee ssttrruuccttuurree.. • NNoo nneeeedd ffoorr eexxppeennssiivvee sswwiittcchheess,, dduuee ttoo tthhee bbuuiilldd iinn sswwiittcchh,, • BBuuiilldd iinn wweebb sseerrvveerr,, ffoorr eeaassyy ssttaattuuss ffrroomm rreemmoottee PPCC • EE--mmaaiill nnoottiiffyy,, tthhaatt ccaann sseenndd EE--mmaaiill iiff WWaarrnniinngg//aallaarrmm ooccccuurrss • RReeggiisstteerr mmaappppiinngg eeqquuaall ttoo MMooddbbuuss RRTTUU,, wwhhiicchh aalllloowwss aa eeaassyy uuppggrraaddee ffrroomm •HHiigghh ssppeeeedd aacccceessss ffrroomm MMCCTT--1100 SSeettuupp SSooffttwwaarree vviiaa EEtthheerrnneett
  • 32. MMooddbbuuss RRTTUU//TTCCPP 1 byte 1 byte 2 bytes 2 bytes 2 bytes 1 byte 1 byte 2 bytes 2 bytes 1 byte 2 bytes 2 bytes 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 32 Drives Division Read/write block of data (Process data) FFuunnccttiioonn ccooddee == 0033hheexx :: RReeaadd HHoollddiinngg RReeggiisstteerrss...... Slave Function First word Number of Address code=0x03 address words to read CRC16 RReeqquueesstt :: FFuunnccttiioonn ccooddee == 1100hheexx :: WWrriittee MMuullttiippllee RReeggiisstteerrss RReeqquueesstt :: Slave Function First word Number of Number of Value of the Address code=0x10 address words to write bytes first word CRC16 TThhiiss iiss oonnllyy ppoossssiibbllee wwiitthh ccoonnsseeccuuttiivvee rreeggiisstteerrss ((nnoo ““hhoolleess”” iinn tthhee rraannggee))
  • 33. MMooddbbuuss RRTTUU//TTCCPP 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 33 Drives Division Read/write block of data (Process data) • SSiinnccee ppaarraammeetteerrss aarree oorrggaanniizzeedd iinn rreeggiisstteerrss wwiitthh jjuummppss ooff 1100,, iitt iiss nnoott ppoossssiibbllee ttoo mmaakkee bblloocckk--rreeaadd//wwrriittee.. Register # Data 10 Par. 0-01 11 … 12 … 13 … 14 … 15 … 16 … 17 … 18 … 19 20 Par. 0-02 21
  • 34. MMooddbbuuss RRTTUU//TTCCPP 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 34 Drives Division Read/write block of data (Process data) • TToo eennaabbllee bblloocckk--rreeaadd//wwrriittee,, aa bblloocckk ooff pprroocceessss--ddaattaa hhaass bbeeeenn ddeeffiinneedd.. • PPaarr.. 228811 aanndd 229911 iiss nnoott uusseedd.. • BBlloocckk iiss bbeellooww rreegg.. ##1100,,000000 wwhhiicchh iiss aacccceessssiibbllee ffoorr aallll PPLLCC’’ss • CCaann aallssoo bbee uusseedd ffoorr ddoowwnn--mmaappppiinngg ooff ppaarraammeetteerrss…… • AAvvaaiillaabbllee oonn MMooddbbuuss TTCCPP • WWiillll aallssoo bbee aavvaaiillaabbllee oonn MMooddbbuuss RRTTUU RReeggiisstteerr ## DDaattaa MMooddbbuuss TTCCPP MMooddbbuuss RRTTUU MMaappppiinngg ppaarraammeetteerr WRITE 2810 CTW 12-21[0] 8-43[0] 2811 REF 12-21[1] 8-43[1] 2812 PCD 3 12-21[2] 8-43[2] 2813 PCD 4 12-21[3] 8-43[3] 2814 PCD 5 12-21[4] 8-43[4] 2815 PCD 6 12-21[5] 8-43[5] 2816 PCD 7 12-21[6] 8-43[6] 2817 PCD 8 12-21[7] 8-43[7] 2818 PCD 9 12-21[8] 8-43[8] 2719 PCD 10 12-21[9] 8-43[9] … … … READ 2910 STW 21-22[0] 8-44[0] 2911 MAV 21-22[1] 8-44[1] 2912 PCD 3 21-22[2] 8-44[2] 2913 PCD 4 21-22[3] 8-44[3] 2914 PCD 5 21-22[4] 8-44[4] 2915 PCD 6 21-22[5] 8-44[5] 2916 PCD 7 21-22[6] 8-44[6] 2917 PCD 8 21-22[7] 8-44[7] 2918 PCD 9 21-22[8] 8-44[8] 2919 PCD 10 21-22[9] 8-44[9]
  • 35. MMooddbbuuss RRTTUU//TTCCPP 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 35 Drives Division Read/write block of data (Process data) ......
  • 36. MMooddbbuuss 2009-June-22 Flemming Huusmann DD-SMPM Confidential / Property of Danfoss Drives A/S 36 Drives Division Want to know more? VVLLTT® FFCC 110000 LLoonnWWoorrkkss:: MMGG..1111..EE11..0022 wwwwww..mmooddbbuuss..oorrgg