need some help using opcua method call with a siemens controller does anyone know the appropriate way to call these methods example below,i get back results but they are not correct
server = "M954"
methodobjectid= "[M954]nsu=SinumerikVarProvider;s=/Methods"
methodnodeid= "[M954]nsu=SinumerikVarProvider;s=/Methods/ReadVar"
opcnodepath = "[M954]nsu=SinumerikVarProvider;s=/Channel/Parameter/R[u1,820]"
tried this syntax as well
server = "M954"
methodobjectid = "ns=2;s=/Methods"
methodnodeid= "ns=2;s=/Methods/ReadVar"
opcnodepath= "ns=2;s=/Channel/Parameter/R[u1,820]"
result = system.opcua.callMethod(server,
methodobjectid,
methodnodeid,
[opcnodepath])
result of executing the above script
((2147483648L, u'Bad', u'Bad; unspecified.'), [(0L, u'Good', u'Good; unspecified.')], [])