News CNCnetPDM About us Support  


The CNCnetPDM Standard OPC UA Server enables to add OPC UA Server functionality to any controller type (e.g. Fanuc, Mitsubishi, Heidenhain) supported by CNCnetPDM. It dynamically creates nodes and variables according to your device setup and allows connections from any OPC UA compliant client.


CNCnet PDM OPC UA Server output

FIG. 1: CNCnet PDM OPC UA Server output


On startup the CNCnetPDM Standard OPC UA Server automatically creates 7 communication channels with different security modes and policies.

Security Modes & Policies

Sign Basic128Rsa15
SignAndEncrypt Basic128Rsa15
Sign Basic256
SignAndEncrypt Basic256
Sign Basic256Sha256
SignAndEncrypt Basic256Sha256

For secure communication the server also loads certificate (2) incentcom.der (valid until 2030) and key file inventcomkey.der from subfolder \cert of the CNCnetPDM directory. TOP

Endpoints & Certificate created by CNCnetPDM

FIG. 2: Endpoints & Certificate created by CNCnetPDM

Endpoints (1) are created according to the settings in section [OPC UA Server] of your CNCnetPDM.ini file. If IP Address is set to 0 (default) the server creates endpoints with the DNS Hostname of the PC it runs on.

In case the server should be reachable from clients outside of your local network that cannot resolve the PC's DNS Hostname you have to enter the IP Address (IPV4) of the PC.

The TCP Port (default 4840) of the server can also be setup in your CNCnetPDM.ini file. TOP

If AnonymousAccess is set to 0 (default) clients have to provide a username and password to be able to connect. In case sections [OPC UA User n] (n = 1 - 10) do not exist the the default username and password is 'OpcUaClient'.

To add users you can simply edit CNCnetPDM.ini, adjust NumberOfUsers (default = 1), copy and paste the whole [OPC UA User 1] section and assign an a different section number e.g. [OPC UA User 2]. To allow anonymous connections set AnonymousAccess = 1.

ReconnectAfter defines the interval (seconds) CNCnetPDM should use to try to restart the OPC UA Server in case it goes down.

To enable automatic startup of the OPC UA Server together with CNCnetPDM you can set StartOffline = 0. TOP

Activities of the server are logged to file log_ua_YYMMDD.txt (year, month, day) in subfolder \log of CNCnetPDM.


Identifier type for all node objects and variables is 'String' (1). Initially the OPC UA Server creates a base node object 'CNCnetPDM' under root node 'Objects' in namespace 1.

For all devices connected to CNCnetPDM the server automatically creates device node objects (under node 'CNCnetPDM') with names (2) according to their device number as defined in section [RS232] of CNCnetPDM.ini TOP

OPC UA Server Nodes & Variables

FIG. 3: OPC UA Server Nodes & Variables

Variables under each device node object are created based on the ini file of the device connected to CNCnetPDM. The OPC UA variable name is equal to the Tag name of a specific signal.

For example, if you have defined an entry for output of 'Main program' with name PRGMN from device number 1000 variable PRGMN (3) is added to device node object 1000.

The actual value of the OPC UA variable gets updated by the Tag value output by the specific device driver. So, if the device driver outputs value 4711 for tag name PRGMN the value for this OPC UA variable is set to 4711. TOP


  • To change parameters of the OPC UA Server at runtime you can edit section [OPC UA Server] of your CNCnetPDM.ini file and save it. Clicking on [Close] followed by [Open] in section OPC UA Server of CNCnetControl applies the changes.
  • If you're working with multiple instances of CNCnetPDM on the same PC make sure that the OPC UA Server of every instance uses a different TCP Port e.g. 4841 a.s.o.
  • In case you set NumberOfUsers to a number without a corresponding [OPC UA User number] section the username and password for the new user is set to 'OpcUaClient'.
  • Without section [OPC UA Server] in your CNCnetPDM.ini file the OPC UA server starts with it's default settings. TOP
  • To upgrade from a previous version of CNCnetPDM you can copy & paste the following lines into your existing CNCnetPDM.ini file:
