CewePrometer Serial Port Meter Reading 3.1.4

Download as pdf or txt
Download as pdf or txt
You are on page 1of 33

CewePrometer

Serial Port Meter Reading

Rev 3.1.4

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

ContentsRevision History

Contact

Overview

Baud rate changeover ..................................................................................................................................... 4


Protocol arbitration ........................................................................................................................................ 4
IEC62056-21

Communication mode ..................................................................................................................................... 4


Connecting ...................................................................................................................................................... 4
Error handling ................................................................................................................................................ 6
Calculation of the block check character (BCC) ............................................................................................ 6
Communication messages ............................................................................................................................... 7
Event IDs and data ...................................................................................................................................... 26
IEC62056-21 with OBIS codes

2828

DLMS/COSEM

2929

General ..................................................................................................................................................... 2929


Supported objects ...................................................................................................................................... 2929

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Revision History
Revision
0.1
1.0
1.2
1.3
1.4
1.4 2nd Ed.
1.4 3rd Ed.
2.0
3.0
3.1.0
3.1.1
3.1.2
3.1.3
3.1.4

Date
Feb 12, 2004
Sep 20, 2004
Mar 2, 2005
Sept 26, 2005

Description
Created
Messages in meter firmware 1.1.0 added. Some clarifications made.
Event ids added. New tags for logged values added.
Description of calculation of the block check character (BCC) is added.
Description of id'
s 109500, 100D00 and 101300 added. Minor fixes
done.
July 18, 2006 Messages in meter firmware 1.3.0 added.
Mar 1, 2007 New messages for firmware 1.4.0 added. Changes of access level of
time set command. Changes in General info text length. New event and
logger flag for battery backup time has ended.
July 17, 2007 Message id history, add information about in what firmware version a
certain message id was implemented.
Oct, 2008
Added OBIS over 62056-21. Added DLMS.
Mar, 2010
Adapted to FW 2.1 and 3.0
Sep, 2010
Added changes for FW 2.2 and 3.1
May, 2011
Minor corrections
Nov, 2011
Added messages 100E and 1014 for 62056-21.
Jul, 2013
Fixed typo in message 100D.
Sep, 2013
Clarified that MD values uses Extended Register class.

Signature
GLN
GLN
GLN
GLN
NEN
PLM
THR
RPO
RPO
PLM
RPO
RPO
RPO
RPO

Contact
For further information or technical assistance please contact Cewe Instrument.
World Wide Web
E-Mail

www.ceweinstrument.se
[email protected]

Tel

+46 155 77500

Address

Cewe Instrument AB
Box 1006
SE-611 29 Nykping

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Overview
This document describes how to read data from the CewePrometer using IEC1107/ IEC62056-21 or
DLMS/COSEM.
This document is a complement to the IEC1107/ IEC62056-21 and describes only Cewe Instrument specific aspects
of the standard. IEC62056-21 is a replacement to the IEC1107 and hereafter we are only referring to the IEC6205621 standard.
For DLMS/COSEM, this document describes the specifics for CewePrometer. For general information about the
protocol, refer to the standard documents (white, green and blue books from the DLMS User Association). The
implementation in CewePrometer is based on Blue Book 8th edition and Green Book 6th edition.
DLMS/COSEM is not supported on the optical interface, only on RS232, RS485 and Ethernet.
This document only describes meter reading; it is not intended for meter configuration. When configuring the meter
through IEC62056-21 other aspects have to be taken into consideration, not mentioned in this document.

Baud rate changeover


The RS-232/422/485 ports on the meter do not have the baud rate changeover. Instead the communication starts at
the baud rate set up in the meter. Using the optical interface complies with the standard which means the
communication always starts at 300 bps.

Protocol arbitration
The communication ports supporting DLMS/COSEM automatically detects the type of communication to be
IEC62056-21 or DLMS/COSEM. Once a type of protocol has been detected, the port stays in that mode until the
connection is closed or times out.

IEC62056-21
Communication mode
CewePrometer supports IEC62056-21 protocol mode C - programming mode. The optional partial block read and
formatted codes are not supported.

Connecting
When connecting to the meter using mode C programming mode the meter serial number is used as the device
address. The device address may be omitted if only one meter is expected to answer. The meter answers with a
identification message where the manufacturers identification is CWI. After the acknowledgement/option select
message the meter answers with a P0-command which is an operand for secure algorithm. The operand is not used
today but may be used in the future. The PC/HHU answers with a P2 command where the data consists of a
plaintext password for one of the access levels, in the future the password may be encrypted with a secure algorithm
yet to be selected. Please note that the P2 must be sent from the PC/HHU even if there are no passwords in the
meter. The meter will in this case accept an arbitrary string as the password. It may be an empty string.
The meter has five access levels:
Level 1
Read only access.
Level 2
Adjust meter clock and setting meter clock forward to an absolute time, finish historical period
(which causes a maximum demand reset).
Level 3
Change configuration. Setting the meter clock to an absolute time.
Level 4
Update firmware.
Level 5
Calibrate meter.

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Example:
The meter serial number is: 135701
The meter password for access level 2 is: ABCDEF
PC/HHU ->
Meter
<->
<->
<-

/?!<CR><LF> or. /?135701!<CR><LF>


/CWI6135701<CR><LF>
<ACK>061<CR><LF>
<SOH>P0<STX>(xxxx)<ETX><BCC>
<SOH>P2<STX>(ABCDEF)<ETX><BCC>
<ACK>

If the P2 command contains an illegal password the meter will return a break message instead of <ACK>.
PC/HHU ->
Meter
<-

<SOH>P2<STX>(AAAAAA)<ETX><BCC>
<SOH>B0<ETX><BCC>

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Error handling
If the meter does not accept a command, an error message is returned. An error message has the same format as a
normal data message but the data set starts with ER: followed by a three digit error code in decimal format e.g.
ER:001.
The following error codes may be returned:
001

Non existing main id: There is no message with the requested main id. Main id is the first four leading
digits in the message id. i.e. 0152 in 015200.

