UaGateway  1.4.4.357
Administration

The Administration Tool is a graphical user interface to configure general settings of the UaGateway itself. The Administration Tool can only be started with administrator privileges.

Directly after installation the setup procedure will startup the Administration Tool. You must configure the basic settings regarding UA Certificates of the UaGateway and you must choose the User Context the UaGateway service will run in. For more information, see the section Initial Startup of the Administration Tool.

The settings which can be performed using the Administration Dialog are grouped into seven tabs:

General

Change autostart settings, set the user context for the UaGateway service, change configuration permissions, enable/disable remote DCOM access.

UA Endpoints

Specify log-on settings, add, remove and configure UA Endpoints for the UaGateway’s UA Server.

OPC DA (COM)

Configure the OPC COM DA Server: set the default namespace, configure property mapping of COM DA properties to UA attributes.

OPC AE (COM)

Configure the OPC COM AE Server: set the default namespace, configure the mapping of OPC UA event types to COM A&E categories and OPC UA event fields to COM A&E attributes.

Channels

Enable/disable the different OPC client channels like COM DA client, UA client, XML-DA client, COM A&E client or COM HDA client.

OPC COM ItemIDs

Configure namespace prefixes to be used to construct unique COM ItemIDs.

Trace

Start/stop the trace of UaGateway application and UA Stack.

Certificates
Certificate management of the UaGateway’s certificate store.

Each tab (except of the “Certificates” tab) contains two buttons at the lower right corner:

apply_revert.png
Apply and Revert buttons

To apply the changes made using the Administration Tool, press the button “Apply”, pressing the button “Revert” reverts the dialog window to the currently active settings. A dialog window containing a warning about unsaved changes will appear when changing to another tab or closing the Administration Tool.

Any changes made take no effect until you restart the UaGateway. If you press the “Apply” button while the UaGateway is running, you’ll be asked if you’d like to stop it now. After choosing “Yes”, another dialog window will inform you about the changes being applied and ask you if you’d like to restart UaGateway.

General

admin_general.png
Tab General

Autostart

Here, you can configure the autostart behaviour of UaGateway. Select “UaGateway Runtime Process” to automatically start the UaGateway Service when starting the computer, and select “Notification Area Icon” to start the Notification Area Icon when a user logs on. For further information see Notification Area Icon of UaGateway.

Launching User

The UaGateway runs as Windows NT service. A specific user context is assigned to this service to allow proper COM/DCOM configuration. The user you select is assigned to the UaGateway service. In addition, the user is granted the LogOnAsService right (to allow him/her to start the service) and is added into a local user group (“UaGatewayUsers”). This group is added to the Access Control List (ACL) of the local machine. For proper COM/DCOM configuration you now just need to add all users that should be able to start and access the UaGateway to this group.

Configuration Permissions

It is possible to allow only certain users to change the configuration of UaGateway, i.e. to add or remove connections to underlying servers. You can choose between the following settings:

Everyone

Everyone (including the UA anonymous log-on) connecting to UaGateway can perform configuration changes.

Limit to operating system users

Ony local users and users from the same domain can change the configuration.

Limit to users of this group:
Limit the permission to change the configuration to users of a certain group. If the drop-down box “Group” does not show all available groups (or a newly created group is missing), it is possible to read in this group by pressing the button Refresh.

Remote DCOM Access

When checking “Allow Remote Connection to UaGateway OPC COM Server”, DCOM port 135 and the UaGateway executable are added to the firewall exception list.

When “Allow starting UaGateway by DCOM Clients” is disabled, DCOM clients cannot start UaGateway. In this case, UaGateway can still be started or stopped using the Notification Area Icon or the start menu entries.

UA Discovery Registration

Here you can set if the UaGateway should register at the Local Discovery Server.

UA Endpoints

The UA Endpoint is the connection information a UA Client needs to connect with UaGateway. The following paragraphs describes the UA Endpoint Configuration using the Administration Tool.

General

Use the check boxes to specify which log-on methods a client can use to connect to your UaGateway.

admin_endpoints_general.png
Tab UA Endpoints – General

