Configuration examples
- Last UpdatedJun 26, 2025
- 1 minute read
- PI System
- Adapter for OPC UA 1.6
- Adapters
The following section provide examples for all configurations available for AVEVA Adapter for OPC UA.
Note: The examples in this topic are using the default port number 5590. If you selected a different port number, replace it with that value.
System components configuration with two OPC UA adapter instances
[
{
"componentId": "OpcUa1",
"componentType": "OpcUa"
},
{
"componentId": "OpcUa2",
"componentType": "OpcUa"
},
{
"componentId": "OmfEgress",
"componentType": "OmfEgress"
}
]
OPC UA adapter configuration
{
"OpcUa1": {
"Logging": {
"logLevel": "Information",
"logFileSizeLimitBytes": 34636833,
"logFileCountLimit": 31
},
"DataSource": {
"endpointUrl": "opc.tcp://<IP-Address>:<Port>/<TestOPCUAServer>",
"useSecureConnection": true,
"userName": null,
"password": null,
"serverFailoverEnabled": false,
"backupEndpointUrls": [
"opc.tcp://<IP-Address>:<Port>/<BackupOPCUAServer>"
],
"incomingTimestamp": "Source",
"dataCollectionMode": "CurrentWithBackfill",
"streamIdPrefix": "OPC_Prefix_",
"defaultStreamIdPattern": "{NamespaceIndex}.{Identifier}",
"defaultEventStreamIdPattern": "Events.{EventTypeNamespaceIndex}.{EventTypeIdentifier}.{EventTypeDisplayName}"
},
"DataFilters": [
{
"id": "DuplicateData",
"absoluteDeadband": 0,
"percentChange": null,
"expirationPeriod": "1:00:00"
}
],
"DataSelection": [
{
"nodeId": "ns=5;s=Random1"
},
{
"eventTypeNodeId": "i=9341"
}
],
"Schedules": [
{
"id": "1",
"period": "0:00:05",
"offset": "0:00:00"
}
]
},
"ClientSettings": {
"maxBrowseReferencesToReturn": 0,
"browseBlockSize": 10,
"childEventPropertyLevel": 1,
"reconnectDelay": "0:00:30",
"recreateSubscriptionDelay": "0:00:10",
"readBlockSize": 1000,
"sessionRequestTimeout": "0:02:00",
"connectionTimeout": "0:00:30",
"readTimeout": "0:00:30",
"sessionAllowInsecureCredentials": false,
"sessionMaxOperationsPerRequest": 1000,
"browseTimeout": "0:01:00",
"maxMonitoredItemsPerCall": 1000,
"maxNotificationsPerPublish": 0,
"publishingInterval": "0:00:01",
"createMonitoredItemsTimeout": "0:00:30",
"monitoredItemDataChangeTrigger": "StatusValue",
"samplingInterval": "0:00:00.5",
"monitoredItemQueueSize": 2,
"eventTypeMonitoredItemQueueSize": 0,
"maxInternalQueueSize": 500000,
"historyReadBlockSize": 10,
"historyReadTimeout": "0:01:00",
"operationTimeout": "0:04:00",
"minimumEventSeverity": 0,
"maximumEventSeverity": 1000,
"eventStringDelimiter": "|",
"includeEventPropertyName": false
},
"OmfEgress": {
"Logging": {
"logLevel": "Information",
"logFileSizeLimitBytes": 34636833,
"logFileCountLimit": 31
},
"DataEndpoints": [
{
"id": "WebAPI EndPoint",
"endpoint": "https://PIWEBAPIServer/piwebapi/omf",
"userName": "USERNAME",
"password": "PASSWORD"
},
{
"id": "CONNECT Endpoint",
"endpoint": "https://CONNECT Endpoint/omf",
"clientId": "CLIENTID",
"clientSecret": "CLIENTSECRET"
},
{
"id": "EDS",
"endpoint": "http://localhost:<EDSPORT>/api/v1/tenants/default/namespaces/default/omf"
}
}
}
}