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.
| Key | What it does | Value | Required |
|---|---|---|---|
name | The name of the connection, for example S1. | text | yes |
endpointUrl | The URL of the remote server, for example opc.tcp://opcuademo.sterfive.com:26541. | text | yes |
securityMode | The 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 | |
securityPolicy | The 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 | |
userName | The user name for the session. To keep it out of the file, write ${NAME}: the gateway reads the environment variable NAME. | text | |
password | The password for the session. To keep it out of the file, write ${SECRET_PASSWORD}: the gateway reads the environment variable SECRET_PASSWORD. | text | |
certificate | The X509 certificate in PEM format for the session. You can write ${NAME} to read it from an environment variable. | text | |
privateKey | The private key of the certificate, in PEM format. You can write ${NAME} to read it from an environment variable. | text | |
mapping | The 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.
| Key | What it does | Value | Required |
|---|---|---|---|
source | The 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. | text | yes |
destination | The 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. | text | yes |
type | What 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 | |
samplingInterval | The sampling interval, in ms, to monitor the source variable. Without it, the gateway uses the minimum sampling interval of the node. | number |