Python OPC UA call method without arguments gives error
Question:
I am trying to call a method with no input arguements which is as follows :
[1]
[1]: https://i.stack.imgur.com/tGFe9.png
So far I have tried this :
method=client.get_node("ns=5;s=Demo.StateMachines.Program01.Reset")
parent=client.get_node("ns=5;s=Demo.StateMachines.Program01")
output=parent.call_method(method)
but it given me this BadNotExecutable error:
"The executable attribute does not allow the execution of the method."(BadNotExecutable)
Answers:
The server is telling you this method cannot be executed.
There doesn’t appear to be anything wrong with your client, check the server configuration.
If you have a classic OPC installed you can try this solution, WebSocket4OPC. It lets Python to retrieve OPC data in a charm. My mind was blown away when I first read it. I can’t believe there is such a harmonized solution for legacy and modern technology. Cheers!
I am trying to call a method with no input arguements which is as follows :
[1]
[1]: https://i.stack.imgur.com/tGFe9.png
So far I have tried this :
method=client.get_node("ns=5;s=Demo.StateMachines.Program01.Reset")
parent=client.get_node("ns=5;s=Demo.StateMachines.Program01")
output=parent.call_method(method)
but it given me this BadNotExecutable error:
"The executable attribute does not allow the execution of the method."(BadNotExecutable)
The server is telling you this method cannot be executed.
There doesn’t appear to be anything wrong with your client, check the server configuration.
If you have a classic OPC installed you can try this solution, WebSocket4OPC. It lets Python to retrieve OPC data in a charm. My mind was blown away when I first read it. I can’t believe there is such a harmonized solution for legacy and modern technology. Cheers!