node-red-contrib-iiot-opcua - Write to server

v1.0.x Example:

  • Server
  • Write
  • Response
[{"id":"8c696cc7.e4b63","type":"tab","label":"IoT/IIoT OPC UA","disabled":false,"info":""},{"id":"52bdee3d.cdef4","type":"OPCUA-IIoT-Write","z":"8c696cc7.e4b63","connector":"a91b3c80.c3231","name":"","showStatusActivities":false,"showErrors":false,"x":450,"y":140,"wires":[["38d62822.af42f8","65b55b27.7cd714","14e24c56.332744","c33b6e3d.e2c6e"]]},{"id":"f80306a4.052368","type":"OPCUA-IIoT-Inject","z":"8c696cc7.e4b63","injectType":"write","payload":"","payloadType":"date","topic":"","repeat":"1","crontab":"","once":true,"startDelay":"","name":"TestReadWrite","addressSpaceItems":[{"name":"TestReadWrite","nodeId":"ns=4;s=TestReadWrite","datatypeName":"Double"}],"x":140,"y":140,"wires":[["e172bb93.1ab168"]]},{"id":"c33b6e3d.e2c6e","type":"debug","z":"8c696cc7.e4b63","name":"","active":false,"console":"false","complete":"false","x":630,"y":240,"wires":[]},{"id":"38d62822.af42f8","type":"debug","z":"8c696cc7.e4b63","name":"","active":false,"console":"false","complete":"diagnostics","x":640,"y":200,"wires":[]},{"id":"65b55b27.7cd714","type":"debug","z":"8c696cc7.e4b63","name":"","active":false,"console":"false","complete":"true","x":610,"y":280,"wires":[]},{"id":"3621061e.72772a","type":"debug","z":"8c696cc7.e4b63","name":"","active":false,"console":"false","complete":"true","x":450,"y":200,"wires":[]},{"id":"14e24c56.332744","type":"OPCUA-IIoT-Response","z":"8c696cc7.e4b63","name":"","showStatusActivities":false,"showErrors":false,"x":620,"y":140,"wires":[["a98b1d5d.ab1cd"]]},{"id":"a98b1d5d.ab1cd","type":"debug","z":"8c696cc7.e4b63","name":"","active":false,"console":"false","complete":"false","x":810,"y":140,"wires":[]},{"id":"c63cc071.8dadb","type":"OPCUA-IIoT-Server","z":"8c696cc7.e4b63","port":"55388","endpoint":"","acceptExternalCommands":true,"maxAllowedSessionNumber":"","maxConnectionsPerEndpoint":"","maxAllowedSubscriptionNumber":"","alternateHostname":"","name":"","showStatusActivities":false,"showErrors":false,"allowAnonymous":true,"isAuditing":false,"users":[{"name":"test","password":"test"},{"name":"peter","password":"peter"}],"x":270,"y":60,"wires":[[],[]]},{"id":"e172bb93.1ab168","type":"function","z":"8c696cc7.e4b63","name":"Random","func":"var min = 1000 * -1;\nmsg.valuesToWrite = [Math.random() * (80000 - min) + min];\nreturn msg;","outputs":1,"noerr":0,"x":300,"y":140,"wires":[["52bdee3d.cdef4","3621061e.72772a"]]},{"id":"a91b3c80.c3231","type":"OPCUA-IIoT-Connector","z":"8c696cc7.e4b63","endpoint":"opc.tcp://localhost:55388/","keepSessionAlive":false,"loginEnabled":false,"securityPolicy":"None","securityMode":"NONE","name":"SERVER ONE","showStatusActivities":false,"showErrors":false}]

Flow Info

Created 7 years, 4 months ago
Updated 7 years, 1 month ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x5)
  • function (x1)
Other

Tags

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