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

BaSyx / Documentation / Components / DataBridge / Features / Protocol Integration / OPCUA

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