OPC-UA Monitor Example
An example using OPC-UA monitor.
[{"id":"4d24eae5.3b9b24","type":"tab","label":"METHOD TESTS","disabled":false,"info":""},{"id":"cd011dd0.e86e","type":"OpcUa-Endpoint","endpoint":"opc.tcp://H7Q8Q13.mshome.net:53530/OPCUA/SimulationServer","secpol":"None","secmode":"None","login":false},{"id":"9b199c7f.82f47","type":"OpcUa-Method","z":"4d24eae5.3b9b24","endpoint":"cd011dd0.e86e","objectId":"ns=6;s=MyDevice","methodId":"ns=6;s=MyMethod","name":"Method node with sin","inputArguments":[],"arg0name":"Operator","arg0type":"String","arg0typeid":"","arg0value":"sin","arg1name":"Value","arg1type":"Double","arg1typeid":"","arg1value":"3.3","arg2name":"","arg2type":"","arg2typeid":"","arg2value":"","out0name":"","out0type":"","out0typeid":"","out0value":"","x":720,"y":120,"wires":[["aad9fc2a.a94b4"]]},{"id":"2337d4d6.fd29dc","type":"inject","z":"4d24eae5.3b9b24","name":"Call sin method","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"Test1","payloadType":"str","x":240,"y":120,"wires":[["9b199c7f.82f47"]]},{"id":"aad9fc2a.a94b4","type":"debug","z":"4d24eae5.3b9b24","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1030,"y":120,"wires":[]},{"id":"892ea475.154008","type":"function","z":"4d24eae5.3b9b24","name":"pow","func":"msg.objectId=\"ns=6;s=MyDevice\";\nmsg.methodId=\"ns=6;s=MyMethod\";\nmsg.inputArguments=[{dataType: \"String\", value:\"pow\"}, {dataType:\"Double\", value: 3}];\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":220,"wires":[["9b199c7f.82f47"]]},{"id":"4d72774f.c4c9a8","type":"inject","z":"4d24eae5.3b9b24","name":"Call pow method","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"Test2","payloadType":"str","x":240,"y":220,"wires":[["892ea475.154008"]]},{"id":"b55d1c05.9588c","type":"comment","z":"4d24eae5.3b9b24","name":"Use method node with node parameters (sin)","info":"","x":790,"y":60,"wires":[]},{"id":"80ce9863.0c99f8","type":"comment","z":"4d24eae5.3b9b24","name":"Call method by injecting message","info":"","x":270,"y":300,"wires":[]},{"id":"ffab276f4ead390f","type":"OpcUa-Client","z":"4d24eae5.3b9b24","endpoint":"cd011dd0.e86e","action":"method","deadbandtype":"a","deadbandvalue":1,"time":10,"timeUnit":"s","certificate":"n","localfile":"","localkeyfile":"","securitymode":"None","securitypolicy":"None","folderName4PKI":"","useTransport":false,"maxChunkCount":"","maxMessageSize":"","receiveBufferSize":"","sendBufferSize":"","name":"Client node: action method pow","x":750,"y":340,"wires":[["ce7a315c9c57b44b"]]},{"id":"ce7a315c9c57b44b","type":"debug","z":"4d24eae5.3b9b24","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1030,"y":340,"wires":[]},{"id":"e940777096010ac6","type":"function","z":"4d24eae5.3b9b24","name":"pow","func":"msg.objectId=\"ns=6;s=MyDevice\";\nmsg.methodId=\"ns=6;s=MyMethod\";\nmsg.inputArguments=[{dataType: \"String\", value:\"pow\"}, {dataType:\"Double\", value: 3}];\n\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":340,"wires":[["ffab276f4ead390f"]]},{"id":"280cf45cbe92d8e2","type":"inject","z":"4d24eae5.3b9b24","name":"Call client node method action","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"Action method","payloadType":"str","x":280,"y":340,"wires":[["e940777096010ac6"]]},{"id":"ef9238ddd831105a","type":"inject","z":"4d24eae5.3b9b24","name":"Method parameters","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"objectId","v":"ns=6;s=MyDevice","vt":"str"},{"p":"methodId","v":"ns=6;s=MyMethod","vt":"str"},{"p":"inputArguments[0]","v":"{\"dataType\":\"String\",\"value\":\"sin\"}","vt":"json"},{"p":"inputArguments[1]","v":"{\"dataType\":\"Double\",\"value\":3.3}","vt":"json"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":250,"y":480,"wires":[["09c84208ddbab717"]]},{"id":"09c84208ddbab717","type":"OpcUa-Method","z":"4d24eae5.3b9b24","endpoint":"cd011dd0.e86e","objectId":"","methodId":"","name":"Method node with msg sin","inputArguments":[],"arg0name":"","arg0type":"","arg0typeid":"","arg0value":"","arg1name":"","arg1type":"","arg1typeid":"","arg1value":"","arg2name":"","arg2type":"","arg2typeid":"","arg2value":"","out0name":"","out0type":"","out0typeid":"","out0value":"","x":730,"y":480,"wires":[["8581205f1ec28148"]]},{"id":"8581205f1ec28148","type":"debug","z":"4d24eae5.3b9b24","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1030,"y":480,"wires":[]},{"id":"d0e4224be72be436","type":"comment","z":"4d24eae5.3b9b24","name":"Call method by injecting parameters","info":"","x":280,"y":420,"wires":[]},{"id":"b90f73d0463a0b3d","type":"comment","z":"4d24eae5.3b9b24","name":"Call method by injecting method parameters","info":"","x":310,"y":180,"wires":[]}]