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. GXDLMSLimiter

GXDLMSLimiter

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 kevin jose minj , 20 December, 2022
Forums
General discussion

what are the arguments I have to pass in this function ?
def setValue(self, settings, e):

and from where I invoke

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

setValue is reserved for internal use and you don't use it.

What do you want to do?

BR,
Mikko

kevin jose minj

3 years 5 months ago

In reply to Hi, by Kurumi

I want to set normal

I want to set normal threshold in meter using python how can I do?

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

Read the Threshold normal (Attribute index #4) from the meter.
Then modify it and make sure that the data type is the same and write it back.

If you know the data type, you don't need to read it. It's just to let you know the data type.

http://gurux.fi/Gurux.DLMS.Objects.GXDLMSLimiter

lim = GXDLMSLimiter("Logican name")
self.read(lim, 4)
#Modify limiter value.
self.write(lim, 4)

BR,
Mikko

kevin jose minj

3 years 5 months ago

In reply to Hi, by Kurumi

I tried this one it is

I tried this one it is returning access error

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

What is your authentication level? I believe that you need to change the authentication level to High.
Check also the data type. Read the value and try to write the same value back. If it succeeds, then
your data type is wrong.

BR,
Mikko

kevin jose minj

3 years 5 months ago

In reply to Hi, by Kurumi

Can you show the example to

Can you show the example to write the custom value in limiter syntactically?

Actually now I am getting this exception
raise Exception("Invalid parameter. In python value type must give.")

lim = GXDLMSLimiter('0.0.17.0.0.255')

#value = self.read(lim, 4)
# Modify limiter value.
lim.thresholdNormal= 0
value = self.write(lim, 4)

and this is my pytho code

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

You must use the correct type when writing. Something like this:

lim = GXDLMSLimiter('0.0.17.0.0.255')
lim.thresholdNormal = GXUInt32(0)
#You need to change GXUInt32 to correct data type.
value = self.write(lim, 4)

BR,
Mikko

kevin jose minj

3 years 5 months ago

What is the correct datatype

What is the correct datatype for thresholdNormal ? I used GXUInt32,GXUInt64,GXInt32,GXInt64 all are throwing exception only

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

That depends on the target threshold. You can read the data type with GXDLMSDirector when you read the threshold normal.

BR,
Mikko

kevin jose minj

3 years 5 months ago

In reply to Hi, by Kurumi

In Gurux DLMS Director it is

In Gurux DLMS Director it is showing UInt32 and I tried the GXUInt32.Is anything wrong here?

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

Are you connecting with the High authentication level?

BR,
Mikko

kevin jose minj

3 years 5 months ago

In reply to Hi, by Kurumi

yes, High wtih

yes, High wtih AuthenticationEncryption

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

Can you change it with GXDLMSDirector?

BR,
Mikko

kevin jose minj

3 years 5 months ago

In reply to Hi, by Kurumi

Default it is that only .

Default it is that only . Changing it is possible?

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

It depends on the meter. If access rights are read/write you can change it.
BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin