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)
Asked By: Akhilesh patti

||

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.

Answered By: Kevin Herron

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!

Answered By: opcAnywhere
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.