How to: OPC UA Method
// Special trigger "_callme", indicating a call to the OPC UA method
if (context.currentTrigger == '_callme') {
// For example, let's add two numbers
var tmp = context.inputArguments['a'].value + context.inputArguments['b'].value;
context.outputArguments['result'].value = tmp;
}
// In this case, the value of the expression
// does not change
return MosUtils.doNothing;


Last updated