Endpoints

Here, you can perform all required settings for different UA Endpoints. By default the endpoint configuration is set to standard values. It is represented by one single UA Endpoint that offers three security options: None, Basic256 and Basic256Sha256.

The None security policy allows every UA Client to connect to the UaGateway, it is recommended to use this configuration just during commissioning and testing, in a production environment this configuration should be switched off.

The different configuration elements are described in the following paragraphs.

admin_endpoints_endpoints.png
Tab UA Endpoints – Endpoints

Network Configuration

Endpoint URL
This is the Endpoint URL of the UaGateway as it will be seen in FindServers and GetEndpoint calls.
Protocol
This is the protocol used for this endpoint.
Hostname/IP
This is the hostname of the UaGateway (it also could be the IP Address of the PC the UaGateway runs on).
Network Adapter
This is the Network Adapter to bind to. Possible selections are:
All
Select to bind to all IP addresses of the computer. The endpoint will be reachable on the given port on all IP addresses.
Network Adapter
Select a Network Adapter and an IP address (below) to bind only to this address. The Endpoint will be reachable for clients only connecting to the selected IP address.
Local only
If this is selected the UaGateway binds to the loopback adapter only. The Endpoint will be reachable only for clients on the same machine as the UaGateway runs.
Port
This is the TCP port of the Endpoint (typically 48050).

Security

The supported security settings of the Endpoint can be configured here. Check the boxes in front of the security policies that should be allowed for a specific Endpoint. For policies other than None, the available message security mode(s) must be specified. Signing ensures that messages cannot be changed and are exchanged between the applications that have established the communication. Encryption ensures that nobody can read the messages.

Security Check Overrides

Some of the OPC UA security checks are optional in OPC UA or cause interoperability issues with older OPC UA clients. Check the box in front of an override to activate it.

OPC DA (COM)

The following paragraph describes the configuration of the COM DA Server of the UaGateway using the Administration Tool.

admin_opcda.png
Tab OPC DA (COM)

General

ItemIDs of the COM DA Server are constructed of the namespace URI and the identifier of the variable node in the OPC UA address space. The namespace part can be omitted for a specified namespace. In the drop-down box “Default NameSpace” the default namespace can be set to a namespace of an underlying OPC Server. The ItemIDs of that particular namespace will then be accessible using the identifier only, because the default namespace is internally automatically added when accessing the Item. This feature can be used to avoid reconfiguring all ItemIDs in the Client that accesses the UaGateway’s Server used as tunnelling solution for an underlying COM DA Server and to preserve the ItemIds of the original COM DA Server.

In the second drop-down box, the Timestamp Source can be set. The following options are available:

Internal
The timestamps are created by the OPC COM DA Server.
SourceTimestamp
The SourceTimestamps are used as timestamps provided by the OPC COM DA Server.
ServerTimestamp
The ServerTimestamps are used as timestamps provided by the OPC COM DA Server.

If “Browse Next Level for Variables” is selected, COM DA2 and DA3 browsing is forced to investigate the next deeper level for browsing. This means that browsing will go down into leafs/variables, not only branches/folders. Variables with children will be shown as folders.

Note
Setting this option will slow down browsing, it should only be used by experienced users.

Property mapping from UA to COM DA

When connecting to the OPC COM DA Server of the UaGateway, all six standard properties (DataType, Value, Quality, TimeStamp, AccessRights and ScanRate) are mapped automatically. Underlying OPC Servers may provide additional properties (e.g. user defined properties, DI properties, etc.) Those properties can be mapped to vendor specific properties (PropertyID ≧ 5000) in the UaGateway’s COM DA Server.

These vendor specific PropertyIDs are assigned automatically when the properties are requested for the first time. You can use this dialog to change the assigned PropertyIDs or to configure how the OPC UA properties in the UaGateway’s address space should be mapped to COM DA vendor specific properties. You must specify the UA side property name and the namespace of the property in the UaGateway and assign them to COM DA PropertyIDs. When connecting to the COM DA Server of the UaGateway you can QueryAvailableProperties of an individual OPCItem and you will see the mapped properties as configured (in the range of vendor specific PropertyIDs above 5000).

