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. Can't Change/write MonitoredValue In Limiter

Can't change/write MonitoredValue in Limiter

By alexcd , 24 April, 2024
Forums
Gurux.DLMS

Hello, I'm using a Python library and can't change the monitored value in the Limiter object. When I use Director everything works as expected, maybe I'm doing something wrong?

limiter = GXDLMSLimiter('0.0.17.0.0.255')
reg_obj = GXDLMSRegister('1.0.31.7.0.255')
limiter.monitoredValue= reg_obj
limiter.monitoredAttributeIndex = 2
self.reader.write(limiter,2)

Thanks for the answer.

Profile picture for user Kurumi

Kurumi

2 years 3 months ago

Hi, Are you getting an error…

Hi,

Are you getting an error from the meter? Have you changed the authentication level?

BR,
Mikko

alexcd

2 years 3 months ago

I read on the forum that the…

I read on the forum that the object should be taken from the association and updated my code. But the result remained unchanged, I add the code and log.

limiter = self.reader.client.objects.findByLN(0, "0.0.17.0.0.255")
value = self.reader.client.objects.findByLN(3, "1.0.31.7.0.255")
limiter.monitoredValue = value
limiter.monitoredAttributeIndex = 2

print("==========read===========")
read_mon = self.reader.read(limiter, 2)
print(read_mon)
print("==========write===========")
self.reader.write(limiter, 2)
print("==========read===========")
read_mon = self.reader.read(limiter, 2)
print(read_mon)

From the log

==========read===========
TX: 16:39:08 7E A0 1A 02 21 05 FE 7D 8F E6 E6 00 C0 01 C1 00 47 00 00 11 00 00 FF 02 00 9B 28 7E
RX: 16:39:08 7E A0 20 05 02 21 1E 27 0F E6 E7 00 C4 01 C1 00 02 03 12 00 03 09 06 01 00 03 07 00 FF 0F 02 B0 07 7E
1.0.3.7.0.255 Ch. 0 Sum Li Reactive power+ (QI+QII) Inst. value
==========write===========
TX: 16:39:08 7E A0 29 02 21 05 10 10 48 E6 E6 00 C1 01 C1 00 47 00 00 11 00 00 FF 02 00 02 03 10 00 03 09 06 01 00 03 07 00 FF 0F 02 FD 21 7E
RX: 16:39:08 7E A0 11 05 02 21 30 CE 18 E6 E7 00 C5 01 C1 0C 3C 43 7E
==========read===========
TX: 16:39:08 7E A0 1A 02 21 05 32 1D 83 E6 E6 00 C0 01 C1 00 47 00 00 11 00 00 FF 02 00 9B 28 7E
RX: 16:39:08 7E A0 20 05 02 21 52 4F 87 E6 E7 00 C4 01 C1 00 02 03 12 00 03 09 06 01 00 03 07 00 FF 0F 02 B0 07 7E
1.0.3.7.0.255 Ch. 0 Sum Li Reactive power+ (QI+QII) Inst. value
DisconnectRequest

Most likely the data is not being transferred correctly

Profile picture for user Kurumi

Kurumi

2 years 2 months ago

Hi, Class id is changed from…

Hi,

Class id is changed from Int16 to UInt16.
This is fixed for version 1.0.151.

https://gurux.fi/release/guruxdlmspython-10151

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • 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

New forum topics

  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin