Skip to content

OPC UA Server

OPC UA (OPC Unified Architecture) is a platform-independent, vendor-neutral industrial communication standard designed for reliable and secure data exchange in automation systems. OPC UA supports data modeling, events, historical data access, and method invocation, making it suitable for distributed scenarios from edge devices to the cloud.

Neuron supports using OPC UA Server as a northbound application, allowing southbound device data to be exposed to upper-level systems or third-party clients via OPC UA services. Through the OPC UA Server, external systems can subscribe to data changes, read real-time points, and send control commands.

Add Application

In Data Collection -> North Apps, click Add Application and select OPC UA Server to create an OPC UA Server node.

Application Configuration

When creating an OPC UA Server application, you can configure the following parameters:

ParameterDescription
HostThe computer running the OPC UA server, default is 127.0.0.1.
PortThe port the server binds to, default is 4840.
Security PolicySupported security policies, including None, Basic256Sha256, Basic256, Basic256Rsa15, Aes128_Sha256_RsaOaep. Default is None.
Username and Password AuthenticationEnable username and password authentication, supports adding users, updating passwords, and deleting users.
Server CertificateCertificate and key (PEM) used by the server.
Trusted Certificate AuthorityUpload trusted CA certificates(PEM).
Trusted Client CertificateUpload client-generated certificates(PEM).

Security and Certificates

OPC UA strongly recommends enabling security policies and message encryption to prevent man-in-the-middle attacks and eavesdropping. Key points:

  • Use strong security policies (such as Basic256Sha256) and enable SignAndEncrypt mode on the client.
  • Add client certificates to the Trusted Client Certificates list to enable mutual TLS.
  • Enable username/password authentication.

When Neuron starts the OPC UA Server for the first time, a self-signed certificate is generated. External clients may need to manually trust this certificate (e.g., import it into the trusted list in the UA client). Uploaded client certificates are trusted by default. Unknown client connections will have their certificates added to the untrusted list and require manual trust in the UI.

Naming and Mapping Rules

Neuron maps tags (points) from southbound devices to OPC UA nodes. Mapping rules:

  • Each southbound node (e.g., modbus1) corresponds to an OPC UA Object node.
  • Groups are organized as child objects under the southbound node.
  • Tags are mapped to Variable nodes, with DataType mapped from Neuron's type to OPC UA types (Double, Int32, Boolean, String, etc.).

All southbound nodes are under the NeuronEX node. NodeId follows the format ns=1;s=[device].[group].[tag], e.g., ns=1;s=modbus-tcp-1.group-1.temperature, where ns=1 is the NeuronEX namespace.

Data Type Mapping

NeuronEXOPC UA
INT8/UINT8Sbyte/Byte
INT16/UINTInt16/UInt16
INT32/UINT32Int32/UInt32
INT64/UINT64Int64/UInt64
FLOATFloat
DOUBLEDouble
BIT/BOOLBoolean
STRINGString
BYTESByteString
ARRAY_INT8Array Sbyte
ARRAY_UINT8Array Byte
ARRAY_INT16Array Int16
ARRAY_UINT16Array Uint16
ARRAY_INT32Array Int32
ARRAY_UINT32Array Uint32
ARRAY_INT64Array Int64
ARRAY_UINT64Array Uint64
ARRAY_FLOATArray Float
ARRAY_DOUBLEArray Double
ARRAY_BOOLArray Boolean
JsonString