[User Manual] Introduce Pub/Sub

Questions regarding the use of the OpcUa Utility.

Moderator: OpcUa Support

Post Reply
OpcUa Support
Posts: 39
Joined: Thu Nov 17, 2022 7:15 am

[User Manual] Introduce Pub/Sub

Post by OpcUa Support »

In this page, you can configure the PubSub of AIC OpcUa Server.
PubSub01.png
PubSub01.png (48.92 KiB) Viewed 2313 times

1. PubSub Setting: Change the configure file and server address
2. Default Parameter: Setup parameters

Example: Set up 2 OpcUa Server in 2 computers with the same local network.
PubSub02.png
PubSub02.png (37.12 KiB) Viewed 2313 times
PubSub03.png
PubSub03.png (37.79 KiB) Viewed 2313 times

Step 1: Open the program "UaExpert" and connect to 2 OpcUa servers.
PubSub04.png
PubSub04.png (41.26 KiB) Viewed 2313 times
Notice!: The operator should be "Configure Admin" to set Pub/Sub
PubSub05.png
PubSub05.png (52.92 KiB) Viewed 2313 times

Step 2: “Document” -> ”Add…”, Choose “PubSub Config View” document and press button “Add”
PubSub06.png
PubSub06.png (34.33 KiB) Viewed 2313 times

Step 3: Double click “Add UDP Multicast Group” and add a default group “opc.udp://239.0.0.1:4840”
PubSub07.png
PubSub07.png (33.57 KiB) Viewed 2313 times

Step 4: Double click “Add UA Application” to choose “AIC OPC UA 1” (The first OpcUa server) and press button “OK”
PubSub08.png
PubSub08.png (43.3 KiB) Viewed 2313 times

Step 5: Double click “Add DataSet Writer” to create a published dataset “Writer_1”
PubSub09.png
PubSub09.png (51.83 KiB) Viewed 2313 times

Step 6: Drag tags from “Address Space” and drop to Publish dataset
PubSub10.png
PubSub10.png (66.52 KiB) Viewed 2313 times

Step 7: Press button “OK” to apply the dataset setting
PubSub11.png
PubSub11.png (39.68 KiB) Viewed 2313 times

Step 8: Double click “Add UA Application” to choose “AIC OPC UA 2” (The first OpcUa server) and press button “OK”
PubSub12.png
PubSub12.png (51.62 KiB) Viewed 2313 times

Step 9: Double click “Add DataSet Reader”, choose “AIC OPC UA 1 / Writer_1” to create a subscribed dataset
PubSub13.png
PubSub13.png (80.71 KiB) Viewed 2313 times

Step 10: Drag tags and drop to the rows of subscribed tags, and press button “OK”
PubSub14.png
PubSub14.png (93.89 KiB) Viewed 2313 times

Step 11: In folder “Configuration”, press download button and press “OK” to download the configuration to 2 servers
PubSub15.png
PubSub15.png (40.85 KiB) Viewed 2313 times

Verification
Monitor data
Int_0001~Int_0010 from AIC OPC UA 1 (called Zone1)
and
Int_0011~Int_0020 from AIC OPC UA 2 (called Zone2)
When data of Zone 1 changes, the data from Zone2 change, too
PubSub16.png
PubSub16.png (66.36 KiB) Viewed 2313 times
Best Regards,
OpcUa Support Team
Post Reply