Changes

m
no edit summary
Line 33: Line 33:     
# In the OPC UA Servers block, insert the name of the server
 
# In the OPC UA Servers block, insert the name of the server
# Click Add to create new instance
+
# Click Add to create new instance[[File:OPC UA Configuration example adding server v1.png|1067x1067px]]
 
#Toggle Enable option to on
 
#Toggle Enable option to on
 
#Insert the URL of the OPC UA Server
 
#Insert the URL of the OPC UA Server
 +
#Add new server node[[File:OPC UA Configuration example adding server node v1.png|1067x1067px]]
 
#Enter the ID Namespace of the node
 
#Enter the ID Namespace of the node
 
#Select ID type as String
 
#Select ID type as String
 
#Enter ID of the node
 
#Enter ID of the node
#Save & Apply settings
+
#Save & Apply settings[[File:OPC UA Configuration example configuring server node v1.png|1060x1060px]]
 
#Optionally, add another node analogously
 
#Optionally, add another node analogously
 +
 +
 +
[[File:OPC UA Configuration example adding server node second v1.png|1106x1106px]]
    
===Defining Value Groups and Values===
 
===Defining Value Groups and Values===
Line 46: Line 50:     
#Insert the name of the Value Group
 
#Insert the name of the Value Group
#Press Add to add new value group
+
#Press Add to add new value group[[File:OPC UA Configuration example adding value group v1.png|1056x1056px]]
#Enable the group and leave the rest of the settings as default
+
#Enable the group and leave the rest of the settings as default[[File:OPC UA Configuration example configuring value group v1.png|901x901px]]
#Inside the OPC UA Group Values, add new instance with your preferred name
+
#Inside the OPC UA Group Values, add new instance with your preferred name[[File:OPC UA Configuration example adding value v1.png|1053x1053px]]
 
#Enable the instance
 
#Enable the instance
 
#Assign a server node from which the data will be retrieved
 
#Assign a server node from which the data will be retrieved
#Save and apply settings
+
#Save and apply settings[[File:OPC UA Configuration example configuring value v1.png|1049x1049px]]
 
#Optionally configure the second value
 
#Optionally configure the second value
 +
[[File:OPC UA Configuration example configuring value second v1.png|1091x1091px]]
    
===Testing Data Retrieval===
 
===Testing Data Retrieval===
Line 59: Line 64:  
Once we have our configuration finished, we can run some integrated tests in order to make sure we are able to retrieve the data from OPC UA server.
 
Once we have our configuration finished, we can run some integrated tests in order to make sure we are able to retrieve the data from OPC UA server.
 
In order to do so, we can press the "Test" button under OPC UA Value Groups:
 
In order to do so, we can press the "Test" button under OPC UA Value Groups:
 +
 +
[[File:OPC UA Configuration example test button v1.png|1092x1092px]]
    
The output should show requested data like so:
 
The output should show requested data like so:
 +
 +
 +
[[File:OPC UA Configuration example test response v1.png|670x670px]]
    
===Sending Data to a Server===
 
===Sending Data to a Server===
Line 68: Line 78:  
For testing purposes, we will listen on defined port locally using Hercules software.
 
For testing purposes, we will listen on defined port locally using Hercules software.
   −
In order to do so navigate to Services → Data to Server and create a new data sender:
+
In order to do so navigate to '''Services → Data to Server''' and create a new data sender:
 
#Enable the instance
 
#Enable the instance
 
#Select Data source: OPC UA
 
#Select Data source: OPC UA
Line 74: Line 84:  
#Adjust the JSON format to include the data
 
#Adjust the JSON format to include the data
 
#Define HTTP server IP
 
#Define HTTP server IP
 +
[[File:OPC UA Configuration example DatatoServer config v1.png|751x751px]]
    
After saving these settings, we can start listening on "555" port using Hercules and see the data flow:
 
After saving these settings, we can start listening on "555" port using Hercules and see the data flow:

Navigation menu