Hello! I don't understand how to write to object. I tried to change value of hardware relay blocking switch (0.0.96.4.3.255). My goal was to turn off load relay blocker. There are code lines:
data = GXDLMSData("0.0.96.4.3.255")
data.setDataType(2, DataType.UINT8)
data.value = GXInt8(2)
reader.write(data, 2)
But nothing happens. Maybe it's not possible? Or I made something wrong?
Forums
Hi, If you want to use a…
Hi,
If you want to use a relay, you need to use a disconnect control for that.
Something like this:
d = GXDLMSDisconnectControl("YOUR_OBIS_CODE")
#Disconnect
self.readDataBlock(d.remoteDisconnect(self.client), reply)
#Reconnect
self.readDataBlock(d.remoteReconnect(self.client), reply)
BR,
Mikko
I meant another thing. Load…
I meant another thing. Load relay blocker isn't the same as disconnect control. It has different obis (0.0.96.4.3.255) and 3 states:
0 - relay is controlled by meter according to specified algorithms;
1 - relay is always open and there is no load;
2 - relay is always closed and load isn't interrupted.
In cases 1 and 2 meter can't controll relay. So my goal was to try to change it from code. Is it possible?
Hi, If your meter supports…
Hi,
If your meter supports it, it's possible. You can try that easily with GXDLMSDirector. If you can modify the value, try to change it and then write it to the meter.
BR,
Mikko
Thanks for responce! And…
Thanks for responce! And does it possible from code not using GXDLMSDirector?
Hi, Yes, it's possible…
Hi,
Yes, it's possible. Check my previous post. It will do what you want to do.
https://www.gurux.fi/comment/26873#comment-26873
BR,
Mikko