News CNCnetPDM About us Support  


This document describes setup of the MTConnect Standard Agent it’s usage and test with the CNCnetPDM MTConnect Adapter.


As this example uses a simple CNCnetPDM setup it is highly recommended to setup CNCnetPDM as described in document ‘MTConnect Getting Started’. To view output from multiple devices you should setup two devices in section [RS232] of CNCnetPDM.ini with the following settings:

1 = 1000;19200;8;N;1;CITIZEN #5;;0;0;localhost;0;0;none;none;0;device.dll
2 = 1001;19200;8;N;1;GILDEMEISTER #5;;0;0;localhost;0;0;none;none;0;device.dll


MTConnect Agent Setup

In this example we’re using the MTConnect Agent Vista Version from

Start by extracting all files from the ZIP archive to a folder of your choice.

Next, open folder \cppagent_win32_Vista_1.3.0.17_bin, create a new subfolder named \Fanuc and a file named fanuc.xml with the entire content of fanuc.txt (copy and paste it).

Navigate to folder \cppagent_win32_Vista_1.3.0.17_bin\bin\. Edit file agent.cfg and replace the lines before ‘Files’ with the following:

Devices = ../Fanuc/fanuc.xml
AllowPut = true
ReconnectInterval = 100000
BufferSize = 17
SchemaVersion = 1.3

Adapters { 
   fanuc { 
      Host =
      Port = 7878

If CNCnetPDM is running on a remote PC please replace Host = with the IP Address of the remote PC.

Save file agent.cfg.

Open an elevated command prompt and navigate to folder …\cppagent_win32_Vista_1.3.0.17_bin\bin\

With CNCnetPDM running type in: agent debug TOP

Adapter Output Test

Next open your favorite internet browser and enter http://localhost:5000/current/ (1). If the agent is running on a remote PC replace localhost by the IP Address of the remote PC. You should see output from two devices similar to the following:

MTConnect Adapter output

FIG 1:    MTConnect Adapter output

Values for STATUS and COMP_QTY are shown as events in section path for device 1000 (2) and 1001 (3). If you refresh your browser it outputs updated values for your devices. 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 | 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 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 | 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-07-22