News CNCnetPDM About us Support  


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 store data in a database you can set up database tables and database connectivity, see chapters ‘DATABASE TABLES MS SQL SERVER’, 'DATABASE TABLES ORACLE' or 'DATABASE TABLES MYSQL MARIADB' and ‘DATABASE CONNECTIVITY’. By default CNCnetPDM does not try to establish a connection to a database and starts in ‘offline-mode’ and writes all data to its offline-text-file. It is recommended to make yourself familiar with the parameters used by CNCnetPDM, see chapter ‘CONFIGURE CNCNETPDM.INI’. The following instructions were made on a PC with database tables installed and connectivity set up.

Double click on CNCnetPDM opens a dialog:

Initial dialog window

FIG 1:    Initial dialog of CNCnetPDM

Initially in section Service server (1) is set to ‘Local System’ (this PC), no instance for CNCnetPDM is defined (2), state is ‘not installed’. The second section 'Thread' allows to run CNCnetPDM as a user program in foreground under your user account instead of a background service. It is recommended to initially start CNCnetPDM in this mode. If you click on ‘Start Thread’ CNCnetPDM performs some actions on your PC:

CNCnetPDM automatically creates INI file CNCnetPDM.ini with default settings that are save known to work. In chapter ‘CONFIGURE CNCNETPDM.INI’ you can find anything you need to know about configuring CNCnetPDM according to your needs.

CNCnetPDM also automatically creates file connect.udl which enables you to setup a database connection see chapter ‘DATABASE CONNECTIVITY’ for details. TOP

Subfolder ‘log’ is also created under the folder where you extracted the program. It contains the log files written by CNCnetPDM. Folder name and location can be adjusted in CNCnetPDM.ini. With one device (Device number = 1000) the following files are written (YYMMDD = actual year, month and day):




Device specific messages, one per device, device number is taken from CNCnetPDM.ini


Messages from administration service e.g. high water mark reached


Database related messages, e.g. connection succeeded, failed, insert errors


Messages about writing data to offline-text-files if database goes down


Messages related to communication with your application via the MTConnect interface of CNCnetPDM


Messages from the main service about devices, instance, license and threads started by CNCnetPDM


Messages about offline-text-files written to the database


Subfolder ‘offline’ is also created. In case you do not use a database or your database cannot be reached or goes down all data from devices can be written into offline-text-files created by CNCnetPDM in this folder. Location and name of offline-text-files can be configured in CNCnetPDM.ini. Data from offline-text-files can be written to the database after database connectivity is established or the database is up again. Initially the file is named offline + number of offline file written.txt. TOP

In configuration file CNCnetPDM.ini 4 entries are automatically added:

In section [GENERAL] License = license number is created. Initially this is a demo license. The only limitation of this license type is that device drivers other that device.dll output a restricted number of items. See section LICENSING for more details.

Section [Connect] gets an additional entry UDL_DATEI which points to the .udl file connect.udl that can be configured with information about your database connection. You can create different .udl files with different names for different databases. Please make sure that only one of them is active in CNCnetPDM.ini at a time. Inactive .udl files can be commented out by a prefixed semicolon ‘;’.

In section [Offline] entry FILENAME is created. This entry points to the folder and file name that should be used for offline-text-files. You can change that according to your needs. Please make sure that you always specify folder AND file name in this case.

After starting CNCnetPDM as a program field State shows ‘Running’ and the ‘Stop Thread’ button becomes active. Clicking on ‘Stop Thread’ stops the program. Clicking on button ‘Close’ also stops the program and closes the dialog. TOP

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 | 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 your machine controllers directly 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
This document describes setup of the MTConnect Standard Agent it’s usage and test with the CNCnetPDM MTConnect Adapter. Prerequisites As this example uses a simple... [read more]
MTConnect Standard Agent
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. Although not absolutely necessary for testing it is... [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. For an Oracle database the information... [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. For... [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 MTH_RAW_DATA and/or MTH_ONLINE_DATA. Both tables have the following columns... [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 number for your copy. Without a license number initially... [read more]
Modified: 2018-12-05