[OPC UA Server]
IP Address = 0
; Endpoints of OPC UA Server (0=DNS Hostname or specific IP)
Port = 4840
; Listen port of OPC UA Server (default=4840)
AnonymousAccess = 0
; Allow anonymous access to OPC UA Server (0=no 1=yes)
RestartAfter = 10
; Try to restart OPC UA Server after n seconds it goes down
StartOffline = 1
; Start CNCnetPDM without OPC UA Server (0=no 1=yes)
NumberOfUsers = 1
; Number of OPC UA usernames and passwords (default=1, max=10)

[OPC UA User 1]
Username = OpcUaClient
Password = OpcUaClient


Privacy notice

This website uses cookies. By continuing to use it you agree to our privacy policy.

Support | CNCnetPDM Manual | Overview

CNCnetPDM Version User Manual | Here you can find everything you need to... [read more]

Support | CNCnetPDM Manual | Setup

This section describes the steps to install CNCnetPDM. EXTRACT FILES Create a folder for CNCnetPDM on your PC or at a server. Due to Windows UAC please do... [read more]

Support | CNCnetPDM Manual | Foreground Program

This section describes the steps to start CNCnetPDM as a foreground program. After extracting the files it is possible and save to immediately start CNCnetPDM. If you like to... [read more]
Foreground Program

Support | CNCnetPDM Manual | Background Service

This section shows the steps to install and start CNCnetPDM as a background service. CNCnetPDM is able to and, in a production environment, usually runs as a windows background... [read more]
Background Service

Support | CNCnetPDM Manual | Instances

This section describes the steps to setup and run multiple instances of CNCnetPDM on a single PC. In case you would like or have to work with different parameters for specific... [read more]

Support | CNCnetPDM Manual | CNCnetPDM INI File

This section describes the steps to adjust CNCnetPDM via it's INI file according to your needs. CNCnetPDM.ini contains all information needed to control the functions of the... [read more]

Support | CNCnetPDM Manual | MTConnect Overview

The CNCnetPDM MTConnect Adapter enables you to access machine controllers connected to CNCnetPDM from within your applications or any MTConnect compatible program like an... [read more]
MTConnect Overview

Support | CNCnetPDM Manual | MTConnect Getting Started

Here you can find everything you need to know to get started with the CNCnetPDM MTConnect adapter. This section shows all necessary steps to setup CNCnetPDM, use the MTConnect... [read more]
MTConnect Getting Started

Support | CNCnetPDM Manual | MTConnect Standard Agent 1.3

This document describes setup of the MTConnect Standard Agent Version 1.3 it’s usage and test with the CNCnetPDM MTConnect Adapter. CNCNETPDM SETUP | AGENT... [read more]
MTConnect Standard Agent 1.3

Support | CNCnetPDM Manual | SQL Server Database Tables

This section describes the steps to setup an MS SQL Server database and required as well as optional tables for CNCnetPDM. Note: Starting with CNCnetPDM Ver. the names of... [read more]
SQL Server Database Tables

Support | CNCnetPDM Manual | Oracle Database Tables

This section describes the steps to setup required and optional database tables for CNCnetPDM in case you're using an Oracle database. Note: Starting with CNCnetPDM Ver.... [read more]
Oracle Database Tables

Support | CNCnetPDM Manual | MySQL MariaDB Database Tables

This section describes the steps to setup required and optional database tables for CNCnetPDM in case you're using a MySQL or MariaDB (Version >= 5.5!)  database.... [read more]
MySQL MariaDB Database Tables

Support | CNCnetPDM Manual | Database Connectivity

To connect to a database CNCnetPDM uses a Universal Data Link (.udl) file that contains information about your database. Connect to an MS SQL Server database... [read more]
Database Connectivity

Support | CNCnetPDM Manual | Database Output

For both, MS SQL-Server and Oracle databases CNCnetPDM writes data acquired from devices to table RawDataTable (default MTH_RAW_DATA) and/or... [read more]
Database Output

Support | CNCnetPDM Manual | Licensing

When you start the program or service the first time without a license CNCnetPDM automatically creates a license key for your copy. Without a purchased license key initially this... [read more]
Modified: 2020-12-05