Prometer 100 DLMS Communication Protocol
Prometer 100 DLMS Communication Protocol
Protocol
Document number: IPD000294
Issue: A
27 Apr 2015
Contents
1. Introduction ........................................................................................................................................................... 3
1.1 Baud rate changeover ....................................................................................................................................... 3
2. Terminology ........................................................................................................................................................... 3
3. References............................................................................................................................................................... 3
4. System Architecture .............................................................................................................................................. 3
5. Metering HDLC protocol using protocol Mode E for direct local data exchange ........................................... 4
5.1 Communication mode ...................................................................................................................................... 4
5.2 Connecting ....................................................................................................................................................... 4
6. Metering HDLC / IPv4 protocol (DLMS / COSEM) .......................................................................................... 4
6.1 General ............................................................................................................................................................. 4
6.2 DLMS Services ................................................................................................................................................ 4
6.3 Security ............................................................................................................................................................ 4
6.4 Supported objects ............................................................................................................................................. 5
6.4.1 IEC local port setup (HDLC Mode E) ..................................................................................................... 5
6.4.2 IEC HDLC Setup ..................................................................................................................................... 5
6.4.3 Ethernet (TCP, IPv4, MAC address) Setup ............................................................................................. 5
6.4.4 Abstract objects (GET Services) ............................................................................................................. 6
6.4.5 Electricity objects (GET Services) .......................................................................................................... 6
6.4.5.1 Supported data objects (Individual parameters) .............................................................................. 6
6.4.6 Profiles (GET Services) ......................................................................................................................... 10
6.4.6.1 Instant values ................................................................................................................................ 11
6.4.6.1.1 Instantaneous profile (Block 1) ............................................................................................ 11
6.4.6.1.2 Instantaneous Profile (Block 2 - Powers) ............................................................................. 12
6.4.6.1.3 Instantaneous Profile (Block 3 - Cumulative Energy) .......................................................... 12
6.4.6.1.4 Instantaneous Profile (Block 4 - Maximum Demand) .......................................................... 13
6.4.6.1.5 Instantaneous Profile (Block 5 - Miscellaneous line parameters) ........................................ 13
6.4.6.1.6 Instantaneous Profile (Block 6 - Scaling Parameters) .......................................................... 14
6.4.6.1.7 Instantaneous Profile (Block 7 - General Parameters).......................................................... 14
6.4.6.1.8 Instantaneous Profile (Block 8 - Previous Logger IP) .......................................................... 15
6.4.6.2 Harmonics and THD ..................................................................................................................... 15
6.4.6.2.1 Voltage Harmonics Profile ................................................................................................... 15
6.4.6.2.2 Current Harmonics Profile ................................................................................................... 16
6.4.6.3 General Data Profile ..................................................................................................................... 16
6.4.6.4 Billing ........................................................................................................................................... 16
6.4.6.4.1 Billing General Information Parameters............................................................................... 17
6.4.6.4.2 Billing Energy Parameters .................................................................................................... 17
6.4.6.4.3 Billing Rate Register Parameters.......................................................................................... 17
6.4.6.4.4 Billing Maximum Demand Register Parameters .................................................................. 18
6.4.6.4.5 Billing Cumulative Maximum Demand Register Parameters .............................................. 19
6.4.6.5 Load profiles (loggers) .................................................................................................................. 21
6.4.6.5.1 Logger clock and energy parameters .................................................................................... 21
Check the current issue before using this document.
Copyright 2015 CEWE instrument AB
Contains CONFIDENTIAL information.
1. Introduction
This document describes how to read data from the Prometer 100 using DLMS / COSEM. It’s not a guide for the
implementation of the server.
For DLMS / COSEM, this document describes the specifics for Prometer 100. For general information about the
protocol, refer to the standard documents (white, green and blue books from the DLMS User Association). The
implementation in Prometer 100 is based on Blue Book 10th edition and Green Book 7th edition.
DLMS / COSEM are supported on the optical (IEC1107), RS232, RS485 and Ethernet.
This document describes only meter reading, it is not intended for meter configuration. When configuring the meter,
other aspects have to be taken into consideration, not mentioned in this document.
2. Terminology
COSEM Companion Specification for Energy Metering
IP Integration Period
HOST A computer system to which data collected by BCS is returned for processing, and /or
which can collect data remotely from a meter or data concentrator.
3. References
Ref. Number Title
1 Green_Book_7th_edition DLMS/COSEM Architecture and Protocols
2 Blue_Book_10th_edition COSEM Identification System and Interface Classes
4. System Architecture
Prometer 100 have multiple ports, namely:
• a 1107/ANSI local optical port – DLMS MODE E sign on
• a RS-232 remote port, which can be connected to modem (3G, GPRS or GSM) – HDLC DLMS
• a RS-485 for daisy chaining– HDLC DLMS
• a TCP/IP port – TCP DLMS
5. Metering HDLC protocol using protocol Mode E for direct local data
exchange
5.2 Connecting
When connecting to the meter using mode E programming mode the meter serial number is used as the device address.
The meter answers with an identification message where the manufacturer’s identification is “CWI”.
Communication @ 300 baud rate, 7E1
Client (HHU) => /?!<CR><LF>
Server (Tariff Device) <= /XXXZ\W<CR><LF>
Client (HHU) => <ACK>2Z2<CR><LF>
Communication @ Z baud rate, 7E1
Server (Tariff Device) <= <ACK>2Z2<CR><LF>
Communication @Z baud rate, 8N1
Client (HHU) initiates communication in metering HDLC protocol.
Where,
<CR> = 0x0D, <LF> = 0x0A, <ACK> = 0x06, W = 2
Z = baud rate
XXX is Manufacturer’s FLAG Identification
6.1 General
Prometer 100 supports referencing of COSEM objects using logical (long) names over HDLC and Ethernet (TCP/IP).
Physical layer uses 1 start bit, 8 data bits, no parity and one stop bit for HDLC.
Supported baud rates for HDLC depend on the specific port and for Ethernet (TCP/IP) it depends on the network; see
Prometer 100 User Manual for details.
All three modes of HDLC addressing is supported (1, 2 or 4 byte). The normal restrictions apply for restricted addresses
according to the standard.
For HDLC the upper HDLC address (logical device address) is always 1 (Management Logical Device).
For TCP/IP the WPORT is always 0 (Management Logical Device).
To configure the lower HDLC device address (when using 2-byte or 4-byte addressing) for a meter, connect using ‘M-
Cubed 100’ and select the Communication section. The device address is available for configuration as ‘physical
address’ for all the communication ports (accept optical, for which device address is not required).
0x20 LLS (password corresponding to Password based sign-on where the client authenticates itself to the
meter access level 2). meter using a password.
Read all data for utility
0x30 HLS (AES Keys corresponding HLS mechanism defines a 4-pass sign-on scheme where the client and
to meter access level 3). server exchange challenges (a random number or code) and then reply to
the challenges with a processed response. The processing performed on
the challenges is an encryption using a secret “key”.
Level 2 access, Date & time correction, MD reset
0x40 HLS (AES Keys corresponding HLS mechanism defines a 4-pass sign-on scheme where the client and
to meter access level 4). server exchange challenges (a random number or code) and then reply to
the challenges with a processed response. The processing performed on
the challenges is an encryption using a secret “key”.
Level 2 access, Change CT-VT ratio, Linear transformer correction,
Display parameter change, Change AES Key level1, level2 & level3
0x50 HLS (AES Keys corresponding HLS mechanism defines a 4-pass sign-on scheme where the client and
to meter access level 5). server exchange challenges (a random number or code) and then reply to
the challenges with a processed response. The processing performed on
the challenges is an encryption using a secret “key”.
Level 3 access, Non-linear transformer correction, Calibration, Change
AES Key level3, & level4
Table 6-1
Table 6-2
6.4.2 IEC HDLC Setup
Sr. No. Obis code Object Interface class
1. 0.0.22.0.0.255 IEC HDLC setup, serial channel IEC HDLC setup
Table 6-3
6.4.3 Ethernet (TCP, IPv4, MAC address) Setup
Sr. No. Obis code Object Interface class
1. 0.0.25.0.0.255 TCP / UDP setup TCP-UDP setup
Table 6-4
Table 6-5
†
The script 0.0.10.1.255 is ‘hidden’, i.e. the attribute 2 cannot be read.
62. 1.0.1.6.0.255 Active Import Total (Q1+Q4) Maximum Demand Extended Register
63. 1.0.2.6.0.255 Active Export Total (Q2+Q3) Maximum Demand Extended Register
64. 1.0.129.6.0.255 Active Import Fundamental (Q1+Q4) Maximum Demand Extended Register
65. 1.0.130.6.0.255 Active Export Fundamental (Q2+Q3) Maximum Demand Extended Register
66. 1.0.5.6.0.255 Reactive Q1 Maximum Demand Extended Register
70. 1.0.9.6.0.255 Apparent While Active Import (Q1+Q4) Maximum Demand Extended Register
71. 1.0.10.6.0.255 Apparent While Active Export (Q2+Q3) Maximum Demand Extended Register
72. 1.0.3.6.0.255 Reactive Import (Q1+Q2) Maximum Demand Extended Register
Table 6-6
Table 6-7
6.4.6.1 Instant values
The Instantaneous parameters shall be continuously updated by the meter as per internal sampling and computation
time. The energy values in the table shall be cumulative readings from the date of manufacturing. These shall be
continuously updated and last updated value shall be available for downloading as and when required. Each of the
parameters shall be readable at any instant by the HOST from remote. The snap shot of all the instantaneous values of
all parameters shall be readable by the HOST computer.
Instant values have A = 1, B = 0, F = 255, and unless otherwise specified, D = 7. Instant values are implemented using
the DLMS interface class Data and Register.
Table 6-9
6.4.6.1.3 Instantaneous Profile (Block 3 - Cumulative Energy)
The supported objects are, as described in the following table:
Table 6-10
6.4.6.1.4 Instantaneous Profile (Block 4 - Maximum Demand)
The supported objects are, as described in the following table:
Table 6-11
6.4.6.1.5 Instantaneous Profile (Block 5 - Miscellaneous line parameters)
The supported objects are, as described in the following table:
Table 6-12
6.4.6.1.6 Instantaneous Profile (Block 6 - Scaling Parameters)
The supported objects are, as described in the following table:
Table 6-13
6.4.6.1.7 Instantaneous Profile (Block 7 - General Parameters)
The supported objects are, as described in the following table:
Table 6-14
6.4.6.1.8 Instantaneous Profile (Block 8 - Previous Logger IP)
The supported objects are, as described in the following table:
Table 6-15
6.4.6.2 Harmonics and THD
Harmonics and THD are available for voltages and currents supported on the meter. E = 0 gives the total. E = 1 is the
fundamental, E = 2 is 2nd harmonics, etc up to E = 31.
E = 124 gives the THD.
Table 6-17
†E = 1 to 31
Table 6-18
6.4.6.4 Billing
These are parameters identified for accounting / billing purposes. These shall be generated by the meter for each billing
cycle and stored in the memory. The set of data for last 15 cycles shall be stored in the memory. At the end of each
cycle corresponding set of data shall be readable by the HOST from remote.
Energy objects are available as total (E = 0) and depending on meter configuration as eight different rate registers (E
from 1 to 8). The configuration for what energy objects are available as rate registers is set in the Time of Use node, the
TOU tab, in M-Cubed 100 (ConfigView).
Energy objects can also be retrieved for the current billing period (F = 255) or for one of 15 historical periods (F from
101 to 115). F=101 identifies the most recent billing period.
All energy objects are implemented using the DLMS interface class data, Register and extended register.
Energy objects always as A = 1 and B = 0, E and F as described above. Normal energy registers have D = 8, while
maximum demand has D = 6. C should have a value according to the following table:
Table 6-19
6.4.6.4.2 Billing Energy Parameters
Sr. No. OBIS Code Parameter Interface Class
1. 1.0.1.8.0.255 Active Import Total (Q1+Q4) Energy Register
Table 6-20
Table 6-21
†
Note: E = 1 To 8
10. 1.0.10.6.0.255 Apparent While Active Export (Q2+Q3) Universal Maximum Extended
Demand Register
24. 1.0.10.6.E.255 Apparent While Active Export (Q2+Q3) Maximum Demand Extended
Register
25. 1.0.3.6.E.255 Reactive Import (Q1+Q2) Maximum Demand Extended
Register
26. 1.0.4.6.E.255 Reactive Export (Q3+Q4) Maximum Demand Extended
Register
27. 1.0.141.6.E.255 Reactive Inductive (Q1+Q3) Maximum Demand Extended
Register
28. 1.0.142.6.E.255 Reactive Capacitive (Q2+Q4) Maximum Demand Extended
Register
Table 6-22
†
Note: E = 1 To 8
10. 1.0.10.2.0.255 Apparent While Active Export (Q2+Q3) Universal Cumulative Extended
Maximum Demand Register
16. 1.0.2.2.E.255 Active Export Total (Q2+Q3) Cumulative Maximum Demand Extended
Register
17. 1.0.129.2.E.255 Active Import Fundamental (Q1+Q4) Cumulative Maximum Extended
Demand Register
18. 1.0.130.2.E.255 Active Export Fundamental (Q2+Q3) Cumulative Maximum Extended
Demand Register
19. 1.0.5.2.E.255 Reactive Q1 Cumulative Maximum Demand Extended
Register
20. 1.0.6.2.E.255 Reactive Q2 Cumulative Maximum Demand Extended
Register
21. 1.0.7.2.E.255 Reactive Q3 Cumulative Maximum Demand Extended
Register
22. 1.0.8.2.E.255 Reactive Q4 Cumulative Maximum Demand Extended
Register
23. 1.0.9.2.E.255 Apparent While Active Import (Q1+Q4) Cumulative Maximum Extended
Demand Register
24. 1.0.10.2.E.255 Apparent While Active Export (Q2+Q3) Cumulative Maximum Extended
Demand Register
Table 6-23
†
Note: E = 1 To 8
Table 6-24
Table 6-25
Table 6-26
Status Flag bit interpretation (If bit value is 1 than condition is true)
4 Disturbed (Interval incomplete due to power off, time set, logger reset)
5 Alarm (User defined alarm 1 or 2 has been triggered)
7 CT reversal
8 DST (Daylight saving time has been in effect)
12 Low Voltage (One or more measuring voltage is below low voltage threshold)
Table 6-27
6.4.6.5.4 Logger external registers
Prometer 100 supports 4 external registers.
Table 6-28
Table 6-29
3. PT Miss Occurrence – L2 3
4. PT Miss Restoration – L2 4
5. PT Miss Occurrence – L3 5
6. PT Miss Restoration – L3 6
Table 6-30
2. CT Reverse Restoration – L1 52
3. CT Reverse Occurrence – L2 53
4. CT Reverse Restoration – L2 54
5. CT Reverse Occurrence – L3 55
6. CT Reverse Restoration – L3 56
7. CT Open Occurrence – L1 57
8. CT Open Restoration – L1 58
9. CT Open Occurrence – L2 59
10. CT Open Restoration – L2 60
Table 6-31
Table 6-32
Table 6-33
Table 6-34
Table 6-35
Table 6-36
Table 6-38
Table 6-39
Table 6-40
Table 6-41
Table 6-42
Table 6-43
Table 6-44
For event log 3, 7 and 9 parameters captured are listed in below Table 6-45
Table 6-45
For event log 1, 2, 4, 5, 6 and 8 parameters captured are listed in below Table 6-46
Table 6-46
For event log 10 parameters captured are listed in below Table 6-47
10. 1.0.72.7.E.255† 3rd, 5th, 7th and 9th voltage harmonics – L3 Register
Table 6-47
†
E = 3, 5, 7 and 9
For event log 11 parameters captured are listed in below Table 6-48
Table 6-48
†
E = 3, 5, 7 and 9
Table 6-49
For power quality event log 2 parameters captured are listed in below Table 6-50
Sr. No. OBIS Code Parameter Interface Class
1. 0.0.1.0.0.255 Data logging Time and Date Clock
Table 6-50
For power quality event log 3 parameters captured are listed in below Table 6-51
Sr. No. OBIS Code Parameter Interface Class
1. 0.0.1.0.0.255 Data logging Time and Date Clock
Table 6-51
For power quality event log 4 parameters captured are listed in below Table 6-52
Sr. No. OBIS Code Parameter Interface Class
1. 0.0.1.0.0.255 Data logging Time and Date Clock
Table 6-52
Table 6-53