0% found this document useful (0 votes)
16 views

Common Data Types

The document discusses common data types used for attributes of COSEM objects, including simple data types like boolean, bit-string, and octet-string as well as complex data types like array and structure. It also describes the OBIS object identification system and COSEM interface classes.

Uploaded by

Rubent Delgado
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Common Data Types

The document discusses common data types used for attributes of COSEM objects, including simple data types like boolean, bit-string, and octet-string as well as complex data types like array and structure. It also describes the OBIS object identification system and COSEM interface classes.

Uploaded by

Rubent Delgado
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

COSEM Interface Classes and OBIS Object Identification System

4.1.5 Common data types


Table 2 contains the list of data types usable for attributes of COSEM objects.

Table 2 – Common data types

Type description Tag a Definition Value range


-- simple data types
null-data [0]
boolean [3] boolean TRUE or FALSE
bit-string [4] An ordered sequence of boolean values
double-long [5] Integer32 -2 147 483 648…
2 147 483 647
double-long- [6] Unsigned32 0…4 294 967 295
unsigned
[7] Tag of the “floating-point” type in IEC 61334-4-41:1996, not usable in
DLMS/COSEM. See tags [23] and [24]
octet-string [9] An ordered sequence of octets (8 bit bytes)
visible-string [10] An ordered sequence of ASCII characters
[11] Tag of the “time” type in IEC 61334-4-41:1996, not usable in
DLMS/COSEM. See tag [27]
utf8-string [12] An ordered sequence of characters encoded as UTF-8
bcd [13] binary coded decimal
integer [15] Integer8 -128…127
long [16] Integer16 -32 768…32 767
unsigned [17] Unsigned8 0…255
long-unsigned [18] Unsigned16 0…65 535
long64 [20] Integer64 - 2 63 …2 63 -1
long64-unsigned [21] Unsigned64 0…2 64 -1
enum [22] The elements of the enumeration type are defined in the Attribute 0…255
description or Method description section of a COSEM IC specification.
float32 [23] OCTET STRING (SIZE(4)) For formatting, see
float64 [24] OCTET STRING (SIZE(8)) 4.1.6.2.
date-time b [25] OCTET STRING SIZE(12))
For formatting, see
date [26] OCTET STRING (SIZE(5))
4.1.6.1.
time [27] OCTET STRING (SIZE(4))
-- complex data types
array [1] The elements of the array are defined in the Attribute or Method
description section of a COSEM IC specification.
structure [2] The elements of the structure are defined in the Attribute or Method
description section of a COSEM IC specification.
Compact array [19] Provides an alternative, compact encoding of complex data.
-- CHOICE For some COSEM interface objects attributes, the data type may be chosen at instantiation, in the
implementation phase of the COSEM server. The server always shall send back the data type and
the value of each attribute, so that together with the logical name an unambiguous interpretation
is ensured. The list of possible data types is defined in the “Attribute description” section of a
COSEM IC specification.
a
The tags are as defined inDLMS UA 1000-2 Ed. 9, 9.5.
b
The type-description for date-time has been harmonised as date-time throughout the document.

42/573 2019-05-08 DLMS UA 1000-1 Ed. 13 DLMS User Association

© Copyright 1997-2019 DLMS User Association

You might also like