Practice
Modelling an E-meter using IEC 62056 DLMS/COSEM
Monitorizacin y Control de Redes de Energa
M.U. Ingeniera Industrial
Smart metering project approach
Use cases and
functional descriptions
Logical view of the
system / meter provider
A
Functional view
of the user
(network operator,
retailer, end user)
B..
..
B..
..
A..
..
COSEM
interface
objects
Companion standard
object model
data security
communication profiles
Monitorizacin y Control de Redes de Energa
M.U. Ingeniera Industrial
Building a COSEM meter
Model the application
specify the functions required
map application data to COSEM objects
specify structure: logical devices, associations (object
list)
Specify associations: application context, DLMS
context, authentication mechanism, security
Choose communication profile, bind logical
devices
choose layer options, parameters
Monitorizacin y Control de Redes de Energa
M.U. Ingeniera Industrial
Step 1 - Modelling
Physical device
Mgmt. Logical Device
LDN
12345
Comm.
Comm.
Assn.
Assn.
Register
Clock
In case of short name referencing,
map to DLMS named variables.
Base name + offset.
Logical Device 1
Assn.
LDN
Register
Register
Register
Profile
1. logical name:1.1.1.8.0.255
2. Value:
3. Scaler_unit: { 3, 30}
Logical Device 2
LDN
Assn.
Register
Profile
Register
Profile
Register
Register
1. Reset
Li Active energy total
Register class
1. logical_name:1.1.32.7.0.255
2. Value:
3. Scaler_unit: { 0, 35}
L1 voltage
Register class
1. Reset
Anything
Interface class X
Monitorizacin y Control de Redes de Energa
0000
0008
0010
0018
0020
0028
0030
0038
1. logical_name:A.B.C.D.E.F
2. Attribute
3. Attribute
..
N
N+8
N + 16
1. Method 1
...
N+8m
M.U. Ingeniera Industrial
Step 2 - Finding the logical names
Value group C
Value group D
Electricity related objects (A = 1)
Electricity related objects A = 1, C <> 0, 96,97,98,99
Value group A
0
Abstract objects
Electricity related objects
Value group E
Electrical energy related objects (A = 1)
Billing period average (since last reset)
Cumulative minimum 1
Total
Cumulative maximum 1
Rate 1
L i Active power
Minimum 1
Rate 2
L i Reactive power+
Current average 1
L i Reactive power
Last average 1
Rate 3
L i Reactive power QI
Maximum 1
..
...
General purpose objects (see Error! Reference
source not found. )
L i Active power+
Heat cost allocator related objects
Cooling related objects
Heat related objects
L i Reactive power QII
Instantaneous value
Rate 9
Gas related objects
L i Reactive power QIII
Time integral 1
..
Time integral 2
Cold water related objects
L i Reactive power QIV
Time integral 3
63
Rate 63
L i Apparent power+
10
10
L i Apparent power
11
Cumulative minimum 2
11
Current: any phase
12
Cumulative maximum 2
128254
Manufacturer specific code
12
Voltage: any phase
13
Minimum 2
all other
Reserved
13
Average power factor
14
Current average 2
15
Last average 2
16
Maximum 2
Hot water related objects
All other possible values are reserved
Value group B
0
No channel specified
Channel 1
64
Channel 64
65127
Reserved
128 .. 254
Manufacturer specific codes
255
Reserved
Li Active energy total:
1.1.1.8.0.255
L1 Voltage:
1.1.32.7.0.255
All standard OBIS
codes are listed
14
Supply frequency
15
L I Active power QI+QIV+QII+QIII
16
L I Active power QI+QIV-QII-QIII
17
L i Active power QI
18
L i Active power QII
19
L i Active power QIII
20
L i Active power QIV
21
Cumulative minimum 3
22
Cumulative maximum 3
23
Minimum 3
24
Current average 3
25
Last average 3
Value group F
VZ +1
Future period
VZ
Period 1
VZ -1
Period 2
VZ -2
Period 3
VZ -3
Period 4
VZ -4
...
21
L 1 Active power+
22
L 1 Active power
26
Maximum 3
23
L 1 Reactive power+
24-30
L 1 etc. (see 4-10)
27
Current average 5
101
Most recent value
31
L 1 Current
28
Current average 6
102
Two most recent values
32
L 1 Voltage
29
Time integral 5
33
L 1 Power factor
30
Time integral 6
34
L 1 Frequency
35-40
L 1 Active power ... etc. (see 15-20)
31
Under limit threshold
32
Under limit occurrence counter
41
L 2 Active power+
33
Under limit duration
42
L 2 Active power
34
Under limit magnitude
43
L 2 Reactive power+
35
Over limit threshold
44-60
L 2 etc. (see 24-40)
36
Over limit occurrence counter
37
Over limit duration
61
L 3 Active power+
38
Over limit magnitude
62
L 3 Active power
39
Missing threshold
63
L 3 Reactive power+
40
Missing occurrence counter
64-80
L 3 etc. (see 24-40)
41
Missing duration
42
Missing magnitude
81
etc.
125
25 most recent values
126
values
unspecified number of most recent
If value group F
is not used, it is set to
255
Angles
Monitorizacin y Control de Redes de Energa
M.U. Ingeniera Industrial
Step 3 - Specifying Associations
Association_01
Access Rights
xDLMS
Context
Association_02
Client_Type
Identifier
Access Rights
Client_Type
Identifier
Association
Context
Association
Context
Authentication
mechanism
and data
Authentication
mechanism
and data
Monitorizacin y Control de Redes de Energa
xDLMS
Context
M.U. Ingeniera Industrial
Step 4 - Specify the communication profile
Application Layer
ACSE
xDLMS_ASE
LLC
Data Link Layer
HDLC
Select HDLC parameters
addressing e.g. 4 bytes
Tx window size e.g. =7
Physical Layer
Monitorizacin y Control de Redes de Energa
M.U. Ingeniera Industrial
Step 5 - Configuration and binding
Logical device 1
Access Rights
Association_01
Access Rights
Association_02
Client_Type
Identifier
Authentication
mechanism
and data
xDLMS
Association_N
Access Rights
Association
Context
Association
Context
xDLMS
Context
Logical device n
Client_Type
Identifier
xDLMS
Context
Association
Context
Authentication
mechanism
and data
xDLMS
Context
_ASE
Client_Type
Identifier
Authentication
mechanism
and data
ACSE
LLC
HDLC
Monitorizacin y Control de Redes de Energa
M.U. Ingeniera Industrial
Student work: Emeter modelling
Specifications.
E-meter has to store the following data every 15 minutes
It has to store a profile with the measured harmonic every 5
minutes
Also, it has to store an ID manufacturer and a serie number
Units to be used are: Wh, VAr, Vah, A, V
Monitorizacin y Control de Redes de Energa
M.U. Ingeniera Industrial
Student work: Emeter modelling
Step 1: Choose a class for each measured
magnitude and for the profile and create objetcs
Use the IEC 62056-62 standard to get an overview of the
available classes.
An object is an instance of a class. Each object has
configurable parameters to be defined (named
attributes).
o For example: logical name, value, scaler unit, etc.
Monitorizacin y Control de Redes de Energa
M.U. Ingeniera Industrial
10
Student work: Emeter modelling
Step 2:Find a logical name for each object
The logical name is denoted as OBI.
The list of OBIS can be found in the appendix D of IEC
62056-62 standard.
Step 3: Prepare a document with the list of objects
with all the information needed to use the emeter.
Optional: Define the objects to store association
information and create a billing profile
Deadline: see blackboard
Monitorizacin y Control de Redes de Energa
M.U. Ingeniera Industrial
11