OPC UA Server Symbols Configuration

Introduction

Symbols are the items of data shared with OPC UA clients. Symbols are selected from a list of all the IEC variables used in the application. The selected symbols are then sent to the logic controller as part of the application download.

Each symbol is assigned a unique identifier. As certain client types may require a specific format, identifiers can be configured to be in either string or numeric format.

This table describes IEC variable Base Types versus OPC UA Data Types:

IEC variable Base Types

OPC UA Data Types

BOOL, BIT

Boolean

BYTE, USINT

Byte

INT

Int16

WORD, UINT

Uint16

DINT

Int32

DWORD, UDINT

Uint32

LINT

Int64

LWORD, ULINT

Uint64

REAL

Float

LREAL

Double

STRING

String

SINT

SByte

Bit memory variables (%MX) cannot be selected. In addition to IEC base data types, the OPC UA server can also expose OPC UA variables from IEC symbols that are composed of the following complex types:

  • Arrays and Multi-Dimensional Arrays. These are limited to 3 dimensions.

  • Structured data types, and nested structured data types. As long as they are not composed of a UNION field.

Displaying the List of Variables

To display the list of variables:

Step

Action

1

On the Applications tree tab, right-click Application and choose Add object > OPC UA Symbol Configuration.

Result: The OPC UA Symbols window is displayed. The logic controller starts the OPC UA server.

2

Click Add.

NOTE: The IEC objects %MX, %IX, %QX are not directly accessible. To access IEC objects you must first group their contents in located registers (refer to Relocation Table).

Selecting OPC UA Server Symbols

The OPC UA Symbols window displays the variables available for selection as symbols:

Select IoConfig_Globals_Mapping to select all the available variables. Otherwise, select individual symbols to share with OPC UA clients. A maximum of 1000 symbols can be selected.

Each symbol has the following properties:

Name

Description

Symbols

The variable name followed by the address of the variable.

Type

The data type of the variable.

Access type

Click repeatedly to toggle through the access rights of the symbol:

  • read-only () (default)

  • write-only ()

  • read/write ()

NOTE: Click in the Access type column of IoConfig_Globals_Mapping to set the access rights of all the symbols at once.

Comment

An optional comment.

Click Refresh to update the list of available variables.