Skip to main content

OPC UA Server

Purpose

This target exposes variables from a forwarding group through an embedded OPC UA server. External OPC UA clients can browse, read, and, when permitted, write the exposed nodes.

Configure the forwarding group and target through Data Forwarding. This page covers OPC UA endpoint, security, history targets, node mapping, and debug actions.

Open the plugin

Open Development Configuration → Data Forwarding and:

  1. Save the forwarding-group variable range; only included variables create OPC UA nodes.
  2. Add a target, choose OPC UA Server, and fill in the basic target information.
  3. Open Target properties and configure endpoints, identity, security, certificates, and history-target bindings.
  4. Save and enable the target, then configure data type and write permission in Variable properties.

Basic target information

SettingDefaultConfiguration
Group-Select a saved forwarding group.
Target name-Required and unique within the group.
EnableEnabledDisable to stop the OPC UA server.
Log levelInfoTemporarily use Debug for certificate, session, or node diagnostics.
Start timeout60 secondsValid range is 1 to 3600 seconds.

Target properties

Endpoint

SettingDefaultConfiguration
Server addressopc.tcp://127.0.0.1:48410Separate multiple endpoint URLs with semicolons. Every URL must be reachable by the client.
Application nameThingsGateway_OPC_UA_ServerIdentify application name and subject used when the server certificate is generated.

Security and authentication

SettingDefaultConfiguration
Security policyDisabledDisabled publishes only the None endpoint; enabled publishes modern SignAndEncrypt endpoints.
Allow certificate loginDisabledAvailable on secure endpoints; enables X509 user-token login.
Client certificate trust modeManualTrustListManual mode uses the debug-maintained trust stores; SpecifiedCA accepts certificates issued by the selected CA.
Trusted client CAEmptyUsed only by SpecifiedCA; select the CA that issued client application and user certificates.
UsernameEmptyFixed username for username login; the client must submit a non-empty value.
PasswordEmptyPassword paired with the username.
Server certificateEmptySelect a server certificate with private key; empty lets the system generate one from the application name.
Server issuer CAEmptySelect the issuing CA when clients need the complete certificate chain.

Write permission and history

SettingDefaultConfiguration
Allow RPC writeEnabledEnables writes from external OPC UA clients. Variable and OPC UA user permissions must also allow the write.
Historical data targetEmptyEnter a stable target name in group/target form. Leave empty to disable OPC UA historical-data reads.
Historical alarm targetEmptyEnter a stable historical-alarm target name in group/target form. Leave empty to disable OPC UA historical-event reads.

Target-variable properties

SettingDescription
Data typeObject
Allow RPC writeEnabled

The variable must already be included in the forwarding group's range. A target variable property does not add a variable to the group.

Functions

FunctionPurpose
Certificate storeUse Certificate store and review the returned result.
OPC UA server protocol debugUse OPC UA server protocol debug to send or inspect protocol frames and view the device or target response.

Target debug

Open Development Configuration → Data Forwarding, select the forwarding group and target, and open Debug.

Certificate stores

OPC UA Server certificate stores

Use the certificate-store panel to maintain client trust certificates when the target uses a manual trust list. After adding or deleting certificates, restart the target when the page requests it.

OPC UA server protocol panel

OPC UA Server protocol debug panel

Use the protocol panel to inspect the server endpoint and perform plugin-specific operations. Certificate changes, node writes, and client disconnect actions require the appropriate permission and site approval.

Debug checklist

  1. Confirm the endpoint address and target runtime state.
  2. Confirm the client certificate trust mode and selected certificates.
  3. Connect an OPC UA client and browse the exposed nodes.
  4. Read one node before testing any write.

Verify the target

  1. Start the target and connect with an OPC UA client.
  2. Browse the namespace and locate one variable included in the forwarding group.
  3. Read the value and compare it with the source variable.
  4. Test a write only when target, variable, client, and site permissions allow it.
  5. If history targets are configured, verify historical data or events with a time range that contains stored records.

Troubleshooting

SymptomCheck
Client cannot connectServer address, target state, firewall, security policy, server certificate, and client trust settings.
Client certificate is rejectedTrust mode, manual trust stores, selected CA, certificate chain, and certificate purpose.
Username login failsUsername/password, certificate-login setting, endpoint security policy, and account permissions.
Nodes are not visibleForwarding group range, target variable properties, target restart state, and client namespace browse permissions.
Read value is incorrectSource variable state, target variable data type, forwarding group membership, and target logs.
Write is rejectedTarget RPC write, target variable RPC write, OPC UA user permission, node access level, and site safety policy.
Historical reads are emptyHistorical target name, target type, stored records, and the query time range.