News CNCnetPDM About us Support  
         
  

MTCONNECT OVERVIEW | CNCNETPDM MANUAL

The CNCnetPDM MTConnect Adapter enables you to access your machine controllers directly from within your applications or any MTConnect compatible program like an MTConnect Agent.

You can read all data that affects manufacturing by using this powerful API. It also allows you to change or set variables or parameters at the controllers, Appart from the ability to 'tag' devices with current work-order, operation and/or part-number it provides functionality to switch on-off controller communication and set active shifts for machines.

General

Basically the MTConnect Adapter is a Windows Socket Server (Winsock) that outputs or receives data to or from any Windows Socket Client. A client can be your own application or any MTConnect standard compatible program such as an MTConnect Agent.

The principle adapter data format is a simple plain text stream separated by the pipe character '|'. Every line except for commands starts with a timestamp in UTC. The remainder of the line is a key followed by data – depending on the type of data item is being written to. TOP

A very simple set of events and samples output by the adapter will look something like this:

2018-07-21T14:33:02.758Z|1000:COMP_QTY|27|1000:STATUS|5|

For events and samples the data is pipe delimited key | value pairs with multiple pairs on one line. Each line has at least one key | value pair on it. The line ends with a CR-LF (ASCII 15 followed by ASCII 10). For adapter output data the key is built by the Tag Name you defined in your device specific INI file prepended by the machine number as defined in CNCnetPDM.ini. Both items are separated by the colon character ':'. TOP

Commands from a client to the adapter (except ‘* PING’) also work with key value pairs delimited by the pipe character. An input command line must contain at least one command and must end with a LF (ASCII 10) or CR-LF (ASCII 15 followed by ASCII 10). The adapter will discard any lines where the data is malformed or empty and log an error into the file log_mtc_YYMMDD.txt

An exemplary input command line could look like this:

* device|1000|off

The command in the example above would switch off communication between CNCnetPDM and device number 1000, * device|1000|on would switch it on again. TOP

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-overview
Support | CNCnetPDM Manual | Overview
CNCnetPDM Version 6.0.0.0 User Manual | Here you can find everything you need to... [read more]
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... [read more]
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. 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]
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]
CNCnetPDM INI File
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]
Licensing
Modified: 2018-07-23