[Example] Use OpcUa Events Node

Questions and Answers

Moderator: IoTStudio Support

Post Reply
IoTStudio Support
Posts: 39
Joined: Wed Nov 23, 2022 9:26 am

[Example] Use OpcUa Events Node

Post by IoTStudio Support »

Use AIC OpcUa Extender Server to create a OpcUa Server.
Ex: opc.tcp://AIOTCLOUID-1003:48010
Config Alarm & Event nodes.
Use UaExpert to change node value to LL, L, H, HH zone.
Use UaExpert Event View to check Alarm events.

The below is IoT Studio Flow for try:

Code: Select all

[{"id":"243d38656b8022b3","type":"OpcUa-Client","z":"0d7ec23baaf03cf6","endpoint":"66b2bc3de338e7d2","action":"events","deadbandtype":"a","deadbandvalue":1,"time":"1","timeUnit":"s","certificate":"n","localfile":"","localkeyfile":"","securitymode":"None","securitypolicy":"None","folderName4PKI":"","name":"","x":480,"y":980,"wires":[["331bad9faa8b614b"]]},{"id":"3430dd86c7343688","type":"inject","z":"0d7ec23baaf03cf6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":150,"y":980,"wires":[["b709d1f95aba785f"]]},{"id":"b709d1f95aba785f","type":"OpcUa-Event","z":"0d7ec23baaf03cf6","root":"i=2253","activatecustomevent":false,"eventtype":"i=2041","customeventtype":"","name":"","x":300,"y":980,"wires":[["243d38656b8022b3"]]},{"id":"331bad9faa8b614b","type":"debug","z":"0d7ec23baaf03cf6","name":"debug 41","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":980,"wires":[]},{"id":"66b2bc3de338e7d2","type":"OpcUa-Endpoint","endpoint":"opc.tcp://AIOTCLOUD-1003:48010","secpol":"None","secmode":"None","none":true,"login":false,"usercert":false,"usercertificate":"","userprivatekey":""}]
Best Regards,
IoT Studio Support Team
Post Reply