node-red-contrib-iiot-opcua - Server Method Caller

v1.2.x Example:

  • Injects
  • Method Caller
  • Response

You need an OPC UA server to drag&drop on the tab if there is none on other Node-RED tabs.

[{"id":"9f1dab9d.97fac","type":"tab","label":"IIoT OPC UA Method Call","disabled":false,"info":""},{"id":"16840277.94e98e","type":"debug","z":"9f1dab9d.97fac","name":"","active":true,"console":"false","complete":"true","x":790,"y":100,"wires":[]},{"id":"1dacbf1b.0b3f01","type":"OPCUA-IIoT-Method-Caller","z":"9f1dab9d.97fac","connector":"82f5412f.6564f8","objectId":"ns=4;i=1234","methodId":"ns=4;i=12345","value":"","name":"","inputArguments":[{"name":"barks","dataType":"UInt32","value":"3"},{"name":"volume","dataType":"UInt32","value":"6"}],"x":620,"y":140,"wires":[["16840277.94e98e","23c467db.f4287"]]},{"id":"23c467db.f4287","type":"OPCUA-IIoT-Response","z":"9f1dab9d.97fac","name":"","showStatusActivities":false,"showErrors":false,"x":800,"y":140,"wires":[["83f9aeba.fb88a"]]},{"id":"83f9aeba.fb88a","type":"debug","z":"9f1dab9d.97fac","name":"","active":false,"console":"false","complete":"true","x":940,"y":140,"wires":[]},{"id":"7b860fbc.baba08","type":"OPCUA-IIoT-Inject","z":"9f1dab9d.97fac","injectType":"inject","payload":"","payloadType":"date","topic":"","repeat":"","crontab":"","once":false,"startDelay":"","name":"","addressSpaceItems":[],"x":140,"y":140,"wires":[["1dacbf1b.0b3f01"]]},{"id":"5c0eb880.ae3358","type":"inject","z":"9f1dab9d.97fac","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":140,"y":200,"wires":[["e3999294.0851b"]]},{"id":"e3999294.0851b","type":"function","z":"9f1dab9d.97fac","name":"bark six time with volume twelve","func":"msg.payload = {\n    objectId: 'ns=4;i=1234',\n    methodId: 'ns=4;i=12345',\n    inputArguments: [\n        {name: 'barks', dataType:'UInt32', value:'6'},\n        {name: 'volume', dataType:'UInt32', value:'12'}\n    ],\n    methodType: 'basic'\n}\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":200,"wires":[["1dacbf1b.0b3f01"]]},{"id":"94a2cfac.db9368","type":"comment","z":"9f1dab9d.97fac","name":"Information","info":"If you have none OPC UA server on other tabs, \nplease drag&drop an OPC UA Server \nfrom the package nodes on this tab!","x":130,"y":80,"wires":[]},{"id":"82f5412f.6564f8","type":"OPCUA-IIoT-Connector","z":"","endpoint":"opc.tcp://localhost:55388/UA/NodeREDIIOTServer","keepSessionAlive":true,"loginEnabled":false,"securityPolicy":"None","securityMode":"NONE","name":"Method Server","showStatusActivities":false,"showErrors":false}]

Flow Info

Created 7 years, 4 months ago
Updated 6 years, 10 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x1)
  • debug (x2)
  • function (x1)
  • inject (x1)
Other

Tags

  • opcua
  • opc
  • ua
  • information
  • model
  • rami4.0
  • iot
  • iiot
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option