Disconnect control
Disconnect control represents a supply switch and the rules governing disconnection and reconnection. It distinguishes the physical output from the control state.
When to use it
Use it to check whether supply is disconnected and whether reconnection requires a local action.
Attributes
1. Logical name
Identifies this object instance using its six-part OBIS code. Use it to distinguish this object from other instances of the same class.
2. Output state
Shows whether the physical output is connected or disconnected.
3. Control state
Shows the control state, such as disconnected, connected or ready for reconnection.
4. Control mode (version 0)
Selects modes 0-6, defining the allowed disconnection and reconnection transitions and the roles of remote, manual and local control.
4. Control mode (version 1)
Selects modes 0-7, defining the allowed disconnection and reconnection transitions. Mode 7 permits local or remote reconnection from ready for reconnection to connected, as well as manual reconnection.
Versions
Versions 0 and 1 have the same attribute indexes. Version 1 extends the available control modes; interpret the mode value according to the object version.
Actions
1. Remote disconnect
Remote disconnect.
2. Remote reconnect
Remote reconnect.
Disconnect Control /Control Mode in Python
Hi Mikko,
is there an example how to read and write the control mode using python?
Many Thanks
Frank
Disconnect Control /Control Mode in Python
Hi,
You can read it in the normal way. Create Disconnect Control object and read attribute index #4.
BR,
Mikko
Hi Mikko,
Hi Mikko,
reading is working, thank you!.
I am having problems with writing. I dont know where to put the value to be written.
My code:
rele = GXDLMSDisconnectControl ("0.0.96.3.10.255");
#####Read#####
lector.read(rele, 4)
print(rele.controlMode)
#####Write######
lector.write(rele, 4)
Many Thnaks
Frank
Hi,
Hi,
You need to update value for the Disconnect control object.
rele.controlMode = YOUR_VALUE
lector.write(rele, 4)
Make sure that you have enough access rights to write the objects.
BR,
Mikko
Hello! I also need to change…
Hello! I also need to change disconnect control mode, but i don't understand what is lector? What is this?
it is working now
it is working now
Many Thanks
Frank
Change Control Mode
Hi Kurmi ji,
below is my code and i want to update the Control Mode to Mode6 how can I. pls guide me!!!
def Re_Connect(self):
dc=GXDLMSDisconnectControl("0.0.96.3.10.255")
data=dc.remoteDisconnect(self.client)
print("Load Relay Reconnect")
reply = GXReplyData()
self.readDLMSPacket(data, reply)
time.sleep(10)
dc.getValues()
time.sleep(10)
dc.setValue()
time.sleep(10)
data=dc.remoteDisconnect(self.client)
print("Load Relay Reconnect")
reply = GXReplyData()
self.readDLMSPacket(data, reply)
time.sleep(10)
dc.getValues()
time.sleep(10)
data=dc.remoteReconnect(self.client)
print("Load Relay Reconnect")
reply = GXReplyData()
self.readDLMSPacket(data, reply)
dc.getValues()
self.writeTrace(dc)
print(dc)