002

Non existing sub id: There is no message with the requested sub id. Sub id is the last two digits in the
message id i.e. 00 in 015200.

003

Locations requested exceeds limit: A maximum of 16 locations may be read in a single read command e.g.
R1<STX>101200(33) is not accepted and the meter returns error message 003.

004

Data format error: The format of the data set in a data message has not a valid format, e.g. a character string
is sent when the meter expects an integer.

005

Data content error: The data set in a data message has not a valid content, e.g. a value is given outside valid
limits.

006

Message read only: Returned when a write command is sent to a read only message.

007

Message write only: Returned when a read command is sent to a write only message.

008

Reserved

009

General error message.

010

Access denied: Returned when current access level is not enough for the requested message.

Example:
Meter accepts the read command and returns a data message:
PC/HHU ->
Meter
<-

<SOH>R1<STX>108700(1)<ETX><BCC>
<STX>(135701)<ETX><BCC>

Meter does not accept the read command because the requested id does not exist:
PC/HHU ->
Meter
<-

<SOH>R1<STX>108800(1)<ETX><BCC>
<STX>(ER:001)<ETX><BCC>

Calculation of the block check character (BCC)


The scope of the block check character BCC is from the character immediately following the first SOH or STX
character up to and including the ETX character which terminates the message. E.g. in the
"<SOH>R1<STX>108800(1)<ETX><BCC>" message the scope of the BCC is "R1<STX>108800(1)<ETX>". The
BCC is calculated as an XOR of all the bytes in the scope of the BCC.

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Communication messages
General info
Floats
When the meter returns floating point values they are given in scientific notation with 1 to 9 significant digits.
Decimal point and/or exponent will be omitted when possible, e.g.:
0
1e9
1.23456789
1.23456789e10 etc.
Floats are either single (32 bits) or double (64 bits) precision.
Hex bytes
Hex bytes are always sent/received as two characters i.e. B is sent/received as 0B.
Integers
May be 8, 16 or 32 bits. Where the bit resolution exceeds 8, it is stated. Integers are always sent/received with
leading zeroes omitted.
Message id:s
The message id:s are in hexadecimal format. Leading zeroes may be omitted i.e. 015200 may be sent as 15200. The
meter will recognise both upper case and lower case characters in the id i.e. 108a00 and 1008A00 are both
acceptable. The meter will always send upper case characters in the id.

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Date and time


ID No.

R/W

100C00

R/W

Access
Description
levels (R,W)
1, 2(3)1
Date and time
(yyyymmdd,hhmmss)

Example
(20040209,145926)

108A00

N/A, 2

In meter firmware versions prior to 1.1.0 the


write access level was 3.
Slide time
(S,P)
S:
28800...28800
P:
1...40

(7,20)

The meter time is adjusted every minute by P


percent of a minute until the time has been
adjusted S seconds. This is the preferred way
of adjusting the meter time.
If there is a slide time in process, writing
another slide time message cancels the current
process and starts a new. By writing 0,0 the
ongoing time adjustment is cancelled.
109500...
109509

R/W

1, 3

Daylight Saving time settings, year no 0..9


(SM,SD,SH,EM,ED,EH,A)
SM:
SD:
SH:
EM:
ED:
EH:
A:

(3,28,2,10,31,3,60)

Start month (1-12)


Start day (1-31)
Start hour (0-23)
End month (1-12)
End day (1-31)
End hour (0-23)
DST adjustment in minutes

Start time is given in standard time and end is


time given in daylight saving time. To use this
function a start year has to be set (message id
1096).

1096

R/W

1, 3

Note: In meter firmware versions previous to


1.3.0 only year no 0 is available.
Daylight saving time start year
Start year for the daylight saving time settings.
If start year is set to 0, year no 0 configuration
will always be active.
Note: This message is only available in meter
firmware versions 1.3.0 and later.

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

ID No. history
ID No.

100C00
108A00
109500
10950109
109600

Firmware
1.0.0

1.1.0

1.2.0

1.3.0

1.4.0

x
x
x

c
x
x

x
x
x

x
x
x
x
x

x
x
x
x
x

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Energy registers
ID No.

R/W

100800

10D000

10D100... R
10D107

Access
levels (R,W)
1, N/A

1, N/A

1, N/A

Description

Example

Energy registers
Returned as 18 comma separated floats with
double precision.