To add or remove a specific property, press the buttons “+” or “-”. To change the content of a certain field, double-click on it and enter the desired values. Double-clicking on a value in the column “UA Property NameSpace URI” displays a drop-down menu to choose from.

When adding a new property by pressing the button “+”, the values of the last entries are copied to the new line and the Property ID is counted up automatically.

OPC AE (COM)

The following paragraphs describe the configuration of the COM AE module of the UaGateway using the Administration Tool.

admin_opcae.png
Tab OPC AE (COM)

General

Fully qualified Area and Source names of the COM A&E Server are constructed of the namespace URI and the identifier of the corresponding nodes in UaGateway’s OPC UA address space. The namespace part can be omitted for one namespace. In the drop-down box “Default NameSpace” the default namespace can be set to a namespace of an underlying OPC Server. The Areas and Sources of that particular namespace will then be accessible using the identifier only, because the default namespace is internally automatically added when accessing the Item. This feature can be used to avoid reconfiguring all Areas and Sources in the Client that accesses the UaGateway’s Server used as tunnelling solution for an underlying COM A&E Server and to preserve the Areas and Sources of the original COM A&E Server.

Event Category Mapping

All OPC UA event types in the UaGateway’s address space are mapped to COM A&E categories in the UaGateway’s COM A&E Server. This mapping is created automatically when a COM A&E Client queries for available categories. The list of OPC UA event types in the UaGateway’s OPC UA address space is defined by the UaGateway configuration. All other settings are used to represent these UA event types as categories in the UaGateway’s COM A&E Server.

You can use this dialog to modify or hide the assigned COM A&E category information for an OPC UA event type.

To manually add or remove a specific event type to category mapping, press the buttons “+” or “-”. To change the content of a certain field, double-click on it and enter the desired values. Double-clicking on a value in the column “Event Type” displays a drop-down menu where you can choose between “Simple”, “Condition”, and “Tracking”. Another menu appears when double-clicking on an entry in the column “UA Event Type” where you can choose the namespace index and the identifier type from a drop down-menu, and enter the Event Type ID in different formats.

When adding a new event by pressing the button “+”, the values of the last entries are copied to the new line and the Property ID is counted up automatically.

Attribute Mapping

All OPC UA event fields defined by OPC UA event types in the UaGateway’s address space are mapped to COM A&E attributes in the UaGateway’s COM A&E Server. This mapping is created automatically when a COM A&E Client queries for available attributes. The list of OPC UA event fields in the UaGateway’s OPC UA address space is defined by the UaGateway configuration. All other settings are used to represent these UA event fields as attributes in the UaGateway’s COM A&E Server.

You can use this dialog to modify or hide the assigned COM A&E attribute information for an OPC UA event field.

To manually add or remove a specific event field to attribute mapping, press the buttons “+” or “-”. To change the content of a certain field, double-click on it and enter the desired values. Double-clicking on a value in the column “Data Type” displays a drop-down menu where you can pick one of the available Data Types. Another dialog appears when double-clicking on an entry in the column “UA Event Field Path” where you can change the settings to your liking.

admin_attrmapping_eventfieldpath.png
Dialog UA Event Field Path

When adding a new attribute by pressing the button “+”, the values of the last entries are copied to the new line and the Property ID is counted up automatically

Channels

At “General”, you can select which channels should be available in the Configuration Tool, i.e. which type of servers can be added/configured via the Configuraton Tool. When enabled, a corresponding entry in the Devices Address Space Window of the Configuration Tool will show up.

The following channels are available:

COM DA Channel
OPC COM DA Client used to integrate COM DA Servers
COM AE Channel
OPC COM A&E Client used to integrate COM A&E Servers
COM HDA Channel
OPC COM HDA Client used to integrate COM HDA Servers
XML DA Channel
OPC XML-DA Client used to integrate XML-DA Servers
UA Channel
OPC UA Client used to integrate UA Servers
admin_channels.png
Tab Channels

If the UA channel is activated, you can add static OPC UA namespaces by importing the namespace from a standard OPC UA Nodeset XML file at “UA Channel Nodeset Files”.

Namespaces imported as static namespaces are not replicated for aggregated OPC UA Servers. This is necessary to preserve the original namespace URI and to avoid duplicates of identical standard namespaces provided by different aggregated OPC UA Servers.

OPC COM ItemIDs

As described above, ItemIDs of UaGateway’s COM DA Server are constructed of the namespace URI and the identifier of the variable node in the OPC UA address space. Usually, this results in quite long ItemIDs. The following screenshot shows how the dialog looks like when UaGateway is connected to Unified Automation’s C++ Demo Server.

admin_namespaces.png
Tab Namespaces

The C++ Demo Server’s namespaces show up in UaGateway’s namespace table with indexes 4 to 7. This means, for instance, that by default, the variable node Demo → 001_Dynamic → Scalar → DateTime in the C++ Demo Server’s address space gets the COM ItemID urn:KM-PC:UnifiedAutomation:UaServerCpp/http://www.unifiedautomation.com/DemoServer/|Demo.Dynamic.Scalar.DateTime. When “Use Alias as Prefix in ItemID” is enabled, the ItemID is shortened to ns5|Demo.Dynamic.Scalar.DateTime. The default namespace prefix is “ns<Namespace Index>”. It can be changed by double-clicking on the respective table cell. Furthermore, you can pick the delimiter to use from the drop-down list.

Trace

The UaGateway provides several tracing capabilities for being able to analyze any problems that might occur during runtime of the UaGateway. You can enable the tracing functionality of either the Application Trace or both the Stack Trace and the Application Trace.

If you should encounter problems using the trace functionality, see if the section called “Trace Files Missing” under Troubleshooting contains a solution.

Note
The Stack Trace cannot run alone, you have to additionally switch on the Application Trace (at least on the lowest trace level Error).

Depending on the depth of information you need, different trace levels can be applied. The trace level has massive impact on the performance and the amount of data that is created. By default, both traces are set to the highest level.

admin_trace.png
Tab Trace

General

By pressing the button “Open Folder...” the folder of the generated log file(s) can be opened. To set the path of the log file just press the button “...”.

Application Trace

Here, you can enable the Application Trace and select the desired Trace Level from the drop down menu.

The trace levels of the Application Trace are (in ascending order):

Errors
output of Errors
Warning
output of Warnings
Info
information output
InterfaceCall
output of external and internal interface calls
CtorDtor
output of creation and deletion of objects
ProgramFlow
output of internal function calls
Data
output of data

Stack Trace

Here, you can enable the Stack Trace and select the desired Trace Level from the drop down menu.

The trace levels of the Stack Trace are (in ascending order):

  • ERROR
  • WARNING
  • SYSTEM
  • INFO
  • DEBUG
  • CONTENT
  • ALL

Certificates

This tab can be used to manage certificates. It displays a list of the certificates an certificate revocation lists in UaGateway’s certificate store. There is a separate tab for issuers.

admin_certificates.png
Tab Certificates

Different icons indicate the certificates’ statuses:

Check Mark
The certificate is trusted.
Red Cross
The certificate is rejected.
Check Mark With Error Symbol
The certificate is expired or not yet valid.
Unified Automation Icon
This certificate is UaGateway’s own application instance certificate.

A right-click on a certificate displays a context menu providing various actions, depending on the status of the certificate (see screenshot): You may trust untrusted certificates, reject already trusted certificates, delete a certificate, or view the certificate’s content.

When clicking on the orange arrow symbol in the bottom left corner (see screenshot), the contents of the certificate store are reread.

When clicking on the button Open Certificate Location, the folder containing trusted certificates is opened in Windows Explorer.

Furthermore, it is possible to create a new application instance certificate (see Create an Application Instance Certificate for UaGateway) if the existing one has expired, will be expired soon, other security settings are required, etc. The input fields are filled out beforehand with values from the existing application instance certificate.

wiz_new_app_inst_cert.png
New Application Instance Certificate
Note
Keep in mind that all UA Clients that want to connect to UaGateway will need this certificate in their trust list.