Tuesday, April 3, 2012

DLMS Data type

DLMS response packet may contain the data, which may be any one of the
DLMS data type.




#define DT_NULL_DATA 0
#define DT_ARRAY 1
#define DT_STRUCTURE 2
#define DT_BOOLEAN 3
#define DT_BIT_STRING 4
#define DT_DOUBLE_LONG 5
#define DT_DOUBLE_LONG_UNSIGNED  6
#define DT_FLOATING_POINT 7
#define DT_OCTET_STRING 9
#define DT_VISIBLE_STRING         10
#define DT_BCD 13
#define DT_INTEGER 15
#define DT_LONG 16
#define DT_UNSIGNED 17
#define DT_LONG_UNSIGNED 18
#define DT_LONG64 20
#define DT_UNSIGNED_LONG64 21
#define DT_ENUM 22
#define DT_REAL32 23
#define DT_REAL64 24
#define DT_DATETIME 25
#define DT_DATE 26
#define DT_TIME 27
#define DT_OBJECT_IDENTIFIER         6
#define MIN_LS_DATA 45


For example when the data is of type "DT_DOUBLE_LONG_UNSIGNED" then the data is 4 byte value.

No comments:

Post a Comment