Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Scaler

Scaler

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By hejmaniok , 5 December, 2017
Forums
Gurux DLMS for Java

Hello,

I try to read ReactivePower from Load profile. ReactivePower has a scaler of 0.1 and from the blue book I can see that the unit is var-hour. I was wondering if the value that I read from the meter is already multiplied by scaler or do I have to multiply it by 0.1 to get to var-hour unit?

Thanks

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

Scaler

Hi,

If you read unit and scaler first (attribute index 3), it's done automatically.

BR,

Mikko

hejmaniok

8 years 7 months ago

Thanks for the reply. This

Thanks for the reply. This makes sense.

I have one more question regarding scaler and unit. I am trying to save those to database and when I do this:

if (it.getObjectType() == ObjectType.REGISTER || it.getObjectType() == ObjectType.EXTENDED_REGISTER) {
GXDLMSRegister reg = (GXDLMSRegister) it;
object.put("scaler", reg.getScaler());
object.put("unit", reg.getUnit());
}

Scaler is read fine but Unit always becomes `NoUnit`. Do you know what could be possibly wrong here?

As a note, when I read REGISTRIES using Gurux Director unit is displayed correctly.

Thanks

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

Scaler

Hi,

You need to read it first.
client.Read(it, 3);

BR,
Mikko

hejmaniok

8 years 7 months ago

Yes, and for that I am using

Yes, and for that I am using `readScalerAndUnits()` method from the Gurux official example.

This should be enough right?

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

Scaler

Hi,

Can you compare same OBIS codes using GXDMSDirector and Java. They should be same.

BR,

Mikko

hejmaniok

8 years 7 months ago

Hi,

Hi,

If I use example client and use readRowsByRange is scaler automatically applied?

Thanks

hejmaniok

8 years 7 months ago

Hi,

Hi,

If I use example client found on your GitHub and use readRowsByRange is scaler automatically applied?

Thanks

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

scaler

Hi,

Yes, it's scaler s used automatically if the target is Register and scaler is read.

BR,

Mikko

hejmaniok

8 years 7 months ago

In my case I read

In my case I read ProfileGeneric and I don't know if the values I receive are already multiplied by scalers.

hejmaniok

8 years 7 months ago

Ok I figured this one out.

Ok I figured this one out. When I read ProfileGeneric only using readRowsByRange, scalers are not automatically applied.

Thanks for your help Mikko

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

scaler

Hi,

If the register is found from association view and it's read scaler is used automatically also with Profile Generics.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200
  • Mon, 06/15/2026 - 08:52
    gurux.dlms.c 9.0.2606.1501

New forum topics

  • Service not known error on gprs communication
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • @Hmd- several '.
  • Dawsontot
  • Jerrylam
  • qvlLdJweKzGUYaSOVS
  • LindanEt
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin