M2M-DMTME Modbus Protocol 2.0
M2M-DMTME Modbus Protocol 2.0
Communication protocol
Technical specification V.2.0
2CSG445011D0201
ABB
2 of 13
1.1
1.2
1.3
M2M models where the serial interface is available are: M2M MODBUS, M2M ALARM,
M2M I/O. For simplicity, if not specified, all the models will be listed in the document with
M2M.
3 of 13
In the previous figure, if the M2M is the last instrument installed in the RS485
network, is possibile to avoid the terminal resistor connecting pin T with pin B.
2.1
FUNCTION CODE
8 bits
8 bits
DATA FIELD
N x 8 bits
ERROR CHECK
16 bit CRC
T1 T2 T3
4 of 13
5 of 13
x = crc ^ ucpBuf[i];
6 of 13
2.2
FUNCTION
CODE
START
No. OF
ERROR
ADDRESS REGISTERS CHECK
ADDRESS FIELD
FUNCTION CODE
1Fh
03h
START ADDRESS H =
10h
START ADDRESS L =
00h
No. OF REGS H
00h
No. OF REGS L
14h
CRC H
42h
CRC L
BBh
In the example above, the master sends the read function Func = 03h to the
slave with address Addr = 1Fh, starting from base register address Data Start
Register = 1000h for Data Regs = 14h consecutive registers. So the command
reads all registers from address 1000h a 1013h. The CRC = 42BBh closes the
data stream.
Reply (Slave)
ADDRESS
FIELD
FUNCTION
CODE
ADDRESS FIELD
FUNCTION CODE
03h
BYTE COUNT
28h
No. OF SEND
BYTES
D0, D1,
.., Dn
ERROR
CHECK
1Fh
10h
EFh
.
CRC H
Xxh
CRC L
Yyh
7 of 13
8 of 13
Word
Measurement description
Unit
Format
1000h
1002h
1004h
1006h
1008h
100Ah
100Ch
100Eh
1010h
1012h
1014h
1016h
1018h
101Ah
101Ch
101Eh
1020h
1022h
1024h
1026h
1028h
102Ah
102Ch
102Eh
1030h
1032h
1034h
1036h
1038h
103Ah
103Ch
103Eh
1040h
1046h
1060h
1062h
1064h
1066h
1068h
1070h
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
Volt
Volt
Volt
Volt
Volt
Volt
Volt
mA
mA
mA
mA
* 1000
* 1000
* 1000
* 1000
* 1000
* 1000
* 1000
* 1000
VA
VA
VA
VA
Watt
Watt
Watt
Watt
VAr
VAr
VAr
VAr
Wh * 100
VArh * 100
mHz
mA
mA
mA
Watt
VA
Watt
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Signed Long
Signed Long
Signed Long
Signed Long
Signed Long
Signed Long
Signed Long
Signed Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
(S)
Signed Long
(S)
Signed Long
(S)
Signed Long
(S)
Signed Long
(S)
Signed Long
(S)
Signed Long
(S)
Signed Long
(S)
Signed Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
(S)
Signed Long
Unsigned Long
(S)
Signed Long
II
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
VA
Wh * 100
Wh * 100
Wh * 100
VArh * 100
VArh * 100
VArh * 100
Watt
* 100
* 100
* 100
* 100
* 100
* 100
Watt
Watt
Watt
VA
VA
VA
VA
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
(S)
Signed Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
(S)
Signed Long
(S)
Signed Long
(S)
Signed Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
1072h
II
1074h
II
1076h
II
1078h
II
107Ah
II
107Ch
II
107Eh
II
1080h
II
1082h
II
1084h
II
1086h
II
1088h
II
108Ah
II
108Ch
II
108Eh
II
1090h
II
1092h
II
1094h
II
1096h
II
1098h
II
109Ah
9 of 13
109Ch
III
109Eh
III
10A0h
III
10A2h
II
10A4h
II
10A6h
II
10A8h
II
10AAh
II
10ACh
II
10AEh
II
10B0h
II
10B2h
II
10B4h
II
10B6h
II
10B8h
II
10BAh
II
10BCh
II
10BEh
II
10C0h
II
10C2h
II
10C4h
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
Watt
Var
Wh * 100
VArh * 100
mA
VAh * 100
VAh * 100
VAh * 100
VAh * 100
Wh * 100
Wh * 100
Wh * 100
Wh * 100
VArh * 100
VArh * 100
VArh * 100
VArh * 100
VAh * 100
VAh * 100
VAh * 100
VAh * 100
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
Unsigned Long
11A0h
11A2h
11A4h
When the power factor or cos is undefined (e.g. in case of no current) the
instrument places the value cos = 2 (value = 2000 on this registry) to
indicate unavailability of the measure
II
III
IV
For M2M instruments the maximum selectable value is 2000; the reading
register yelds the CT ratio programmed in the instrument. For example if in
the instrument the CT value is set as 100/5A, this register will yeld 20.
VI
For M2M instruments the maximum selectable value is 600; the reading
register yelds the VT ratio programmed in the instrument.
VII
1.
2.
3.
4.
Possible values:
each pulse weight 10 Wh/VArh
each pulse weight 100 Wh/VArh
each pulse weight 1000 Wh/VArh
each pulse weight 10000 Wh/VArh
10 of 13
2.3
FUNCTION
CODE 10h
START
ADDRESS
# OF REGs
No. OF SEND
BYTES
D0, D1,
.., Dn
ERROR
CHECK
Memory map
Address
Word
Measurement description
Min
Max
11A0h
11A2h
11A4h
1250 (DMTME)
VII
2000 (M2M)
VIII
500 (DMTME)
VIII
600 (M2M)
VI
4
VII
VII
For M2M instruments the maximum selectable value is 2000; the command
sets in the instrument simultaneously the value of CTs secondary current to
5A and the value of CTs primary current to CT*5A. For example to setting
CT=50 will result in CT = 250/5 in the M2M instrument configuration.
VIII
For M2M instruments the maximum selectable value is 600; the command
sets in the instrument simultaneously the value of VTs secondary voltage to
100V and the value of VTs primary voltage to VT*100V
Example:
ADDRESS
FIELD
FUNCTION
CODE
ADDRESS FIELD
FUNCTION CODE
10h
Reg H
11h
Reg L
A0h
# Reg H
00h
# Reg L
02h
BYTE COUNT
04h
Data 0 H
00h
Data 0 L
00h
No. OF SEND
BYTES
D0, D1,
.., Dn
ERROR
CHECK
1Fh
Data 1 H
00h
Data 1 L
64h
CRC H
58h
CRC L
44h
11 of 13
Word
Measurement description
MSB Word
LSB Word
11B0h
11B2h
11B4h
2
2
2
11B0h
11B2h
11B4h
55AAh
55AAh
55AAh
For the execution of the command the buffer must contain, as value, the two
words indicated on the table.
2.4
FUNCTION ERROR
CODE
CHECK
ADDRESS FIELD
FUNCTION CODE
02h
11h
CRC H
C0h
CRC L
DCh
In this example the id request is sent using Func = 11h to the slave with
address Addr = 02h; the CRC C0DCh ends the frame.
Reply (Slave)
ADDRESS
FIELD
FUNCTION
CODE
ADDRESS FIELD
FUNCTION CODE
11h
No. OF BYTES
04h
INSTRUMENT
TYPE
FW
release
ERROR
CHECK
02h
INST. TYPE
50h
FW REL H
00h
FW REL L
///
No. OF
BYTES
70h
00h
CRC H
FEh
CRC L
81h
The answer contains address and function, the number of data bytes Len =
04h, the analyser description Instrument type = 50h, the high byte of firmware
version Fw rel. H = 00h and the low byte of firmware version Fw rel. L = 70h.
In this case FW rel. = 0070h (112): this value must be divided by 100 (V1.12).
CRC FE81h ends the frame.
INSTRUMENT MODEL
DMTME I 485
M2M MODBUS
M2M ALARM
M2M I/O
INSTRUMENT TYPE
80 (50h)
57 (39h)
58 (3Ah)
59 (3Bh)
12 of 13
2.5
Description
01 ILLEGAL FUNCTION
Illegal address
13 of 13