By Shehryar, 17 April, 2017 Forums Gurux.DLMS Hi Team Gurux, I'm trying to read "Total Active Energy" by using this code: GXDLMSObject obj = new GXDLMSObject(); obj.LogicalName = "1.0.1.8.0.255"; Object x = Read(obj, 2); What my code is sending: 00 01 00 11 00 01 00 0D C0 01 C1 00 00 01 00 01 08 00 FF 02 00 What I need to send: 00 01 00 11 00 01 00 0D C0 01 81 00 03 01 00 01 08 00 FF 02 00 How can I set Priority and classID. Why I'm not able to read "Total Active Energy" ? Thanks, Shehryar khan, Hi Shehryan Hi Shehryan I am no expert however can you try the below GXDLMSRegister obj = new GXDLMSRegister("1.0.1.8.0.255"); Read(obj, 2); Regards Keenan George Thanks, problem solved. Now I'm getting right response in bytes, how can I convert these bytes data into values ? Please send me your output. Please send me your output. BR Keenan Value of 1.0.1.8.0.255 00 01 00 01 00 11 00 09 C4 01 81 00 06 00 90 10 4C Hi Hi if c# please try this to write to screen. Object Total_Active_Import = Read(obj, 2); Console.WriteLine("ImportActiveAggregate: " + Total_Active_Import); BR Reading Register Hi, Keenangeorge is right. You are reading register and do like he suggest. You can also get read value like this: GXDLMSRegister obj = new GXDLMSRegister("1.0.1.8.0.255"); Read(obj, 2); Console.WriteLine("ImportActiveAggregate: " + obj.Value); Value is updated because you are reading attribute 2. That is register value. If you read attribute 3 (scaler and unit) first value is multiply by scaler. BR, Mikko Log in or register to post comments
Hi Shehryan Hi Shehryan I am no expert however can you try the below GXDLMSRegister obj = new GXDLMSRegister("1.0.1.8.0.255"); Read(obj, 2); Regards Keenan George
Thanks, problem solved. Now I'm getting right response in bytes, how can I convert these bytes data into values ?
Hi Hi if c# please try this to write to screen. Object Total_Active_Import = Read(obj, 2); Console.WriteLine("ImportActiveAggregate: " + Total_Active_Import); BR
Reading Register Hi, Keenangeorge is right. You are reading register and do like he suggest. You can also get read value like this: GXDLMSRegister obj = new GXDLMSRegister("1.0.1.8.0.255"); Read(obj, 2); Console.WriteLine("ImportActiveAggregate: " + obj.Value); Value is updated because you are reading attribute 2. That is register value. If you read attribute 3 (scaler and unit) first value is multiply by scaler. BR, Mikko
Hi Shehryan
Hi Shehryan
I am no expert however can you try the below
GXDLMSRegister obj = new GXDLMSRegister("1.0.1.8.0.255");
Read(obj, 2);
Regards
Keenan George
Thanks,
problem solved.
Now I'm getting right response in bytes, how can I convert these bytes data into values ?
Please send me your output.
Please send me your output.
BR
Keenan
Value of 1.0.1.8.0.255
00 01 00 01 00 11 00 09 C4 01 81 00 06 00 90 10 4C
Hi
Hi
if c# please try this to write to screen.
Object Total_Active_Import = Read(obj, 2);
Console.WriteLine("ImportActiveAggregate: " + Total_Active_Import);
BR
Reading Register
Hi,
Keenangeorge is right. You are reading register and do like he suggest.
You can also get read value like this:
GXDLMSRegister obj = new GXDLMSRegister("1.0.1.8.0.255");
Read(obj, 2);
Console.WriteLine("ImportActiveAggregate: " + obj.Value);
Value is updated because you are reading attribute 2. That is register value.
If you read attribute 3 (scaler and unit) first value is multiply by scaler.
BR,
Mikko