OPC UA Client

OPC UA Client

Basic Usage

 

  1. To start, we’ll connect to an OPC UA server to receive values from. Double click the app in the explorer to begin configuration.

image-20241111-135311.png

 

  1. In the General settings tab, check off the “Enable” option.

image-20250204-195836.png

 

  1. Create a folder, then create a Server Connection object inside that folder. Add the necessary info for an OPC UA server you would like to connect to.

image-20250204-200345.png
image-20250204-200438.png

 

image-20250204-200420.png
image-20250204-200546.png
  1. Create a Server Item Group object inside the Server Connection object.

image-20250204-200901.png
image-20250204-201044.png
  1. Create Server Item objects inside the Server Item Group for server items you would like to receive data from.

    image-20250204-205745.png

     

    image-20250204-205855.png

     

  2. Now, run the Start command to start the client.

image-20241111-180318.png

 

  1. To view client activity, open up OPCUAClient.log in the Logger. When OPC UA Client receives an update from a subscribed value, a read request for values, or a write request for values, they will show up in the logs.

image-20241111-143327.png
image-20241111-181541.png

 

Security

 

  1. To connect more securely to an OPC UA server, select the desired Security Mode and Security Policy on a server configuration.

image-20241111-210313.png

 

  1. Save the changes and restart the app.

image-20241111-210703.png

 

  1. If the server you are connecting to does not recognize OPC UA Client’s certificate, then you’ll see errors in your logs that look something like this. This is normal behavior for first time connections.

image-20241111-211003.png

 

  1. On the OPC UA server you’re trying to connect to, you’ll see a quarantined client certificate called AUTOSOL OPC UA Client. Verify the SHA-1 hash of the certificate matches the hash of OPC UA Client’s certificate, then trust the certificate on the server.

 

image-20241111-211446.png
An example OPC UA server. Note the SHA-1 hash of the quarantined certificate.

 

image-20241111-211812.png
You can verify the SHA-1 hash of the certificate the server received to the hash displayed in Manage Certificates.

 

  1. Restart the app. If OPC UA Client does not recognize the server certificate, you will see log entries that indicate that the server certificate was rejected.

image-20241111-222451.png

 

  1. In the Manage Certificates tab, you will see the server certificate in the Quarantined Server Certificates section. If it does not show up, click the Refresh button in the top left corner.

image-20241111-222728.png

 

  1. Verify that the SHA-1 hash matches the original certificate, then select the “Trust” action for the certificate. Save your changes. You should see the previously quarantined certificate now appear under Trusted Server Certificates.

image-20241111-223010.png

 

  1. You can also upload trusted server certificates directly in the UI.

image-20241111-230054.png

 

Supported Data Types

 

OPC UA Client supports the following OPC data types:

Type

Description

Type

Description

Boolean

A two-state logical value (true or false).

SByte

An integer value between −128 and 127 inclusive.

Byte

An integer value between 0 and 255 inclusive.

Int16

An integer value between −32 768 and 32 767 inclusive.

UInt16

An integer value between 0 and 65 535 inclusive.

Int32

An integer value between −2 147 483 648 and 2 147 483 647 inclusive.

UInt32

An integer value between 0 and 4 294 967 295 inclusive.

Int64

An integer value between −9 223 372 036 854 775 808 and 9 223 372 036 854 775 807 inclusive.

UInt64

An integer value between 0 and 18 446 744 073 709 551 615 inclusive.

Float

An IEEE single precision (32 bit) floating point value.

Double

An IEEE double precision (64 bit) floating point value.

String

A sequence of Unicode characters.

DateTime

An instance in time.

LocalizedText

Human readable text with an optional locale identifier.

 

 

For assistance, please submit a ticket via our Support Portal, email autosol.support@autosoln.com or call 281.286.6017 to speak to a support team member.