Modbus Interface DM5 05-14
Modbus Interface DM5 05-14
Content
1
Coding .......................................................................................................................................................... 2
1.2
Connections ................................................................................................................................................. 2
1.3
Topology ....................................................................................................................................................... 2
1.4
Mapping ............................................................................................................................................................. 5
3.1
3.2
3.3
4.2
4.3
4.4
Measurements ................................................................................................................................................. 10
5.1
5.2
5.3
5.4
General ....................................................................................................................................................... 12
6.2
6.3
6.4
The basics of the MODBUS communication are summarized in the document "Modbus Basics. PDF"
(see documentation CD or on our website http://www.camillebauer.com)
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
1 / 15
Author:
W 172 445
04.06.13 RR
EI A-RS-485 Standard
The EIA-RS 485 standard defines the physical layer of the Modbus interface.
1.1 Coding
The data will be transferred serially via the 2-wire bus. The information is coded in NRZ code as a differential signal. The
positive polarity signals a logical 1, the negative polarity signals a logical 0.
1.2 Connections
We recommend using a shielded and twisted two-wire bus cable. Shielding improves the electromagnetic compatibility (EMC).
The notation of the wires A resp. B are contradictory depending on the information source.
The potential difference of all bus members must not exceed 7V. Therefore the use of a shield or of a third wire (ref line) for
potential equalization is recommended.
1.3 Topology
On both ends of the bus cable a termination resistor must be provided. In addition to the bus termination resistors a resistor RU
(Pull-up) must be connected to the supply voltage and a resistor RD (Pull down) to the reference potential. By means of these
two resistors a defined idle state of the line is ensured if no bus member is sending data.
: twisted 2-wire line, characteristic impedance 100 up to 130 , min. 0.22mm (24AWG)
: maximum of 1200m, depending on the transfer rate
: maximum of 32 per segment
: 2'400, 4'800, 9'600, 19'200, 38400, 57'600, 115'200 Baud
: 11 Bit format - 2 stop bits, no parity or 1 stop bit with odd/even parity
10 Bit format - 1 stop bit, no parity (possible, but not in accordance with Modbus standard)
2
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
2 / 15
Author:
W 172 445
04.06.13 RR
Addressing
Modbus groups different data types as references. The telegram functions 03H (Read Holding Register) and 10H
(Preset Multiple Registers) e.g. use register addresses starting at 40001. The reference 4xxxx is implicit, i.e. is
given by the used telegram function. Therefore for addressing the leading 4 is omitted. Another specialty in
Modbus telegrams: The register numeration starts at 1, but the addressing starts at 0.
Example: Measurement U1N on register address 40102
Address declaration (see chapter 5.1): 40102
Real address: 102 (offset 1)
Address used in telegram: 101 (offset 0)
Serializing
The Modbus specification defines the telegrams to be sequences of data bytes. For the correct serializing of the
bytes (MSB or LSB First), the appropriate physical layer (RS485, Ethernet) is responsible. The RS485 (UART,
COM) transmits the Least Significant Bit first (LSB First) and adds the synchronization and parity bits (start bit,
parity bit and stop bit).
Start
Par
Stop
Request
Slave address
Function code
Start address
12 = Coil 13
0x11
0x01
0x00
0x0C
0x00
0x02
crc_l
crc_h
Number of registers:
13..14 = 2
Checksum
CRC16
Answer
Slave address
Function code
Byte count
Byte 1
Checksum
CRC16
0x11
0x01
0x01
0x02
crc_l
crc_h
The start address of the request plus the bit position in the answer byte 1 corresponds to the coil address. Started bytes
are filled with zeros.
Byte 1
Hex
0x02
Binary
00000010b
Coil 14
ON
Coil 13
OFF
Request
Slave address
Function code
Start address
(34-1)
Number of registers:
3
Checksum
CRC16
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
0x11
0x03
0x00
0x21
0x00
0x03
crc_l
crc_h
Answer
Slave address
Function code
Byte count
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Checksum
CRC16
0x11
0x03
0x06
0x4D
0x44
0x53
0x35
0x00
0x00
crc_l
crc_h
M
D
S
5
0
0
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
3 / 15
Author:
W 172 445
04.06.13 RR
Request
Slave address
Function code
Start address:
(282-1)
Answer
Slave address
Function code
Byte Count
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
Byte 8
Checksum
CRC16
0x11
0x03
0x01
0x19
0x00
0x04
crc_l
crc_h
Number of registers:
4
Checksum
CRC16
Me t e r 1 : 0 x0 0 3 2 0 0 0 6 = 3 2 7 6 8 0 6
Me t e r 2 : 0 x0 0 2 5 0 4 1 2 = 2 4 2 5 8 7 4
0x11
0x03
0x08
0x00
0x06
0x00
0x32
0x04
0x12
0x00
0x25
crc_l
crc_h
The assignment of the unit and the position of the decimal point to the meters are done using static scaling factors. For
more details see Energy meters.
24 23
16 15
V E E E E E E E E M M M M M M M M M M M M M M M M M M M M M M M
exponent
sign
mantissa
Request
Slave address
Function code
Start address
(102-1)
Number of registers:
2
Checksum
CRC16
Answer
Slave address
Function code
Byte Count
Byte 1
Byte 2
Byte 3
Byte 4
Checksum
CRC16
0x11
0x03
0x00
0x65
0x00
0x02
crc_l
crc_h
0x11
0x03
0x04
0xE8
0x78
0x43
0x6B
crc_l
crc_h
0x 4 36 B
0
Exponent: 134-127=7
0x E 8 78
1
Mantissa=1. 1 1 0 1 0 1 1 1 1 0 1 0 0 0 0 1 1 1 1 0 0 0 b = 1 , 8 4 3 0 3 1 8 8 3 2 3 9 7 4 6 0 9 3 7 5 d
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
4 / 15
Author:
W 172 445
04.06.13 RR
Mapping
Access
Address range
Function code
Coil
readable / writable
00001 09999
0x01
0x05
0x0F
Discrete input
read only
10001 19999
0x02
Input register
read only
30001 39999
0x04
40001 49999
0x03
0x06
0x10
1)
1)
1) not implemented
To reduce the number of commands the device image has been mapped using Holding register if possible.
Quantities normally addressed as a single bit information are implemented as Coil or Discrete input.
# Reg.
Description
Access
40001 40033
33
Device information
40034 40073
40
40100 40203
40
40210 40217
RW
40250 40345
96
RW
40346 40346
Tariff of meters
RW
40700 40819
120
44000 44017
18
RW
44020 44099
80
RW
44100 44103
Parameters of Modbus
RW
44400 44432
33
RW
44440 44469
30
RW
45000 45047
48
Parameters of meters
RW
45301 45302
Simulation mode
RW
48300 48309
10
Service functions
RW
48310 48311
Factory reset
RW
13
14
Status of LEDs
13
14
513 516
1000 1031
R
RW
R
R
RW
Reset of meters
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
5 / 15
Author:
W 172 445
04.06.13 RR
Time
Reset coil
Name
Type
Default
Description
14 2L 3G 3U 3A 4U 4O
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
6 / 15
Author:
W 172 445
04.06.13 RR
Device information
Name
Type
HW_IO_INFO
UINT8
Description
Type of available I/O channels
Analog output 1
Analog output 2
Analog output 3
Analog output 4
Reserved
Reserved
Reserved
Reserved
7 6 5 4 3 2 1 0
0 : not used
1: analog output
2: analog input
3: digital input
4: digital output
5,6,7: reserved
Analog input/output
0: 0..1mA
1: 0..2mA
2: 0..5mA
3: 0..10mA
4: 0..20mA
5: 0..1V
6: 0..2V
7: 0..5V
8: 0..10V
analog: 1 = bipolar
digital: 1 = configurable as
Digital input/output
input or output
0: 24VDC
1: 48VDC
2: 24VAC
3: 48VAC
4: reserved
5: relay
Address
Name
Type
Description
40005
HW_OPTIONS
UINT32
Bit
0
1
2,3
4
5
615
Meaning
SINEAX DM5S
SINEAX DM5F
reserved
with display
with Modbus RS485
reserved
40006
HW_OPT_INP
UINT16
Bit
Hardware option
0
Input U1
1
Input U2
2
Input U3
3
Input I1
4
Input I2
5
Input I3
6,7
reserved
Bit 8..15
0
Frequency range 4565Hz
40007
NLB_NR
UINT16
40026
FW_MU
UINT32
Byte 3
Byte 2
Byte 1
Byte 0
V1.00. XXXX
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
7 / 15
Author:
W 172 445
04.06.13 RR
Function
ADDR
0x11
CRC
Low-Byte
High-Byte
Device answer:
Device address
Function
#Bytes
Device ID
ADDR
0x11
<sid>
Data1
Data2
CRC
Low-Byte
High-Byte
0x01
0x00
VR660
Temperature controller
0x02
0x00
A200R
0x03
0x01
CAM
0x04
0x00
0x05
0x00
V604s
0x05
0x01
0x05
0x02
0x05
0x03
0x07
0x00
VS30
Temperature transmitter
0x08
0x00
DM5S
Multi-transducer DM5S
0x08
0x01
DM5F
Multi-transducer DM5F
Universal transmitter
40058
Name
DEV_DESC
DEV_TAG
Type
Default
Description
CHAR[48]
DM5S
resp.
DM5F
DM5S
resp.
DM5F
CHAR[32]
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
8 / 15
Author:
W 172 445
04.06.13 RR
44001
Name
INPUT_SYS
INPUT_CFG
Type
Default
UINT8
00h
reserved
010Ah
Settings
UINT16
Description
System configuration
Value Meaning
0x00
Single phase system
0x05
two phase system (split phase)
0x01
3-wire system, balanced load
0x11
3-wire system, balanced load, U=U12 (DM5S only)
0x21
3-wire system, balanced load, U=U23 (DM5S only)
0x31
3-wire system, balanced load, U=U31 (DM5S only)
0x13
3-wire system, unbalanced load
0x03
3-wire system, unbalanced load, Aron connection
0x02
4-wire system, balanced load
0x04
4-wire system, unbalanced load
0x14
4-wire system, unbalanced load, Open-Y connection
Bit Meaning
0, 1 Freq.measurement
via
0
0 Voltage
2
3
4
Sampling freq.
Rotation
Quadrant
adaptive
left-hand
L-C-L-C
ind-cap-ind-cap
1 Current
2 automatically
fix
right-hand
L-L-C-C
ind-ind-cap-cap
5
6
7
8
7
not used
Freq.measurement
Autoscale U
Autoscale I
DM5S: Autoscale U
DM5F: Autoscale U
DM5S: Autoscale I
DM5F: Autoscale U
filtered
Off
Off
Off
Off
Off
Off
fast
On
On
On
not possible
On
not possible
15
On
44002
MAIN_FREQ
REAL
44004
IN_VOLTAGE
REAL
(50 1E9)
IN_CURRENT
REAL
44006
44008
44010
50.0
Nominal frequency in Hz
The value must be in the range 4565Hz.
V
(50 832)
5.0
(0.1 200000)
5.0
(0.1 7.5)
(50 832)
(0.1 7.5)
44012
IN_VOLT_MAX
REAL
478.046
44014
IN_CURR_MAX
REAL
7.5
44016
EFF_MEAN_TP
UINT16
44017
IB_MEAN_TP
UINT16
Modifying parameters of the measurement input configuration may also impact the remaining
device programming, which is not described in this document.
By modifying the system configuration (INPUT_SYS) e.g. measured quantities used for analog outputs or the
Modbus image, may become invalid (no longer measurable). This way unexpected results may occur.
A modification of the transformer ratios (IN_VOLTAGE, IN_CURRENT) has no influence on measurement ranges
set for analog outputs. The values will not be changed proportionally. If you dont modify these values it may
happen, that e.g. analog outputs go to their boundaries.
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
9 / 15
Author:
W 172 445
04.06.13 RR
Measurements
Name
U
U1N
U2N
U3N
U12
U23
U31
UNE
I
I1
I2
I3
IN
P
P1
P2
P3
Q
Q1
Q2
Q3
S
S1
S2
S3
F
PF
PF1
PF2
PF3
QF
QF1
QF2
QF3
LF
14
2L
3G
3U
3A
4U
4O
40170
40172
40174
40176
40178
40180
40182
40184
40186
40188
40190
40192
40194
40196
40198
40200
40202
LF1
LF2
LF3
UM
IM
IMS
IB
IB1
IB2
IB3
BS
BS1
BS2
BS3
UF12
UF23
UF31
Type
REAL
REAL
REAL
REAL
REAL
REAL
REAL
REAL
REAL
REAL
REAL
REAL
REAL
Description
System voltage
Voltage phase L1 to N
Voltage phase L2 to N
Voltage phase L3 to N
Voltage phase L1 to L2
Voltage phase L2 to L3
Voltage phase L3 to L1
Zero displacement voltage in 4-wire systems
System current
Current in phase L1
Current in phase L2
Current in phase L3
Neutral current (calculated)
Active power system (P = P1 + P2 + P3)
Active power phase 1 (L1 N)
Active power phase 2 (L2 N)
Active power phase 3 (L3 N)
Reactive power system (Q = Q1 + Q2 + Q3)
Reactive power phase 1 (L1 N)
Reactive power phase 2 (L2 N)
Reactive power phase 3 (L3 N)
Apparent power system S
Apparent power phase 1 (L1 N)
Apparent power phase 2 (L2 N)
Apparent power phase 3 (L3 N)
System frequency
PF = P / S, Power factor system PF
Power factor phase 1 (L1 N)
Power factor phase 2 (L2 N)
Power factor phase 3 (L3 N)
QF = Q / S, Reactive power factor system
Reactive power factor phase 1 (L1 N)
Reactive power factor phase 1 (L2 N)
Reactive power factor phase 1 (L3 N)
sign(Q)(1 abs(PF)), Load factor system
Load factor phase 1 (L1 N)
Load factor phase 2 (L2 N)
Load factor phase 3 (L3 N)
Average value of voltages
Average value of currents
Average value of currents with sign of P
Bimetal current in balanced load systems
Bimetal current in phase L 1
Bimetal current in phase L2
Bimetal current in phase L3
Slave pointer bimetal current in balanced load systems
Slave pointer bimetal current in phase L 1
Slave pointer bimetal current in phase L2
Slave pointer bimetal current in phase L3
Phase angle voltage U1-U2
Phase angle voltage U2-U3
Phase angle voltage U3-U1
The phase angles are used for wiring check only and will not be offered as fully calculated measurements to the user.
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
10 / 15 Author: 04.06.13 RR
W 172 445
Name
Type
Default
40210
AOUT1
REAL
0.0
Description
40212
AOUT2
0.0
40214
AOUT3
0.0
40216
AOUT4
0.0
Name
MOD_IMAGE
Type
Default
REAL[60]
0.0
Description
Measurements in Float format
Measured quantities as defined by the user
Name
Type
Description
13
LED_A
COIL
14
LED_B
COIL
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
11 / 15 Author: 04.06.13 RR
W 172 445
6.1 General
Meters are generally provided as 32-Bit integer numbers without sign, because only this way it's assured that no
th
resolution gets lost if the meter content increases. The values have a maximum of 9. In case of a carry to the 10
digit a reset of the meter content to zero is performed.
To convert the 9-digit numbers to the physical, primary side meter content they must be scaled. This is done using
a scaling factor per meter, which implies the position of the decimal point and the basic unit of the meter
quantity. If the configuration of the device is not modified this factor remains unchanged and therefore must be
read only once.
Physical meter value = Meter content * 10
[Wh or varh]
-2
Name
MET_EXP_1
MET_EXP_2
MET_EXP_3
MET_EXP_4
MET_EXP_5
MET_EXP_6
MET_EXP_7
MET_EXP_8
MET_EXP_9
MET_EXP_10
MET_EXP_11
MET_EXP_12
MET_EXP_13
MET_EXP_14
MET_EXP_15
MET_EXP_16
MET_EXP_17
MET_EXP_18
MET_EXP_19
MET_EXP_20
MET_EXP_21
MET_EXP_22
MET_EXP_23
MET_EXP_24
MET_EXP_25
MET_EXP_26
MET_EXP_27
MET_EXP_28
MET_EXP_29
MET_EXP_30
MET_EXP_31
MET_EXP_32
Type
Default
0
INT16
Description
Scaling factor meter 1
Scaling factor meter 2
Scaling factor meter 3
Scaling factor meter 4
Scaling factor meter 5
Scaling factor meter 6
Scaling factor meter 7
Scaling factor meter 8
Scaling factor meter 9
Scaling factor meter 10
Scaling factor meter 11
Scaling factor meter 12
Scaling factor meter 13
Scaling factor meter 14
Scaling factor meter 15
Scaling factor meter 16
Scaling factor meter 17
Scaling factor meter 18
Scaling factor meter 19
Scaling factor meter 20
Scaling factor meter 21
Scaling factor meter 22
Scaling factor meter 23
Scaling factor meter 24
Scaling factor meter 25
Scaling factor meter 26
Scaling factor meter 27
Scaling factor meter 28
Scaling factor meter 29
Scaling factor meter 30
Scaling factor meter 31
Scaling factor meter 32
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
(Range: -39)
Factor
-3
-2
-1
Resolution
1m
1.00
1.0
1.00 k
1.0 k
1k
1.00 M
1.0 M
1M
1.00 G
1.0 G
1G
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
12 / 15 Author: 04.06.13 RR
W 172 445
Reset
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
Name
METER_1
METER_2
METER_3
METER_4
METER_5
METER_6
METER_7
METER_8
METER_9
METER_10
METER_11
METER_12
METER_13
METER_14
METER_15
METER_16
METER_17
METER_18
METER_19
METER_20
METER_21
METER_22
METER_23
METER_24
METER_25
METER_26
METER_27
METER_28
METER_29
METER_30
METER_31
METER_32
Type
UINT32
Default
0
Description
Meter 1
Meter 2
Meter 3
Meter 4
Meter 5
Meter 6
Meter 7
Meter 8
Meter 9
Meter 10
Meter 11
Meter 12
Meter 13
Meter 14
Meter 15
Meter 16
Meter 17
Meter 18
Meter 19
Meter 20
Meter 21
Meter 22
Meter 23
Meter 24
Meter 25
Meter 26
Meter 27
Meter 28
Meter 29
Meter 30
Meter 31
Meter 32
By setting the reset coils 10001031 the associated meter content will be reset.
Name
40346
METER_TARIFF
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type
UINT16
Description
Tariff situation (readable and writable)
0: Uniform tariff
115: Tariff 1 up to 15
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
13 / 15 Author: 04.06.13 RR
W 172 445
Modbus interface
To assure that each device may be accessed, independent of the used hardware, the response time has
a factory setting of 100 ms. A faster response time may be set via the register COM_OPTIONS (or by
using the CB-Manager).
The response time is the delay a device waits until it sends an answer to a request. In accordance with the
Modbus standard this at least the time it takes to transmit 3.5 characters. This time allows the master (PC) to
perform the switching of the data direction (from send to receive), but also serves to recognize the beginning of a
new telegram.
Especially the switching of the data direction on master side depends on the used hardware (PC, RS485 interface
or interface converter). If the response time is selected too short the response of the device may not be
recognized. In this case the response time have to be prolonged. Take into account, that the telegram sent to
change the response time possibly is not acknowledged due to the insufficient response time previously set. The
new response time is set after the device has received the telegram.
Modbus settings
Address
Name
Type
Offset
Default
Description
44100
COM_ADDRESS
UINT8
0
1
1
0
44101
COM_BAUD
UINT32
19'200
44103
COM_OPTIONS
UINT16
0x0020
15 ...
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
parity
stop bits
00: None
01: Odd
10: Even
01: 1
10: 2
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
response time
0000: 100 ms
0111: 3.5 char
0110: 2*3.5 char
0101: 4*3.5 char
14 / 15 Author: 04.06.13 RR
W 172 445
Simulation mode
By means of the simulation analog outputs values may be predefined. This mode is suited especially to test
subsequent circuits during commissioning.
Once started the simulation mode can be stopped in two ways:
setting the register SIM_MOD to 0
switching off the power supply
Address
45301
Name
Type
Description
SIM_IO
UINT16
15 14 13 12 11 10 9 8
7 6 5 4 3 2 1 0
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
I/O 1
I/O 2
I/O 3
I/O 4
Res.
Res.
Res.
Res.
Name
Type
Description
41520
AOUT1
REAL
Analog output 1 in mA
41522
AOUT2
REAL
Analog output 2 in mA
41524
AOUT3
REAL
Analog output 3 in mA
41526
AOUT4
REAL
Analog output 4 in mA
Remote interface
All LEDs not used for the normal device functionality may be used for other purposes. Driving is performed via
the configuration interface, e.g. by means of a Modbus master software.
Address
Name
Type
Description
13
LED1
COIL
State LED A
14
LED2
COIL
State LED B
Modificat.
Date
Vis.:
2014-018
04.06.14 RR
Type:
SINEAX DM5
Page:
Description:
Modbus/RTU Interface
No.:
15 / 15 Author: 04.06.13 RR
W 172 445