Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Easy Heading Macro
headingIndent40
navigationTitleOn this page
selectorh2,h3
wrapNavigationTexttrue
navigationExpandOptiondisable-expand-collapse


System Requirements

To

make

use

of

this feature, the following system requirements

need to

must be

matched

met.

  • KepServerEx V5 (or higher).
  • OPC UA Protocol


On this page:

Table of Contents
maxLevel3


How to Use

The procedure for a successful OPC UA connection is divided into three main steps.

  • KepServerEx OPC UA Server Configuration
  • Creating certificates for Engineering and Runtime
  • Importing client certificates on OPC UA

KepServerEx Configuration

At In the KepServerEx project properties, enable support for OPC UA. Use the command “Reinitialize” Reinitializeafter changing the settings so they can be applied.


In the Server EndPoints tab, configure set the endpoint parameters (network adapter, port number, and security policies), and copy the URL because it will be used for later use.

For the security policies configuration, you need to enable one (or both) of the following:

  • Basic256.
  • Basic128Rsa15.


On the Instance Certificates page, click the Export server certificate... button and select a folder to save the certificate for the OPC UA Server.


Engineering and Runtime Configuration

In your Project, go to Devices → Channelsand create a new OPC UA channel.


On Devices → Nodes, paste the OPC URL (copied from the previous section) in the PrimaryStation configuration popup. Fill in the remaining parameters accordingly.

Note

For the Server Endpoint URL, you should NOT change from 127.0.0.1 to localhost. The Endpoint needs to be the same one used in the Server Instances Tab.

Then, click the Certificates button to launch the UaClientConfigHelperNet4.exe tool. Make sure the file is launched with Administrator privileges.


Note

The You can also launch the certification tool can also be launched (with admin rights) from the Product’s product's installation folder.

..\fs-9.1\UaClientConfigHelperNet4.exe.


The Follow the steps below to create a certificate are described below:

  • With the exe opened, browse for the application (\fs-9.1\TManagerExe.exe).
  • Click Create UA Configuration, Edit UA Configuration, and click Certificates.
  • Click the Create button.
  • Click Server Certificates, the Import button, and select the server certificate created by the Kepware application.
  • Click Export.
  • Click OK, and Save and Close.

The steps above are illustrated in the image below.


Note

The same procedure must be repeated for the \fs-9.1\TRunModule.exe application.



Importing Client certificates and Testing Connection

Back at KepServerEx, import the two certificates created in the previous section. Go to the OPC UA Configuration Manager → Trusted Clients Tab.


Once the certifications have been trusted, we can test our connection. On the Project's Devices → Nodespage, open the PrimaryStation configuration popup and click Test. If this was done correctly, you should see an "OK" status.


Lastly, on Devices → Points, create a row for our OPC Node and assign a Tag to it. In the Address column, you will be able to browse for every available Tag found on the Server in a TreeView style popup.



OPCServer Available Data

If the data available data in the OPCServer is originates from internal data (server information and diagnostics), or if the available data is from a simulation channel, the data it can be exchanged by exception and the FS Node “Enable Read Polling” checkbox can be disabled, allowing the Enable Read Polling checkbox in FS Node to be unchecked.

If you are using the “Kepware Kepware OPC UA Client” Client or another device, you will need to enable the FS Node “Enable Enable Read Polling” Polling checkbox.


note
Warning
titleRunning a Test

WE SUGGEST RUNNING A TEST TO MAKING SURE THE CONNECTION AND DATA EXCHANGE IS WORKING PROPERLY AND READING THE INTERNAL DATA FROM THE OPCSERVER KEPWARE. _System._Time_Second OR ANY SIMULATION VALUE.



In this section...

Page Tree
root@parent
spaces93DRAFT