--- title: "OPC UA Client | Examples | N3uron KB V1.22" slug: "opc-ua-client-examples" description: "OPC UA Client is a N3uron module designed to enable N3uron to make outgoing connections to any third-party compliant OPC UA server…" updated: 2025-09-30T15:55:32Z published: 2025-12-23T10:07:50Z canonical: "docs.n3uron.com/opc-ua-client-examples" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.n3uron.com/llms.txt > Use this file to discover all available pages before exploring further. # Examples ## Connecting to KEPServerEX from N3uron using OPC UA This is a detailed step-by-step guide to connecting to **KEPServerEX** from **N3uron** using the **OPC UA Client** module. - **Step 1:** Create the module: *(*Config => Modules => Model => New Module*)* ![Figure - New module](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20New%20module.png) - **Step 2:** Provide a name for the module (in this case OPCUAClient01), assign the module type (in this case OpcUaClient) and save the new configuration. ![Figure 9- Configuring the new module as OPCUAClient](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%209-%20Configuring%20the%20new%20module%20as%20OPCUAClient.png) - **Step 3:** Configure the **Logger** and **API** sections (usually the default values are sufficient). Save the configuration. ![Figure - Logger(1)](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20Logger(1).png) - **Step 4:** Create the connection to the OPC UA Server. Each connection requires an independent **C****lient**. ![Figure - Client](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20Client.png) - **Step 5:** Configure the OPC UA Client to connect to the **KEPServerEX**. To do so, click on the **OPC UA Server discovery** button to the right of the **Endpoint URL** field and enter the corresponding endpoint of the server you want to connect to. The “Endpoint URL” is the Hostname/IP address of the target OPC server and the “port”, using the format opc.tcp://endpointURL:port. The default OPC UA port for the KEPServer is 49320. As shown below, once the endpoint has been selected from the available options displayed in the **OPC UA Server discove****ry** interface, the **Security mode** and **Security policy** fields are automatically filled in. **![Figure - Example discovery](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20Example%20discovery.png)** ![Figure - OPC UA Discovery Browser Example](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20OPC%20UA%20Discovery%20Browser%20Example.png) ![Figure - Example discovery 3.1](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20Example%20discovery%203.1.png) - **Step 6:** Enable **Authentication** and fill in the **User** and **Password,** if your **KEPServerEX** requires it. Remember to save the configuration.![Figure - Authentication](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20Authentication.png) - **Step 7:** Trust the **KEPServerEX** certificate in the **Certificates** section within **N3uron,** as well as the **N3uron** **OPC UA Client** certificate in the **KEPServer** OPC UA Configuration Manager. ![Figure - Certificates x](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20Certificates%20x.png) ![Figura - Trust KEP](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figura%20-%20Trust%20KEP.png) - **Step 8:** Create a tag to connect to the OPC sever: Config => Tags => New Tag ![Figure 13- New tag creation(1)](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2013-%20New%20tag%20creation(1).png) - **Step 9:** Configure the tag. All details regarding communication should be configured in the **Source** entry. First, select the module from the drop-down menu in the **Module name** settings and then enter the name of the connection that was created in previous steps into the **OPC UA Client** field. Next, click on the **OPC UA tag browser** button and select your **Node ID.** ![Figure - Example discovery tag](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20Example%20discovery%20tag.png) ![Figure - OPC UA Tag Browser 2](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20OPC%20UA%20Tag%20Browser%202.png) ![Figure - Example discovery tag 3](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20Example%20discovery%20tag%203.png) Save the tag configuration. - **Step 10:** The tag should now be available and displaying as good quality in the **Real-Time** display panel. ![Figure - Example discovery tag 4](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%20-%20Example%20discovery%20tag%204.png)