Option 2.5. Set Project OPC UA Server Properties

This topic describes the OPC UA Server tab on the Project Properties dialog box.

OPC UA Server Tab

Select or clear the Enable Server check box to enable or disable the OPC UA Server.

Note: Enabling the OPC UA server uses more system resources and has an impact on CIMPLICITY's performance. This option is disabled by default.

UA Endpoints Configuration

  1. Under Endpoint, enter or confirm your information in the Port, Network Address, and Logical Host Name fields.
  2. Once the data is entered, you can view how these fields affect the data in the Endpoint URL, Server URL, and Server Name fields. The port field is configurable from 1025-49151 and is reflected in the Endpoint URL as the value changes. The Network Address accepts the machine name, an IPv4 address, or an IPv6 address. If you enter "[NodeName]," then the field will be replaced with the machine name at server runtime. This field only affects the corresponding place holder in the Endpoint URL. The Logical Host Name must be of valid DNS hostname syntax but doesn't need to be a machine that is actually online. This field affects the corresponding place holders in the Server URLI and Server Name. If any of the fields have incorrect values, a message box will appear and explain the syntax error. Any subsequent changes made to the project name will be reflected in the three fields without manual modification.
  3. Select OK to save the data to the ServerConfig.xml file.

Security Configuration

Select one or more security configurations from which you can choose when you configure your endpoints.

From the OPC UA Server section of the Project Properties dialog box, select Security Configuration to open the Security Configuration dialog box.

Select the check boxes for the security policies and modes you want the server to support. If you do not select any of the check boxes, a message box will appear indicating that at least one of the check boxes must be selected.

Select OK to save the data to the ServerConfig.xml file.

Logging Configuration

The logging UI enables you to modify the following nodes in ServerConfig.xml:
  • UaAppTraceMaxEntries: The number of lines per log file (range is from 1-500000)

  • UaAppTraceMaxBackup: The number of files for log backups (range is from 1-255)

  • UaAppTraceFile: Location of the log file to be used

  • UaStackTraceLevel: Possible values are NONE, ERROR, WARNING, SYSTEM, INFO, DEBUG, CONTENT, and ALL

  • UaAppTraceLevel: Possible values are NoTrace, Errors, Warning, Info, InterfaceCall, CtorDtor, ProgramFlow, and Data

NOTES:

  • You can enter a path to a log file manually. In this case, the file will be generated by the OPC UA SDK automatically, given the proper permissions, and the path to the file will be created. If the file cannot be created, no log file will be used during runtime. You can also enter "%SITE_ROOT%\log" as a directory prior to the file if you would like the log file to be placed in the project's "log" directory.

  • Select Reset to set the path of the log file to the last saved path.

  • The trace levels (log levels) are ranked in the list by ascending log level; in other words, ERROR will create fewer log entries than ALL for the Stack Trace Level.

  • These changes are made visible in ServerConfig.xml when you select OK on the Project Properties dialog box (not when you select OK on the current dialog box).

Refer to the Troubleshooting section of the CIMPLICITY OPC UA Server for more information about Trace Levels.