Skip to main content

General

Connect OPC UA

Complete reference for the OPC UA Client driver: connection parameters, security configuration, and node addressing.

The OPC UA driver provides a secure, standards-compliant client for modern PLCs and SCADA gateways with automatic session recovery.

Connection Parameters

Basic Settings

ParameterTypeRequiredDefaultDescription
EndpointUrlstringYes-OPC UA server URL (e.g., opc.tcp://10.0.0.5:4840)
PollingIntervalintNo1000Read cycle interval in milliseconds
ConnectTimeoutTimeSpanNo00:00:15Connection timeout
ReceiveTimeoutTimeSpanNo00:00:15Response timeout
SessionTimeoutTimeSpanNo01:00:00Session expiration (minimum 1 hour)
KeepAliveIntervalTimeSpanNo00:00:10Keep-alive ping interval

Authentication

ParameterTypeRequiredDescription
UsernamestringNoUsername for authenticated connections
PasswordstringNoPassword for authenticated connections
info
Anonymous Access

If Username and Password are not provided, the client connects using anonymous authentication.


Security Configuration

Security Mode

ValueDescription
NoneNo security (default)
SignMessages are signed but not encrypted
SignAndEncryptMessages are signed and encrypted

Security Policy

ValueAlgorithm
NoneNo security
Basic256Sha256SHA256 with RSA (recommended)
Aes128_Sha256_RsaOaepAES-128 with SHA256
Aes256_Sha256_RsaPssAES-256 with SHA256 PSS
Basic256Legacy SHA1 (deprecated)
Basic128Rsa15Legacy RSA 1.5 (deprecated)

Certificate Settings

ParameterTypeDescription
CertificatePathstringPath to client certificate (.pfx)
CertificatePasswordstringPassword for client certificate
ServerCertificatePathstringPath to server certificate (.der/.cer) to trust
warning
Certificate Trust (Sign / SignAndEncrypt)

When using Sign or SignAndEncrypt mode, Proxus automatically generates a self-signed client certificate on first connection. The OPC UA server must trust this certificate before secure communication can begin.

First-time setup:

  1. Start a connection attempt from Proxus - it will fail with BadSecureChannelClosed or BadSecurityChecksFailed.
  2. Open your OPC UA server's certificate management (e.g., Prosys Simulation Server → Certificates tab).
  3. Move the Proxus client certificate from the Rejected list to the Trusted list.
  4. Reconnect from Proxus - the secure session will now be established.

This is standard OPC UA behavior and only needs to be done once per server. After the certificate is trusted, subsequent connections (including automatic reconnections) will work without intervention.


OPC UA Discovery

Proxus can automatically discover OPC UA servers and their security configurations on your network. This eliminates the need to manually enter endpoint URLs and security settings.

Step 1: Start Discovery

Open a Device Profile with the OPC UA protocol and navigate to the Tags tab. Click the Discover Servers button.

Discover Servers Button
Discover Servers Button

Step 2: Select Gateway

Choose an online gateway that has network access to the OPC UA server. Click Next to proceed.

Gateway Selection
Gateway Selection

Step 3: Review Discovery Results

The discovery tree shows all detected servers, endpoints, security configurations, and authentication options in a hierarchical view. Select the desired endpoint and authentication combination, then click Next to apply.

OPC UA Discovery Results
OPC UA Discovery Results

info
Automatic Configuration

When you confirm your selection, Proxus automatically populates the connection parameters (Endpoint URL, Security Mode, Security Policy) in the device profile. A preflight connection test is performed to verify connectivity before saving.


Browse Tags

After configuring connection parameters (either manually or via Discovery), you can browse the OPC UA server's address space to select tags visually.

Step 1: Open Tag Browser

On the Tags tab, click the Browse Tags button.

Browse Tags Button
Browse Tags Button

Step 2: Browse and Select

The browser displays the server's node hierarchy. Expand folders to find variables, check the nodes you want to monitor, and click OK to import them as tags.

OPC UA Tag Browser
OPC UA Tag Browser

lightbulb
Bulk Selection

Use Select All Variables to select all variable nodes in the current view, or click individual checkboxes for granular selection.


Node Addressing

Proxus supports all standard OPC UA Node ID formats.

Node ID Formats

FormatPrefixExampleDescription
Strings=ns=2;s=Device1.TagAString identifier
Numerici=ns=3;i=10024Numeric identifier
GUIDg=ns=4;g=72962B91-...GUID identifier
Opaqueb=ns=5;b=QVVJ...Base64-encoded opaque

Namespace Index

The ns= prefix specifies the namespace index:

NamespaceDescription
ns=0OPC UA standard namespace
ns=1Server-specific namespace
ns=2+Application namespaces

Examples

ns=2;s=Channel1.Device1.Tag1 → String node in namespace 2
ns=2;s=PLC/Temperature → Hierarchical path
ns=3;i=1001 → Numeric node ID
ns=0;i=2259 → OPC UA Server Status node

Advanced Settings

Transport Quotas

ParameterTypeDefaultDescription
MaxStringLengthint65535Maximum string length
MaxArrayLengthint65535Maximum array length
MaxByteStringLengthint65535Maximum byte string length
MaxMessageSizeint4194304Maximum message size (4 MB)

Application Identity

ParameterTypeDescription
ApplicationNamestringClient application name
ApplicationUristringApplication URI (auto-generated if not set)
ProductUristringProduct URI

Data Types

Proxus TypeOPC UA TypeDescription
BoolBooleanTrue/False
ShortInt16Signed 16-bit
UShortUInt16Unsigned 16-bit
IntInt32Signed 32-bit
UIntUInt32Unsigned 32-bit
LongInt64Signed 64-bit
ULongUInt64Unsigned 64-bit
FloatFloat32-bit IEEE 754
DoubleDouble64-bit IEEE 754
StringStringUTF-8 string

Performance Features

Automatic Session Recovery

If the network drops or the server restarts, the driver handles reconnection automatically:

  • Recreates sessions transparently
  • Re-establishes subscriptions
  • No manual intervention required
  • Up to 5 internal retries before reporting errors

Batch Reading

Multiple tag reads are grouped into a single ReadRequest, reducing network round-trips significantly.

Node ID Caching

Parsed Node IDs are cached to avoid repeated parsing overhead.


Troubleshooting

ErrorCauseSolution
BadSecureChannelClosedServer does not trust the client certificateTrust the Proxus certificate on the OPC UA server (see Certificate Trust above)
BadSecurityChecksFailedSecurity mode/policy mismatch or untrusted certificateVerify the selected mode+policy matches what the server offers; trust client certificate
BadCertificateUntrustedCertificate not trustedMove client certificate to Trusted folder on Server
BadUserAccessDeniedInvalid credentialsVerify Username/Password for the endpoint
BadNodeIdUnknownTypo in Node IDCopy Node ID directly from UaExpert or server GUI
lightbulb
Need More Help?

For Node ID format help, see OPC UA Address Syntax. For common OPC UA errors, see OPC UA Errors.

info
See Also

For a unified view of all protocol browsers, see the Tag Browser page.

Official Resources