Skip to main content

brownfieldDevices.opcuaConnections

Use an OPC UA connection to read nodes of another OPC UA server. The gateway connects as an OPC UA client. The mapping: inside the connection puts the remote nodes in the address space of the gateway, so you can give a clear, standard data model to a server that has a poor one.

Example​

brownfieldDevices:
opcuaConnections:
- name: S1
endpointUrl: opc.tcp://opcuademo.sterfive.com:26541
mapping:
- source: /di:DeviceSet/1:CoffeeMachineA
destination: /di:DeviceSet
type: replicat

The value​

brownfieldDevices.opcuaConnections: is a list. Each entry is an OPC UA connection.

An OPC UA connection​

One remote OPC UA server. The gateway connects as a client and copies or binds its nodes.

KeyWhat it doesValueRequired
nameThe name of the connection, for example S1.textyes
endpointUrlThe URL of the remote server, for example opc.tcp://opcuademo.sterfive.com:26541.textyes
securityModeThe message security of the connection: None, Sign or SignAndEncrypt. The numbers 1, 2 and 3 also work. Use SignAndEncrypt on a network that you do not control.None, Sign, SignAndEncrypt or 1, 2, 3
securityPolicyThe security policy, for example Basic256Sha256. It goes with securityMode. Use a policy that the gateway and the remote server both support.None, Basic128Rsa15, Basic256, Basic256Sha256, Aes128_Sha256_RsaOaep, Aes256_Sha256_RsaPss
userNameThe user name for the session. To keep it out of the file, write ${NAME}: the gateway reads the environment variable NAME.text
passwordThe password for the session. To keep it out of the file, write ${SECRET_PASSWORD}: the gateway reads the environment variable SECRET_PASSWORD.text
certificateThe X509 certificate in PEM format for the session. You can write ${NAME} to read it from an environment variable.text
privateKeyThe private key of the certificate, in PEM format. You can write ${NAME} to read it from an environment variable.text
mappingThe nodes to read from the remote server, and where they go in the address space of the gateway.list of OPC UA mapping entry

An OPC UA mapping entry​

Connects one node of the remote server to one node of the gateway.

KeyWhat it doesValueRequired
sourceThe node of the remote server: a browse path or a node id. The path starts in the address space of the remote server, for example /di:DeviceSet/1:CoffeeMachineA.textyes
destinationThe node of the gateway: a browse path or a node id, for example /ua:Objects/di:DeviceSet. For binding, it is an existing variable. For copy and replicat, it is the Object that gets the new nodes.textyes
typeWhat the gateway does with the source. binding (the default) binds the destination variable to the source variable. copy makes a copy of the source variable. replicat replicates the whole subtree of the source.replicat, binding, copy
samplingIntervalThe sampling interval, in ms, to monitor the source variable. Without it, the gateway uses the minimum sampling interval of the node.number