Skip to content
Snippets Groups Projects
Commit 1881a9ad authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Add RCU_update function

parent c061b749
No related branches found
No related tags found
1 merge request!2Refactor for Paulus' pypcc2 version with arrays
......@@ -162,7 +162,7 @@ class RCUSCC(Device):
RCU_version_R = attribute(
dtype=(('DevUChar',),),
max_dim_x=32, max_dim_y=8,
max_dim_x=32, max_dim_y=10,
)
RCU_monitor_rate_RW = attribute(
......@@ -239,6 +239,8 @@ class RCUSCC(Device):
self.function_mapping["ADC_on"] = self.get_pcc_node("ADC_on")
self.function_mapping["RCU_update"] = self.get_pcc_node("RCU_update")
self.debug_stream("Mapping OPC-UA MP/CP to attributes done.")
......@@ -317,6 +319,7 @@ class RCUSCC(Device):
self.function_mapping["RCU_on"] = {}
self.function_mapping["RCU_off"] = {}
self.function_mapping["ADC_on"] = {}
self.function_mapping["RCU_update"] = {}
self.client = opcua.Client("opc.tcp://{}:{}/".format(self.OPC_Server_Name, self.OPC_Server_Port), self.OPC_Time_Out) # timeout in seconds
......@@ -643,6 +646,16 @@ class RCUSCC(Device):
"""
self.function_mapping["ADC_on"]()
@command(
)
@DebugIt()
def RCU_update(self):
"""
:return:None
"""
self.function_mapping["RCU_update"]()
# ----------
# Run server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment