I tried using system.opcua.callMethod like this:


But I get an error in the gateway, I probably entere the wrong parameters…
I got them from UA Expert:


I am not too shure of my inputs: [Number,Active]. I tried [2,3], null and [“Number”,“Active”] but to no avail.

Thank in advance for the help.

According to UaExpert that method has no input arguments at all.

How do I put this in the method as a parameter? I tried this:

	        "Demag 459",

but it returns the folowing error: image

Call it with an empty list ([]).

Any values for corresponding Output Arguments will be in the return value of callMethod. See system.opcua.callMethod - Ignition User Manual 8.1 - Ignition Documentation

1 Like

Thank you for your reactivity, it worked perfectly.

Btw, a null object in Python is None, not null, hence the error you were getting saying it can’t find a variable called null.


Sorry to bother you again but I am not sure how to read my values now that I have them…

When alarms are runing the results do change but they are not readable integers or string.

I don’t really know anything about the method you’re calling so I can’t say for sure, but it looks like the result value (res[2]) is a list containing possibly more lists. You’ll have to index into them and start looking for the values or get some documentation on the method you’re calling.