From 1881a9ad2e64e541f63d8625bdb9aa28a66e27a1 Mon Sep 17 00:00:00 2001 From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl> Date: Fri, 15 Jan 2021 11:20:04 +0100 Subject: [PATCH] Add RCU_update function --- RCUSCC/RCUSCC/RCUSCC.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index 754cae2e0..ad2bbad94 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -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 -- GitLab