(8.78649208e3,3.03188899e3,
1.56434299e4,5.19229712e3,
0,...

1:
active energy imp. (Wh)
2:
active energy exp.
3:
reactive energy QI (varh)
4:
reactive energy QII
5:
reactive energy QIII
6:
reactive energy QIV
7:
apparent energy imp. (VAh)
8:
apparent energy exp.
9:
reactive energy imp. (varh)
10:
reactive energy exp.
11:
reactive energy ind.
12:
reactive energy cap.
13:
active energy imp. L1 (Wh)
14:
active energy imp. L2
15:
active energy imp. L3
16:
active energy exp. L1
17:
active energy exp. L2
18:
active energy exp. L3
(6,7,1,2,3,0)
Current TOU info
Returned as 6 integers. (energy rate,MD
rate,energy day type,MD day type,season,tariff
structure)
Note: This message is only available in meter
firmware versions 1.1.0 and later.
TOU-registers 0...7
Returned as 8 comma separated floats with
double precision. First float is rate 0 and last
float is rate 7.

(8.78649208e3,3.03188899e3,
1.56434299e4,5.19229712e3,
0,...

Message 10D100 is TOU-register 0 and


10D107 is TOU-register 7. What each TOUregister represents is defined in message
10D200.
Note: This message is only available in meter
firmware versions 1.1.0 and later.

10

CewePrometer Serial Port Meter Reading.doc


10D200

R/W

1, 3

Cewe Instrument AB

TOU-registers select
(r0r1r2r3r4r5r6r7)
Returned as 8 hex bytes. Defines what each
TOU-register represents. First hex byte selects
what TOU-register 0 represents. Last hex byte
selects what TOU-register 7 represents.
00:
01:
02:
03:
04:
05:
06:
07:
08:
09:
0A:
0B:
17...1E:

(030405060708090A)

active energy imp. (Wh)


active energy exp.
reactive energy imp. (varh)
reactive energy exp.
reactive energy ind.
reactive energy cap.
reactive energy QI (varh)
reactive energy QII
reactive energy QIII
reactive energy QIV
apparent energy imp. (VAh)
apparent energy exp.
external reg. 0..7

Note: This message is only available in meter


firmware versions 1.1.0 and later.

ID No. history
ID No.

100800
10D000
10D10007
10D200

Firmware
1.0.0

1.1.0

1.2.0

1.3.0

1.4.0

x
x
x
x

x
x
x
x

x
x
x
x

x
x
x
x

11

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

External registers (pulse input registers)


ID No.

R/W

10A100

10A200... R/W
10A207
10A300... R/W
10A307
10A400... R/W
10A407

Access
Description
levels (R,W)
1, N/A
External registers
Returned as 8 comma separated floats with
double precision. First float represent external
register 0. Last float represent external register
7.
1, 3
External register description 0...7
0 to 17 character string.
1, 3
External register unit 0...7
0 to 4 character string.
1, 3
External register format 0...7
(prefix, no. of decimals)
prefix
0:
1:
2:
3:
4:

Example
(7.6644565e5,9.928e5,
1.4892e5,1.8935716e5,
0,0,0,0)
(Check meter)
(Wh)
(2,3)

use
no prefix
kilo
Mega
Giga
Tera

no. of decimals: 0...4

ID No. history
ID No.

10A10007
10A20007
10A30007
10A40007

Firmware
1.0.0

1.1.0

1.2.0

1.3.0

1.4.0

x
x
x
x

x
x
x
x

x
x
x
x

x
x
x
x

x
x
x
x

12

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Instant values
ID No.

R/W

015200

Access
levels
(R,W)
1, N/A

Description

Example

Instant values
Returned as 46 comma separated floats with
single precision:

(5.18032e3,5.18094e3,
5.19453e3,8.97436e3,
8.98244e3,8.98662e3,
1.00546e2,1.00417e2,
1.0079e2,0,...

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
1

phase voltage L1 (volts)1


phase voltage L2
phase voltage L3
main voltage L1-L2 (volts)
main voltage L2-L3
main voltage L3-L1
current L1 (ampere)
current L2
current L3
phase symmetry voltage L1 (rad -Pi...Pi)2
phase symmetry voltage L2
phase symmetry voltage L3
phase symmetry current L1 (rad -Pi...Pi)
phase symmetry current L2
phase symmetry current L3
phase angle L1 (rad -Pi...Pi)
phase angle L2
phase angle L3
power factor L1 (0.0...1.0)
power factor L2
power factor L3
active power L1 (W)4
active power L2
active power L3
reactive power L1 (var)4
reactive power L2
reactive power L3
apparent power L1 (VA)
apparent power L2
apparent power L3
THD voltage L1 (0.0...1.0)5
THD voltage L2
THD voltage L3
THD current L1 (0.0...1.0)5
THD current L2
THD current L3
total active power (W)4
total reactive power (var)4
total apparent power (VA)
total power factor (0.0...1.0)
total phase angle (rad -Pi...Pi)
frequency (Hz)
voltage transformer ratio
current transformer ratio
secondary nominal voltage (volt)3
secondary nominal current (ampere)

For 2-element meters phase voltage is 0.

For 2-element meters the phase symmetries are


for the line to line voltages.

13

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Given in phase voltage for 3-element meters


and line to line voltage for 2-element meters.
4

Positive values means import energy direction,


negative values export energy direction.

01500x

1, N/A

1.0 equals 100%

Harmonic amplitudes
Returned as 31 comma separated single
precision floats. Values given in volts/amperes
peak value. First value is the fundamental value,
second value is the first harmonic.

(7.63053e2,1.19017e2,
1.5805e2,7.87409e1,
3.95637e-2...

In the message Id no. replace x with:

01510x

x
use
0:
voltage L1
1:
voltage L2
2:
voltage L3
3:
current L1
4:
current L2
5:
current L3
Harmonic phase angles
Returned as 31 comma separated single
precision floats. Values given in radians relative
voltage L1 (-Pi...Pi). First value is the phase
angle of the fundamental, second value is the
phase angle of the first harmonic.

1, N/A

(1.13196e1,1.7033,
2.26157,1.12749,
1.56938e-3...

In the message Id no. replace x with:

015400

x
use
0:
voltage L1
1:
voltage L2
2:
voltage L3
3:
current L1
4:
current L2
5:
current L3
Voltage Unbalance
Definition according to IEC 61000-4-30 (2008)
Class A except measuring period, which is 20
cycles instead of 10(50 Hz)/12(60 Hz)
Returns single precision value. The example 0.1
represents 10% voltage unbalance.

1, N/A

(0.1)

ID No. history
ID No.

01500005
01510005
015200
015400

Firmware
1.0.0-1.4.0

2.x

3.0.x

3.1.0

x
x
x

x
x
x

x
x
x

x
x
x
x

14

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Logged values (stored profile)


ID No.

R/W

100D00

R/W

100E00

R/W

101100

101200

Access
Description
levels (R,W)
1, 3
Logger 0 channel count
One integer (0-50) which is the number of
channels stored in logger 0.
1,3
Logger 0 period
One integer giving the period in seconds.
Must be one of the predefined values 60,
120, 180, 240, 300, 600, 900, 1200, 1800 or
3600.
N/A, 1
Set logger 0 read offset
(yyyymmdd,hhmmss)

1, N/A

By writing 19700101,000000 the complete


content of the logging memory can be
retrieved.
Get next record from logger 0
(yymmddhhmm,tag,value0...value9)
(yymmddhhmm,tag,value0...value49) 4
tag: bit
0:
1:
2:
3:
4:
5:

use
Time set
Disturbed
User alarm
Parameter data change1
Reverse running1
Meter clock in daylight saving
time1
6:
Voltage lost/missing1
7:
Corrupted
8:
Battery2
9:
Power Loss3
10-15: reserved

Example
(5)
(3600)

(20040203,020000)

(0402112015,2,4.96634762e4,
1.03131386e4,1.03762926e4)
When the end of the logging
memory is reached:
(EOF)

value0..value49 returned as 1 to 10 comma


separated double precision floats depending on
how many channels the meter has been
configured with.
When the end of the logging memory has been
reached EOF is returned
When instantaneous values are logged the
average over the logging period is stored.
When energies and external registers are
logged the current reading of the registers are
logged.
Up to 16 records can be read in the same
command e.g. R1<STX>101200(16)
1

Only in meter firmware 1.2.0 and later.


Only in meter firmware 1.4.0 and later.
3
Only in meter firmware 2.1.0 and later.
4
Only in meter firmware 3.1.0 and later.
2

15

CewePrometer Serial Port Meter Reading.doc


10D500

1, N/A

Cewe Instrument AB

Get next record with rate info from logger 0 (0402112015,2,4.96634762e4,


(yymmddhhmm,tag,value0...value49,MD rate, 1.03131386e4,1.03762926e4,
egy. rate)
4,3)
This is basically the same message as 101200
only that this message contains information
about the MD rate and energy rate present
when the record was stored.

100F00

R/W

1, 3

Note: This message is only available in meter


firmware versions 1.1.0 and later.
THIS MESSAGE IS OBSOLETE
FROM FW 2.1.0
See 1140 114A instead.

(00010203000000000E0A)

What is logged in each channel of logger 0


(c0c1c2c3c4c5c6c7c8c9)
Returned as 10 hex bytes representing
bitmaps:
bit 0...5: Defines quantity to log e.g. current,
voltage, active energy etc.
bit 6...7: Phase to log: 0=all phases (total or
average), 1=L1, 2=L2, 3=L3. It is
not possible to log all quantities per
phase.
bit 0...5
00:
01:
02:
03:
04:
05:
06:
07:
08:
09:
0A:
0B:
0C:
0D:
0E:
0F:
10:
11:
12:
13:
14:
15:
16:
17...1E:

use
active energy imp.1
active energy exp.1
reactive energy imp.
reactive energy exp.
reactive energy ind.
reactive energy cap.
reactive energy QI
reactive energy QII
reactive energy QIII
reactive energy QIV
apparent energy imp.
apparent energy exp.
phase voltage1
line to line voltage1
current1
active power1
reactive power1
apparent power1
frequency
phase angle1
power factor1
THD voltage1
THD current1
external reg. 0..7

Ex.

0C
8C
D3

three phase average voltage


phase voltage L2
phase angle L3

Possible to log per phase.

16

CewePrometer Serial Port Meter Reading.doc


11400x..
11720x1

R/W

1,3

What is logged in channel


(quantity, phase, instant_value_type)

Cewe Instrument AB
(12, 1,3)

Where quantity is one of:


0:
active energy imp.
1:
active energy exp.
2:
reactive energy imp.
3:
reactive energy exp.
4:
reactive energy ind.
5:
reactive energy cap.
6:
reactive energy QI
7:
reactive energy QII
8:
reactive energy QIII
9:
reactive energy QIV
10:
apparent energy imp.
11:
apparent energy exp.
12:
phase voltage
13:
line to line voltage
14:
current
15:
active power
16:
reactive power
17:
apparent power
18:
frequency
19:
phase angle
20:
power factor
21:
THD voltage
22:
THD current
23...30: external reg. 0..7
31..61:
voltage harmonics 1..31
62..92:
current harmonics 1..31
93:
voltage unbalance
and phase is one of
0:
system (all phases)
1:
L1
2:
L2
3:
L3
and instant_value_type is one of:
0:
1:
2:
3:
4:

NA
Average
Max
Min
Instant

x should be 0 for Logger 1 and 1 for Logger 2.


Examples
114000 is for channel 1, logger 1.
114101 is for channel 2, logger 2.
114900 is for channel 10, logger 1.
1171001 is for channel 50, logger 1.
Note: These messages are only available in
meter firmware version 2.1.0 and later.
1

FW 2.1: 10 channels 11400x-114A0X


FW 3.1: 50 channels 11400x-11720X

17

CewePrometer Serial Port Meter Reading.doc


101300

R/W

1, 3

101400

R/W

1, 3

101700

N/A, 1

101800

1, N/A

10D600

1, N/A

101500

R/W

1, 3

Cewe Instrument AB

Logger 1 channel count


same as logger 0
Logger 1 period
same as logger 0
Set logger 1 read offset
same as logger 0
Get next record from logger 1
same as logger 0
Get next record with rate info from logger 1
same as logger 0
Note: This message is only available in meter
firmware versions 1.1.0 and later.
THIS MESSAGE IS OBSOLETE
FROM FW 2.1.0
See 1140 114A instead.
What is logged in each channel of logger 1
same as logger 0

ID No. history

ID No.
100D00
100F00
101100
101200
101300
101500
101700
101800
10D500
10D600
114000..114A01
114B00..117201

Firmware
1.0.0
X
X
X
X
X
X
X
X

1.1.0-1.4.1
X
X
X
X
X
X
X
X
X
X

2.0.0
X

2.1.0
X

2.2.0
X

3.0.0
X

3.1.0
X

X
X
X
X
X
X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X
X
X

X
X
X
X
X
X

X
X
X
X
X

X
X
X
X
X
X

18

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Maximum demand
ID No.

R/W

106500...
106507

Access
Description
levels (R,W)
1, N/A
MD-value 0...7
(quantity,yymmddhhmm,highest,
yymmddhhmm,second highest,
yymmddhhmm,third highest)
quantity
0:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:

Example
(0,0402040500,1.76952e6,
0402031200,1.50058e6,
0402112000,1.30823e6)

use
active power imp.
active power exp.
reactive power imp.
reactive power exp.
reactive power ind.
reactive power cap.
reactive power QI
reactive power QII
reactive power QIII
reactive power QIV
apparent power imp.
apparent power exp.

highest, second highest, third highest as single


precision floats.

106600...
106607

1, N/A

If yymmddhhmm equals 7001010000 no


MD-value has been registered by the meter.
MD-value 0...7 with rate info
(quantity,yymmddhhmm,rate,highest,
yymmddhhmm,rate,second highest,
yymmddhhmm,rate,third highest)

(0,0402040500,4,1.76952e6,
0402031200,4,1.50058e6,
0402112000,5,1.30823e6)

This is basically the same message as 106500...


106507 only that this message has rate
information included.
Rate as integer. The actual rate when the MD
occurred.

103500

N/A, 2

Note: This message is only available in meter


firmware versions 1.1.0 and later.
Finish period/MD-reset
This message copies the MD-registers to a
historical register and thereafter clears the
current readings of the MD-registers.

()

Note: This message will also copy the current


readings of energy registers and external
registers etc. to the historical register.

19

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

ID No. history
ID No.

10650007
10660007
103500

Firmware
1.0.0

1.1.0

1.2.0

1.3.0

1.4.0

x
x
x

x
x
x

x
x
x

x
x
x

20

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Historical register
ID No.

R/W

103700...
10370D

Access
Description
levels (R,W)
1, N/A
Historical period time stamp
(yyymmdd,hhmmss)

Example
(20040210,172011)

Returns the time when the historical period was


finished. Message 103700 is the newest period
and 10370D the oldest. When the meter returns
(19700101,000000) no older periods exists.
103800...
10380D

1, N/A

103900...
10390D

1, N/A

104000...
10400D

1, N/A

Historical energy registers


Returned as 12 comma separated floats with
double precision. Message 103800 returns the
newest period.
1:
active energy imp. (Wh)
2:
active energy exp.
3:
reactive energy QI (varh)
4:
reactive energy QII
5:
reactive energy QIII
6:
reactive energy QIV
7:
apparent energy imp. (VAh)
8:
apparent energy exp.
9:
reactive energy imp. (varh)
10:
reactive energy exp.
11:
reactive energy ind.
12:
reactive energy cap.
Historical external register (pulse inputs)
Returned as 8 comma separated floats with
double precision. Message 103900 returns the
newest period.
float 1..8 represents external register 0...7.
Historical MD-register 0
(quantity,yymmddhhmm,highest,
yymmddhhmm,second highest,
yymmddhhmm,third highest)
quantity
0:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:

use
active power imp.
active power exp.
reactive power imp.
reactive power exp.
reactive power ind.
reactive power cap.
reactive power QI
reactive power QII
reactive power QIII
reactive power QIV
apparent power imp.
apparent power exp.

Highest, second highest, third highest as single


precision floats.
If yymmddhhmm equals 7001010000 no
MD-value has been registered by the meter.

21

CewePrometer Serial Port Meter Reading.doc


104100...
10410D
104200...
10420D
104300...
10430D
104400...
10440D
104500...
10450D
104600...
10460D
104700...
10470D
104800...
10480D

1, N/A

1, N/A

1, N/A

1, N/A

1, N/A

1, N/A

1, N/A

1, N/A

Cewe Instrument AB

Historical MD-register 1
see above
Historical MD-register 2
see above
Historical MD-register 3
see above
Historical MD-register 4
see above
Historical MD-register 5
see above
Historical MD-register 6
see above
Historical MD-register 7
see above
Historical MD-register 0 with rate info
(quantity,yymmddhhmm,rate,highest,
yymmddhhmm,rate,second highest,
yymmddhhmm,rate,third highest)
This is basically the same message as
Historical MD-register 0 (104000... 10400D)
only that this message has rate information
included.
Rate as integer. The actual rate when the MD
occurred.

104900...
10490D
104A00...
104A0D
104B00...
104B0D
104C00...
104C0D
104D00...
104D0D
104E00...
104E0D
104F00...
104F0D
105000...
10500D

1, N/A

1, N/A

1, N/A

1, N/A

1, N/A

1, N/A

1, N/A

1, N/A

Note: Historical MD-register messages are


only available in meter firmware versions 1.1.0
and later.
Historical MD-register 1 with rate info
see above
Historical MD-register 2 with rate info
see above
Historical MD-register 3 with rate info
see above
Historical MD-register 4 with rate info
see above
Historical MD-register 5 with rate info
see above
Historical MD-register 6 with rate info
see above
Historical MD-register 7 with rate info
see above
Historical TOU-registers 0
Returned as 8 comma separated floats with
double precision. Message 105000 returns the
newest period and 10500D the oldest.
First float is TOU-register for rate 0. Last float
is TOU-register for rate 7.

105100...
10510D
105200...
10520D

1, N/A

1, N/A

Note: Historical TOU-register messages are


only available in meter firmware versions 1.1.0
and later.
Historical TOU-register 1
see above
Historical TOU-register 2
see above

22

CewePrometer Serial Port Meter Reading.doc


105300...
10530D
105400...
10540D
105500...
10550D
105600...
10560D
105700...
10570D
103500

1, N/A

1, N/A

1, N/A

1, N/A

1, N/A

N/A, 2

Cewe Instrument AB

Historical TOU-register 3
see above
Historical TOU-register 4
see above
Historical TOU-register 5
see above
Historical TOU-register 6
see above
Historical TOU-register 7
see above
Finish period/MD-reset

()

Copies MD-values, current readings of energy


registers, TOU-registers and external registers
to the historical register. Clears the current
readings of the MD-registers.

ID No. history
ID No.

103500
1037000D
1038000D
1039000D
1040000D
1041000D
1042000D
1043000D
1044000D
1045000D
1046000D
1047000D
1048000D
1049000D
104A000D
104B000D
104C000D
104D000D
104E000D
104F000D
1050000D
1051000D
1052000D
1053000D
1054000D
1055000D
1056000D
1057000D

Firmware
1.0.0

1.1.0

1.2.0

1.3.0

1.4.0

x
x
x
x
x
x
x
x
x
x
x
x

x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x

x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x

x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x

x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
X
x
x

23

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Event log
ID No.

R/W

102100

102200

Access
Description
levels (R,W)
N/A, 1
Set event log read offset
(yyyymmdd,hhmmss)

Example
(20000101,000000)

By writing 19700101,000000 the complete


content of the event log can be retrieved.
Get next event
(yymmddhhmmss,event id,data)

1, N/A

(040209145950,2,
4EA027400000)

event id1: 16 bit integer


data:
6 hex bytes of data. The
interpretation of these bytes depends
on the event id.
When the end of the event log has been
reached EOF is returned
Up to 16 events can be read in the same
command e.g. R1<STX>102200(16). The
event log may contain up to 40 events.
1

102300

The event ids are listed in the section Event


IDs and data
Total count of events
(16 bit integer)

1, N/A

(98)

A maximum of 40 events can be stored in the


event log before the oldest event is overwritten.
The total count is the no. of events occurred
since last reset, and may exceed 40.

ID No. history
ID No.

102100
102200
102300

Firmware
1.0.0

1.1.0

1.2.0

1.3.0

1.4.0

x
x
x

x
x
x

x
x
x

x
x
x

x
x
x

24

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Miscellaneous
ID No.

R/W

107100...
107103

R/W

Access
Description
levels (R,W)
1, 3
General info text 0...3
(label,text)
label:

Example
(Owner,Cewe Instrument)

0 to 17 character string with a


description of the text.

text:
100700

1, N/A

108700

1, N/A

10DA00

1, N/A

106B00

1, N/A

011200

1, N/A

0 to 17 character string with a general


purpose text.
Meter internal temperature
as single precision float.
Meter serial number
0 to 16 character string.
Meter firmware version
(major,minor,rev)
as three comma separated integers.
Sags and swells
(sags count,swells count,reserved)
as three comma separated 32bit integers.
Measuring properties
as 16 bit integer.

(2.525e1)
(135701)
(1,1,0)
(4,6,0)
(3)

bit
0:

10D800

R/W

use
measuring mode 0 = 3-element, 1 = 2element
1:
nominal frequency 0 = 50Hz, 1 = 60Hz
(-1)
Battery backup time left
as 32 bit integer.
Represents number of seconds until the meter
reports that the battery needs to be exchanged.
-1 represents inactive function.

1, 3

ID No. history
ID No.

011200
100700
102500
106B00
10710003
108700
10D800

Firmware
1.0.0

1.1.0

1.2.0

1.3.0

1.4.0

x
x

x
x
x
x
x
x

x
x
x
x
x
x

c
x
x
x
x
x

c
x
x
x
c
x
x

x
x
x

25

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Event IDs and data


The message Get next event (102200) returns event IDs as well as additional event data. The event id is returned as
a decimal integer and the additional data as 6 hexadecimal bytes.
ID
1

Data
Phase (L1=00...L3=02)
phase
00
00
00
00
00
Meter time after adjustment in seconds since 1 Jan 1970
00:00 (32 bit)
LSB
MSB
00
00
N/A

Description
Example
Single phase reverse energy 1,010000000000
direction
Time set
(2004-11-04
16:58:07)
2,9F5F8A410000
Registers cleared
3,000000000000
Logger has been reset

4,010000000000

Logger no. (00=logger0, 01=logger1)


logg.no. 00
00
00
N/A

Supply lost

5,000000000000

N/A

6,000000000000

N/A

N/A

17

Logger no. (00=logger0, 01=logger1)


logg.no. 00
00
00
Duration in seconds (32 bit)
LSB
00
00
MSB
Duration in seconds (32 bit)
LSB
00
00
MSB
Duration in seconds (32 bit)
LSB
00
00
MSB
N/A

Historical registers cleared


(all billing periods cleared)
Historical period finished
and MD-registers reset
(Billing period reset)
All MD-registers cleared
due to configuration
changed
Logger cleared due to
configuration changed
Voltage interruption in
seconds
Voltage sag

18

2
3
4

14

00

00

00

00

00

00

00

00

00

00

7,000000000000
8,000000000000
9,010000000000

Voltage below limit

(0 seconds)
14,000000000000
(674 seconds)
15,A20200000000
(341 seconds)
16,550100000000
17,000000000000

N/A

Voltage exceeding limit

18,000000000000

19

N/A

Power factor below limit

19,000000000000

20

N/A

Voltage unbalance

20,000000000000

21

N/A

Current unbalance

21,000000000000

22

N/A

Active power below limit

22,000000000000

23

N/A

23,000000000000

24

N/A

25

N/A

26

Phase (L1=00...L3=02), Harmonic no (01-30)


phase
harm.no. 00
00
00
Phase (L1=00...L3=02), Harmonic no (01-30)
phase
harm.no. 00
00
00
Input no. (00-07), pulse length in ms. (16 bit)
inp.no. pl.LSB pl.MSB 00
00

Active power exceeding


limit
Voltage THD exceeding
limit
Current THD exceeding
limit
Single harmonic on voltage
exceeding limit
Single harmonic on current
exceeding limit
Digital input pulse length
too long

15
16

27
28

00
00
00

Voltage swell

24,000000000000
25,000000000000
(5:th harm on L1)
26,000400000000
(3:rd harm on L2)
27,010200000000
(inp. 4, 300ms)
28,042C01000000

26

CewePrometer Serial Port Meter Reading.doc


29

Cewe Instrument AB

42

Input no. (00-07), pulse length in ms. (16 bit)


inp.no. pl.LSB pl.MSB 00
00
00
Bitmask of one or a combination of phases (bit0=L1,
bit1=L2, bit2=L3)
phases 00
00
00
00
00
N/A

Digital input pulse length


too short
Voltage phase failure. 2element meters will always
have phases = 00.
Meter configuration altered

(inp. 3, 20ms)
29,031400000000
(Phase failure on
L1 and L2)
30,030000000000
42,000000...

43

N/A

Meter calibration altered

43,000000...

44

N/A

Meter initialised

44,000000...

45
46

Bitmask of one or a combination of phases/elements


(bit0=L1, bit1=L2, bit2=L3)
phases 00
00
00
00
00
N/A

Reverse running. 2-element


meters will always have
bit1(L2) = 0
Meter firmware upgrade

(Reverse running
on L1 and L3)
45,050000000000
46,000000...

47

N/A

Time to change battery

47,000000...

1000

N/A

Energy registers corrupt

1000,000000...

1001

N/A

1001,000000...

1002

N/A

Communication module
config. corrupt
I/O module config. corrupt

1003

N/A

1003,000000...

1004

N/A

1005

N/A

1006

N/A

1007

N/A

Measuring module config.


corrupt
Measuring module
initialisation corrupt
Measuring module
calibration corrupt
Main module config.
corrupt
Historical period corrupt

1008

N/A

MD-register corrupt

1008,000000...

1009

N/A

Measuring module faulty

1009,000000...

30

1002,000000...

1004,000000...
1005,000000...
1006,000000...
1007,000000...

27

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

IEC62056-21 with OBIS codes


As an alternative to the message id:s described in the section IEC62056-21 above, OBIS codes can be used as
described in this section.
OBIS codes can only be used for reading, limited to the objects listed in the table below. It is mode C and requires
the same connection process as ordinary message id:s.
Use the R5 command and OBIS code format A-B:C.D.E as given in this example:
<0x01> R5 <0x02> 1-1:1.8.0() <0x03><BCC>
Response is on the form
<0x02> 1-1:1.8.0 (000000.25*MWh) <0x03><BCC>
The example above has no F part. If a billing period is to be retrieved, use the following structure:
<0x01> R5 <0x02> 1-1:1.8.0*12() <0x03><BCC>
Billing periods are denoted by a VZ modulo 15. The current VZ has OBIS code 0.1.0.
OBIS code
1-1:1.2.0
1-1:1.4.0
1-1:1.6.0.f
1-1:1.8.e.f

Quantity
Active Import

1-1:1.29.0
C = 2, with same variants as C = 1
C = 3, only with D = 8 and 29.
C = 4, only with D = 8 and 29.
1-x:0.8.0

Active Export
Reactive Import
Reactive Export
External register

0.0.0

Meter serial
number
VZ
Timestamp
Local time
Local date
Logger #1

0.1.0
0.1.2*f
0.9.1
0.9.2
P.1

Comment
Rising demand
f denotes billing period. Note that this is relative VZ.
e = 0 gives total active import.
e from 1 to 8 gives corresponding rate.
f denotes billing period.
Energy accumulated from the beginning of the logging
intervall of logger #1 (Time integral 5 in OBIS
terminology)

(x 1) signifies which pulse input to read. X = 2 gives


pulse input #1 etc.
Billing period (historical register) counter.
Timestamp of billing period identified by f.
Implementation follows the VDN Lastenheft
specification except for:
status word will always read 00
only logging of registers listed above will be supported
i.e. averages of instantaneous values will be excluded.

28

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

DLMS/COSEM
General
CewePrometer supports referencing of COSEM objects using logical (long) names over HDLC. Physical layer uses
1 start bit, 8 data bits, no parity and one stop bit.
Supported baud rates depend on the specific port; see CewePrometer User Manual for details.
All three modes of HDLC addressing is supported (1, 2 or 4 byte), but a meter can only be configured with one byte
lower HDLC address. The normal restrictions apply for restricted addresses according to the standard.
The upper HDLC address (logical device address) is always 1.
To configure the lower HDLC device address for a meter, connect using CeweConfig and select the Communication
and Security form. The device address is available for configuration as bus address for each communication port
(except optical).
Security
There are three associations available in CewePrometer. Their characteristics are as follow:
Client ID
0x10

Security method
none

0x11

LLS (password corresponding to meter


access level 1).

0x12

LLS (password corresponding to meter


access level 2).

Access
Association (0.0.40.0.1.255) and logical device
name (0.0.42.0.0.255)
All meter objects except end billing period script
(0.0.10.0.1.255). Clock (0.0.1.0.0.255) second
attribute is read only.
All meter objects including end billing period
script. Clock can be set.

Supported objects
This section describes what COSEM objects are provided by CewePrometer over DLMS COSEM.
Unless otherwise stated, all object values are returned as double precision floating point numbers (IEEE 754) in the
base (SI) unit. For example, the energy register for active import (1.1.1.8.0.255) is given in Wh.
Abstract objects
The following general abstract objects are available:

Obis code

Object

Interface class

0.0.1.0.0.255
0.0.10.0.1.255
0.0.40.0.1.255
0.0.42.0.0.255

Clock
End billing period script
Association
Logical device name

Clock
Script table
Association LN
Register

The script 0.0.10.1.255 is hidden, i.e. the attribute 2 cannot be read.

29

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Electricity objects

Miscellaneous

Obis code

Object

Interface class

1.0.99.1.0.255
1.0.99.2.0.255
1.0.99.98.0.255
1.0.99.98.1.255
1.1.0.1.0.255
1.1.0.1.1.255
1.1.0.1.2.x

Load Profile (Logger) 1


Load Profile (Logger) 2
User Event Log
System Event Log
Billing period counter
Number of billing periods
Timestamp for VZ = x,
1 x 15
Timestamp for last billing
period
Firmware version

Profile Generic
Profile Generic
Profile Generic
Profile Generic
Register
Register
Register

1.1.0.1.2.255
1.1.0.2.0.255

Supported from FW
2.1.x

Register
Register

2.1.x

Load profiles (loggers)


The load profiles can be read as a whole or by using selective access on attribute 2. The selective access must be by
range (access selector 1) and use the clock (obis 0.0.1.0.0.255, attr 2) as restricting object.
A load profile (logger) entry always contains the timestamp (clock attribute 2) followed by a 16 bit status object. See
CewePrometer documentation for the meaning of the status bits. Then follows the data configured to be captured
according to the meters configuration.
What to store in the respective load profile is configured under the Logger node in CeweConfig.
Attribute 3 on a profile generic object supplies a list of the objects captured by the profile. There are a number of
objects not otherwise supported over COSEM DLMS that can be stored in a profile, as described in the following
table:

Obis

Object

1.1.128.8.0.255
1.1.129.8.0.255
1.1.130.7.0.255
1.1.131.7.0.255
1.1.132.7.0.255

QI + QIII
QII + QIV
Average of phase voltages (only 3-element meter)
Average of all three currents.
3-element meter: L1- L2 main voltage.
2-element meter: Not used (L1-L2 has the code 1.1.32.7.0.255)
3-element meter: L2-L3 main voltage.
2-element meter: Not used (L2-L3 has the code 1.1.72.7.0.255)
3-element meter: L1-L3 main voltage.
2-element meter: L1-L3 main voltage.
Average of all three main voltages.
The status word in a load profile.
Max instant value in integration period.
Min instant value in integration period.
Momentaneous instant value at end of integration period.
THD, t is one of 12, 32, 52, 72, 11, 31, 51 or 71, and d is one of 7, 128, 129 or 130.
Harmonics, where t is one of 12, 32, 52, 72, 11, 31, 51 or 71, and d is one of 7, 128, 129 or 130,
and h is from 1 to 32.

1.1.132.7.1.255
1.1.132.7.2.255
1.1.132.7.3.255
0.1.96.10.1.255
1.1.c.128.e.255
1.1.c.129.e.255
1.1.c.130.e.255
1.1.t.d.124.255
1.1.t.d.h.255

c is any of the supported c values for instant values. e is one of 0, 4, 15, 26, 124 or 128 (e<>0 indicate a
phase angle).
30

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Event logs
The rules for access of attribute 2 are the same for event logs as for load profiles (see section 0).
A user event log entry contains a timestamp (clock attribute 2) followed by a 16 bit word describing the event.
A system event log entry contains a timestamp (clock attribute 2) followed by a 16 bit status word and then 6
additional bytes with extra data for the event.

Energy
Energy objects are available as total (E = 0) and depending on meter configuration as four different tariffs (E from 1
to 4). CewePrometer supports 8 tariffs, but only the first four are available over the DLMS COSEM protocol in this
version. The configuration for what energy objects are available as tariffs is set in the Time of Use node, the TOU
tab, in CeweConfig.
Energy objects can also be retrieved for the current billing period (F = 255) or for one of 15 historical periods (F
from 1 to 15). F = VZ identifies the youngest value, F = VZ-1 the second youngest etc, and wrapping around for F
< 1. VZ is available in the object with code 1.1.0.1.0.255.
Example, assuming VZ = 4:
First (youngest) period
Second
Third
Fourth
Fifth
Sixth

F=4
F=3
F=1

F=2
F = 15
F = 14

Depending on meter configuration for Maximum Demand, the following variants of energy register may or may not
be available: highest (D = 6), second highest (D = 16) and third highest (D = 26). These maximum demand variants
are only available with E = 0, but may be available as historical registers (depending on configuration). The
configuration for maximum demand is set in the Maximum Demand node of CeweConfig.
Basic energy objects are implemented using the DLMS interface class Register, and Maximum Demand values are
implemented using the DLMS interface class Extended Register.
Energy objects always as A = 1 and B = 1, E and F as described above. Normal energy registers have D = 8, while
maximum demand has D as described above. C should have a value according to the following table:

C
1
2
3
4
5
6
7
8
9
10
21
22
41
42
61
62

Quantity
Active + (QI + QIV)
Active (QII + QIII)
Reactive + (QI + QII)
Reactive (QIII + QIV)
Reactive QI
Reactive QII
Reactive QIII
Reactive QIV
Apparent +
Apparent
Active + L1
Active L1
Active + L2
Active L2
Active + L3
Active L3

Also available in 2-element?


Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
No

31

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

Instant values
Instant values have A = 1, B = 1, F = 255, and unless otherwise specified, D = 7.
Instant values are implemented using the DLMS interface class Register.
The following instant values are available:

C
1
3
9
13
14
21
23
29
31
32
33
41
43
49
51
52
53
61
63
69
71
72
73

Quantity

Also available in 2-element?

Total Active Power


Total Reactive Power
Total Apparent Power
Power factor
Frequency
Active Power L1
Reactive Power L1
Apparent Power L1
Current L1
Voltage L1
Power Factor L1
Active Power L2
Reactive Power L2
Apparent Power L2
Current L2
Voltage L2
Power Factor L2
Active Power L3
Reactive Power L3
Apparent Power L3
Current L3
Voltage L3
Power Factor L3

Yes
Yes
Yes
Yes
Yes
No
No
No
Yes
Yes, L1-L2
No
No
No
No
No
No
No
No
No
No
Yes
Yes, L2 L3
No

Harmonics and THD


Harmonics and THD are available for voltages and currents supported on the meter type (2- or 3-element). 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.

Phase Angles
Obis code 1.1.81.7.E.255 gives phase angles as follow:

Angle

4
15
26
128

U1 to I1
U2 to I2
U3 to I3
Aggregated (manufacturer specific)

None of these are supported on 2-element meters.

32

CewePrometer Serial Port Meter Reading.doc

Cewe Instrument AB

External registers
CewePrometer supports 8 external registers. They are available with obis codes on the format 1.B.1.8.E.F, where 2
B 9 identifies the register, and E and F tariff and billing period respectively (as described in section 0).
NOTE that C must be set to 1 regardless of what quantity is stored in an external register.

33

You might also like