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.
To display the list of variables:
Step |
Action |
---|---|
1 |
On the tab, right-click and choose .Result: The OPC UA Symbols window is displayed. The logic controller starts the OPC UA server. |
2 |
Click . |
%MX
, %IX
, %QX
are not directly accessible. To access IEC objects you must first group their contents in located registers (refer to Relocation Table).
The
window displays the variables available for selection as symbols:Select
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 |
---|---|
|
The variable name followed by the address of the variable. |
|
The data type of the variable. |
|
Click repeatedly to toggle through the access rights of the symbol:
NOTE: Click in the column of to set the access rights of all the symbols at once.
|
|
An optional comment. |
Click
to update the list of available variables.