|
Clients compatible with OPC UA specification
Overview
The Software Platform has the built-in ability to act as a OPC-UA Server. This feature is enabled just by starting the OPC UA Server module, when running a solution.
The OPC UA Server configuration sets up the server settings and secure communication parameters for OPC UA clients. It involves defining endpoints (addresses and ports), managing security policies, and handling certificates to ensure seamless and reliable data exchange. Users can adjust settings in the user interface to tailor the server’s behavior, control security, and establish the requirements for OPC UA clients to connect.
The OPC UA server automatically presents the tags defined in the solution to be accessible as OPC items from remote clients.
Not all tags will be visible. When building the tree for its data elements, the Visibility Property of the tags is verified.
The available options are:
From FrameworX 10.1.6a, the Visibility of an asset folder also applies. An asset folder set to Private is hidden from the OPC UA Server together with everything under it: its tags, their members and its sub-folders, including tags that read their values from the DataHub or another Tag Provider. A folder set to Protected or Public, or left unset, leaves each tag’s own Visibility in charge. Set the folder Visibility in the Edit Asset Folder dialog: select the folder in the Asset Tree, then Edit. The OPC UA Server applies the folder Visibility when it starts.
To make the configured tags visible to the OPC Server, simply change the visibility property:
OPC UA clients can read and subscribe to a TagProvider path by naming it in the NodeId, with no tag configured for it in the solution. The server connects the path when a client asks for it and releases it when no client uses it. The feature is off by default.
urn:tatsoft:frameworx:opcua:dynamic (use nsu= or the index from the server's NamespaceArray). String identifiers only.s=/<asset path>: a UNS path through a linked TagProvider folder. Example, where MQTT is a folder under Plant linked to an MQTT TagProvider: nsu=urn:tatsoft:frameworx:opcua:dynamic;s=/Plant/MQTT/Line1/Temp./ after the linked folder stands for the TagProvider's branch separator, except on TcpDataAccess and DataHubService connections, where / stays /. /Plant/Sim/Temperature, where Sim is a folder linked to the provider path Sim, names the item Sim\Temperature on a provider that separates with \. Through a folder SimRoot linked to the provider's root, the same item is /Plant/SimRoot/Sim/Temperature. The provider's own spelling works too, and an attribute is named with the provider's attribute separator (/Plant/Pi/Element1/Element2|Attribute, where Pi is a folder under Plant linked to the PI TagProvider). An item with a / in its name, on a provider that separates with something else, cannot be named this way. The separator used is the TagProvider's branch separator (the protocol default, or the one set in the OPC UA station settings), except on those two connections.nsu=urn:tatsoft:frameworx:opcua:dynamic;s=/Plant/Sim/Temperature for an OPC UA client and Asset("/Plant/Sim\Temperature") in a display.. or .. segments in either spelling, and no empty or padded segments in the / spelling.*, +, #) and quotes are not accepted. A path that names a configured UNS tag is not served here; configured tags are in the Tag folder.Open the OPC UA Server settings and go to the Dynamic Addressing tab.
Setting | Default | Meaning |
|---|---|---|
Enable Dynamic Addressing | Off | Turns the feature on for this execution profile. |
Allowed TagProviders | Empty | TagProvider names, separated by |
Permitted Groups | Empty | Security permission names, separated by |
Allow Anonymous Clients | Off | Anonymous sessions may use dynamic nodes. Needs Allow Anonymous Logon on the Endpoints tab. |
Idle Timeout (s) | 30 | A node nobody subscribes to or reads for about this long is released. Values below 5 act as 5. The check runs every 5 seconds. |
Maximum Points | 1000 | Dynamic nodes active at once on this server. |
Show Active Points in a Dynamic Folder | Off | Lists active dynamic nodes under |
Restart the server to apply changes. The settings are stored as child elements of DynamicAddressing; written with attributes only, the feature stays off. Numbers must be whole numbers of 1 or more, and switches must be true or false. If the settings are written by hand or through the AI tools, a value that is not valid makes the whole OPC UA Server configuration unreadable, and the OPC UA Server does not start: the trace shows "Failed to Initialize OPC Server". Correct the value and restart the server.
BadResourceUnavailable.BadResourceUnavailable. A released path stops collecting but keeps its point until the runtime restarts.Code | When |
|---|---|
BadNodeIdUnknown | Feature off, unknown or malformed path, TagProvider not allowed, a Private folder on the path, configured UNS tag, a released node used through a registered handle. |
BadUserAccessDenied | The session's user is not in a permitted group, or the session is anonymous and Allow Anonymous Clients is off. |
BadHistoryOperationUnsupported | History read. Dynamic nodes keep no history. |
BadResourceUnavailable | Maximum Points reached, license limit reached, or 10 x Maximum Points distinct paths used since the runtime started (restart to use new ones). |
BadWaitingForInitialData | The TagProvider has not delivered a first value yet. This is the first answer for a new path, and it stays the answer for an item the TagProvider does not have. |
Dynamic nodes are not replicated. After a switchover the client reconnects to the active server and reads or subscribes again; the node is created again on demand, with the same NodeId.
Each creation and release is written to the OPC Server trace at Info level. A refusal is written once per path and reason per minute, at most 30 lines a minute, with a count of the lines left out written when the next refusal is traced. Module Information shows Dynamic Points Active, Created and Refused; Refused counts every refusal.
In the Engineering Environment, go to the Runtime → Startup page and look for the OPC Server configuration. Select the OPC UA, and click on icon to configure.
An OPC Server configuration dialog will open that will request admin privileges. In the configuration manager, we can configure Endpoint characteristics for the server, manage Client certificates, and create a certificate for the Server.
OPC DA Server is deprecated and kept only for compatibility purposes. If you still need to setup a OPC DA Server refer to this documentation: |
In this tab, you can define the endpoints for the OPC Server deployment, select security policies, and manage anonymous user login.
Clicking on the Add or Edit buttons will open a popup that allows the user to select the IP address and port number. It is also possible to define the IP for a specific network adapter that is available in the system. This can guarantee some security for your OPC, such as making it inaccessible to anyone outside of your network.
It is important to ensure the defined ports are not blocked by the OS firewall.

The OPC Server's user management is done by the Solution's Security Module. The existing Users and Runtime Users, and their associated passwords, can be used to allow client connection.
In this tab, you can import Client Certificates and choose to Trust or Reject them.

The list will display all Clients Certificates that were imported and their current trust status.
When a remote OPC UA client attempts its first secure connection to the server, the workflow is end-to-end as follows:
No restart of the OPC Server module is required between steps 3 and 4 — trust changes take effect on the next handshake. The same workflow applies to certificate renewal: a renewed client certificate appears as a fresh Untrusted entry until the administrator trusts it.
The Private visibility level continues to hide a tag from every OPC UA client, including locally trusted ones. Tags with Private visibility are never enumerated in the OPC Server address space and cannot be read or written through this connector. To expose a tag to OPC clients, switch its Visibility property to Protected (read-only) or Public (read/write). |
In this tab, you can view the details of the Server Certificate, export the file (to import and trust the OPC Client), and Reissue it.
When the Reissue option is selected, all existing trust relationships that depended on the Server Certificate will be invalidated.

Once all the configurations are done, you can launch the Solution to test the communication exchange. Remember to have the OPC Server Module enabled in Runtime → Startup.

Open your OPC Client of choice (that is trusted by the OPC Server) and connect to the Endpoint defined to it. If all your configuration was done correctly, you should see the following Folders in the Server Address Space:

Server status can be monitored using the following Diagnostic tools:
OPCUA Server Revision History | |
|---|---|
Version | Notes |
1.0.0.1 | 10.1.5 release. Clarified Private Tag Visibility behavior (Private tags are never enumerated in the OPC Server address space). Documented the end-to-end Remote Client Certificate Workflow: first secure-channel handshake rejects an unknown client certificate into the Untrusted tab; administrator clicks Trust; the next client reconnect establishes normally without restarting the OPC Server module. |
1.0.0.0 | Initial release on new documentation standards. |