News CNCnetPDM About us Support  
       
  

MTCONNECT STANDARD AGENT 1.3 | CNCNETPDM MANUAL

TOP

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 | TEST AGENT OUTPUT

CNCnetPDM Setup

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 define two devices in section [RS232] of CNCnetPDM.ini with the following settings:

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

To see all output used in this example you should set:

CollectStates = 1
CollectCounters = 1
CollectQuality = 1
CollectFeeder = 1

Start CNCnetPDM

MTConnect Agent Setup

In this example we’re using the MTConnect Agent Vista Version 1.3.0.17 from https://github.com/mtconnect/cppagent/releases

1. Start by extracting all files from the ZIP archive to a folder of your choice.
2. Next, open folder \cppagent_win32_Vista_1.3.0.17_bin\, create a new subfolder named \CNCnetPDM and a file named Devices.xml with the entire content of Devices13.txt (copy and paste it). Note that each value for name= of a DataItem line in Devices.xml matches Name = of a section in device_machinenumber.ini (e.g. device_1000.ini) of CNCnetPDM. STATUS and COMP_QTY are defined in CNCnetPDM.ini.

Relationship between INI and XML

FIG 1: Relationship between device_1000.ini and Devices.xml

3. 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 = ../CNCnetPDM/Devices.xml
ReconnectInterval = 10000
BufferSize = 20
SchemaVersion = 1.3
Port = 5000 # default port number for agent
UpcaseDataItemValue = false
MonitorConfigFiles = true # True = reload Devices.xml and agent.cfg if they are changed

Adapters { 
   CNCnetPDM { 
      Host = 127.0.0.1
      Port = 7878
	  AdditionalDevices = 1000,1001
   }
}
FIG 2: MTConnect Agent (Version 1.3) configuration file

4. If CNCnetPDM is running on a remote PC please replace Host = 127.0.0.1 with the IP Address of the remote PC.
5. Save file agent.cfg.
6. Open a command prompt and navigate to folder …\cppagent_win32_Vista_1.3.0.17_bin\bin\
7. With CNCnetPDM still running type in: agent debug

Agent 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 Ver. 1.3

FIG 3: MTConnect Adapter (Version 1.3) output

The MTConnect Agent outputs (2) all values defined in Devices.xml  that match a section name in CNCnetPDM's device_machinenumber.ini file. Names for type DeviceStateNumber and PartCount are defined in CNCnetPDM.ini. Values for types AssetChanged, AssetRemoved and Availability are automatically added by the Agent. If you refresh your browser it outputs updated values for your devices.

Privacy notice

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

https://www.inventcom.net/support/cncnetpdm-manual/mtconnect-standard-agent-13

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 | 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. By default... [read more]
Support | CNCnetPDM Manual | 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]
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 | 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-25