Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "BaSyx / Documentation / Components / DataBridge / Features / Protocol Integration / OPCUA"

m (Adds username & password)
Line 3: Line 3:
  
 
== Configuration ==
 
== Configuration ==
To configure OPC UA client source in DataBridge you need to provide the '''unique id''', and the OPC UA server details like '''host''', '''port''', '''service path''' along with the '''node information''' as a query parameter. For more information on query parameters [https://camel.apache.org/components/3.20.x/milo-client-component.html#_query_parameters OPC UA Client Query Parameters]
+
To configure OPC UA client source in DataBridge you need to provide the '''unique id''', and the OPC UA server details like '''host''', '''port''', '''service path''' along with the '''node information''', and '''requested publishing interval (in milliseconds)''' as a query parameter. For more information on query parameters [https://camel.apache.org/components/3.20.x/milo-client-component.html#_query_parameters OPC UA Client Query Parameters]
  
 
=== Sample Configuration ===
 
=== Sample Configuration ===
Line 16: Line 16:
 
"username": "name",
 
"username": "name",
 
"password": "secretPassword",
 
"password": "secretPassword",
 +
                "requestedPublishingInterval": 50
 
}
 
}
 
]
 
]
 
</pre>
 
</pre>
 +
 +
'''Note:''' By default, the requestedPublishingInterval is 1000 milliseconds.
  
 
<span style=color:red>Disclaimer: Please note that only the query parameter (node) listed i.e. '''nodeInformation''' in the sample configuration is supported as of now. </span>
 
<span style=color:red>Disclaimer: Please note that only the query parameter (node) listed i.e. '''nodeInformation''' in the sample configuration is supported as of now. </span>

Revision as of 04:21, 6 June 2023

OPC UA

The OPC UA client can be integrated with DataBridge. The Milo Client component provides access to OPC UA servers using the Eclipse Milo™ implementation.

Configuration

To configure OPC UA client source in DataBridge you need to provide the unique id, and the OPC UA server details like host, port, service path along with the node information, and requested publishing interval (in milliseconds) as a query parameter. For more information on query parameters OPC UA Client Query Parameters

Sample Configuration

[
	{
		"uniqueId": "doublescalar",
		"serverUrl": "127.0.0.1",
		"serverPort": 12686,
		"pathToService": "milo",
		"nodeInformation": "ns=2;s=HelloWorld/ScalarTypes/Double",
		"username": "name",
		"password": "secretPassword",
                "requestedPublishingInterval": 50
	}
]

Note: By default, the requestedPublishingInterval is 1000 milliseconds.

Disclaimer: Please note that only the query parameter (node) listed i.e. nodeInformation in the sample configuration is supported as of now.

Similarly, you can configure multiple OPC UA client consumers inside the configuration file.

Naming Convention

The name of the OPC UA consumer configuration file should be opcuaconsumer.json.

Working Example

The integration example with timer triggered OPC UA as a data source, with two transformers JSONata and Jackson, and AAS as a data sink is on GitHub DataBridge Example.

Back to the top