News CNCnetPDM About us Support  
       
  

FOREGROUND PROGRAM | CNCNETPDM MANUAL

TOP

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. By default CNCnetPDM starts its output modules in ‘offline-mode’ means that it does not automatically start it's MTConnect Adapter or OPC UA Server and doesn't try to establish a connection to a database. It is recommended to make yourself familiar with the parameters used by CNCnetPDM, see chapter ‘CONFIGURE CNCNETPDM.INI’:

Double click on CNCnetPDM opens a dialog:

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 everything 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.

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):

FILE NAME

DESCRIPTION

log_1000_YYMMDD.txt

Device specific messages, one per device, device number is taken from section [RS232] in CNCnetPDM.ini

log_admin_YYMMDD.txt

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

log_db_YYMMDD.txt

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

log_file_YYMMDD.txt

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

log_mtc_YYMMDD.txt

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

log_master_YYMMDD.txt

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

log_readfile_YYMMDD.txt

Messages about offline-text-files written to the database

log_ua_YYMMDD.txt

Messages related to activities of CNCnetPDM's OPC UA Server

FIG 2:    Log files of CNCnetPDM

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.

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.

Privacy notice

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

https://www.inventcom.net/support/cncnetpdm-manual/foreground-program

Support | CNCnetPDM Manual | Overview

Version 8.0.0.0 User Manual | Here you can find everything you need to install, setup and configure CNCnetPDM for your needs.... [read more]
Support | CNCnetPDM Manual | Overview

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 NOT to... [read more]
Support | CNCnetPDM Manual | Setup

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]
Support | CNCnetPDM Manual | 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 | Instances

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 | CNCnetPDM INI File

Support | CNCnetPDM Manual | OPC UA Server

The CNCnetPDM Standard OPC UA Server enables to add OPC UA Server functionality to any controller type (e.g. Fanuc, Mitsubishi, Heidenhain, PLCs) supported by CNCnetPDM. It... [read more]
Support | CNCnetPDM Manual | OPC UA Server

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]
Support | CNCnetPDM Manual | 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]
Support | CNCnetPDM Manual | 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 SETUP |... [read more]
Support | CNCnetPDM Manual | 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. 6.3.3.1 the names of... [read more]
Support | CNCnetPDM Manual | 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]
Support | CNCnetPDM Manual | 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]
Support | CNCnetPDM Manual | 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]
Support | CNCnetPDM Manual | 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]
Support | CNCnetPDM Manual | 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]
Support | CNCnetPDM Manual | Licensing
Modified: 2023-11-28