News CNCnetPDM About us Support  
         
Device Driver | MTConnect | Support | inventcom
  

DEVICE DRIVER | MTCONNECT

The CNCnetPDM MTConnect device driver allows monitoring of machine and process data in near real time from controllers equipped with an MTConnect Adapter, either built-in or on a separate PC.

BENEFITS | PREREQUISITES | DOWNLOAD DRIVER | LICENSING | SETUP CNCNETPDM | USAGE | ADJUST ITEMS | TROUBLESHOOTING | UPGRADE DRIVER

BENEFITS

The CNCnetPDM MTConnect device driver enables you to

  • Acquire data simultaneously from multiple machines by using a single instance of CNCnetPDM
  • Mix devices with different MTConnect Adapters within a single instance of CNCnetPDM
  • Standardize output of MTConnect enabled controllers and other controller types
  • Eliminate the need to install and maintain a separate MTConnect Agent program per-machine at the PC
  • Adjust output items and tag tames on a per-machine basis according to your needs
  • Standardize MTConnect Agent configuration
  • Reduce costs for implementation and maintenance by using one solution for all devices TOP

PREREQUISITES

Please setup your controller and the PC properly and make sure that you can connect to it and get data with our MTConnect Agent Tester.

  • Important note: If you already have CNCnetPDM running on your PC with a device driver that works with solicited messaging (e.g. Fanuc, Heidenhain) you have to create a separate instance of the service for MTConnect. TOP

DOWNLOAD DRIVER

LICENSING

This device driver requires at least Version 6.3.1.0 of CNCnetPDM and also works with a free license. However, in this mode the driver only outputs the first two items you defined in section [MTC TAG NAMES]. With a valid license you are able to output up to 70 items from the controller, see licensing for details. TOP

SETUP CNCNETPDM

Edit CNCnetPDM.ini (or CNCnetPDM+Instance.ini) and modify it as follows, leave all other values at their default:

Section [GENERAL]:

  • AcquisitionMethod = 2
    This driver uses unsolicited (event driven) communication.
  • PollInterval = 10
    Define the interval (number of seconds) for checking if the device is connected.
  • ReconnectAfter = 3
    Define after how many successful connection checks CNCnetPDM should try to reconnect to the controllers MTConnect Adapter if the device changed its state from disconnected to connected. As the machine needs some time to start up the combination of PollInterval and ReconnectAfter should be long enough e.g. 10 x 3 = 30 sec. For older machines increase this value.
  • CollectStates = 0
  • CollectCounters = 0

For initial testing its recommended to set CollectStates and CollectCounters to 0. If you set them to 1 please make sure that you have matching tag names for OEE device states and part counter set up in the respective machine INI file. TOP

Section [RS232]:

  • If you identify your controller by IP address change it from 127.0.0.1 to its correct address e.g. 192.168.1.100.
  • If you identify your controller by DNS-Hostname change it from localhost to its correct value e.g. MAZAK01.
  • Change the name of the device driver from device.dll to mtcclient.dll

A correct example would look like:

[RS232]
1 = 1000;19200;8;N;1;MAZAK #1;192.168.1.100; 0;0;MAZAK01;0;0; none;none;0;mtcclient.dll

  • Save CNCnetPDM.ini TOP

USAGE

  • Start CNCnetPDM, foreground program is sufficient (Start thread)
  • CNCnetPDM automatically copies the original mtcclient.dll and inserts the machine number as configured in the INI file, e.g. mtcclient_1000.dll for machine 1000.
  • In addition an INI file with the same name is automatically created by the device driver, e.g. mtcclient_1000.ini for your first machine.
  • Double click CNCnetControl, if your device number is 1000 and the device name is MAZAK #1 the output should be similar to the one below:

CNCnetControl MTConnect device driver

FIG 1:    CNCnetControl MTConnect device driver

Here the machine (1) shows up as connected (2) which is good. If you receive data from the controllers MTConnect Adapter you can see it on the right side (3). TOP

The line starting with O contains tag name | value pairs from valid tag names as defined in the INI file of the device. If you didn’t change the INI file you get something like the following:

1000 10/07/2019 05:05:16 PM O mode| AUTOMATIC| 10000000009

Tag name and value are delimited by a pipe ‘|’ symbol. This allows CNCnetPDM to create MTConnect or database output for every tag | value pair.

To setup a CNCnetPDM background service see: Setup CNCnetPDM as a background service TOP

ADJUST ITEMS

This device driver enables to dynamically modify, enable or disable tags that should be acquired from the controller. It also allows to define the frequency and content of ping commands that have to be sent to the Adapter. Definition of a tag name for availability enables the driver to determine if the controller connected to its Adapter is up or down. By setting a tag name and possible values for OEE device states you can output numeric values for these states. Setup of a part counter tag name allows incremental or cumulative part counting in CNCnetPDM.

Section [GENERAL] contains information about the ping interval in seconds (default 10) and the command (default ‘* PING’) to be sent to the Adapter. TOP

In section [MTC TAG NAMES] you can limit tags to be acquired from the device. Valid tags are identified by their name and have to be delimited with pipe ‘|’ characters. By default 34 names are included, maximum = 70.

In section [AVAILABILITY] you can define a tag name that should be used to determine if the controller connected to its Adapter is up or down (default ‘avail’). MTC Adapters usually provide this tag. For Adapters that do not output this tag you can use any tag name that changes to ‘UNAVAILABLE’ if the controller goes down f.i. ‘execution’.

Section [OEE DEVICE STATES] contains a tag name (default ‘execution’) and its possible values for states Producing (2) (default ‘active’), Manual (3) (default ‘stopped’) and Interrupted (4) (default ‘interrupted’). CNCnetPDM automatically reports (0) for devices that are not reachable at all and (1) for reachable devices where the Adapter does not respond. TOP

In section [PART COUNTER] you can define which tag name (default ‘part_count’) outputs numeric part counts. This enables you to use CNCnetPDM’s cumulative or incremental part counting features that allow detection of reset operations at the controller.

Note: To change the content of this INI file while CNCnetPDM is running open it with a text editor such as notepad, make the desired changes and save the file. To apply the changes immediately you can click on the machine in CNCnetControl on the left side followed by clicking buttons ‘Close’ and ‘Open’ above the section ‘Devices’. TOP

TROUBLESHOOTING

  • The device driver writes a log file entry for any communication issue to the log file of the device. The file can be found in subdirectory \log of your CNCnetPDM program folder. The file format for the log file is log_ + device number + _ + date.txt. Please check this file first if you observe an issue.
  • If the machine shows a red icon, state disconnected the machine is not reachable at all. This has nothing to do with the device driver, the controller is switched off, it’s a network issue, DNS Hostname or IP Address is wrong. With CollectStates = 1 set in CNCnetPDM.ini you get output E 0 in regular intervals in this case.
  • If the machine shows a green icon, state connected but you do not see any output even there is activity at the controller the machine is reachable but the MTConnect device driver is not able to connect to the Adapter at the controller. In this case, check your controller setup and the parameters used in section [RS232] of CNCnetPDM.ini. Please use the tool MTConnect Agent Tester to check if you are able to connect to the Adapter and get data. With CollectStates = 1 set in CNCnetPDM.ini you get output E 1 in regular intervals in this case.
  • If you do not get any tag data please make sure that entries CollectOrders, CollectQuality and CollectFeeder are set to 1 in section [General] of CNCnetPDM.ini.
  • If specific tag names are not output check first with the MTConnect Agent Tester that you get output. Then check if the tag names sent by your Adapter are included in section [MTC TAG NAMES]. TOP

UPGRADE DRIVER

If you already have a previous version of the driver installed and would like to upgrade to the most recent version proceed as follows:

  1. Stop any CNCnetPDM background service or foreground program that uses the device driver
  2. Extract all content of mtcclient_dll.zip into the folder where you have CNCnetPDM installed, overwrite the existing files.
  3. Delete all mtcclient_NNNN.dll (NNNN = machine number) files. If you already have created adapted INI files for specific devices do NOT delete the mtcclient_NNNN.ini files.
  4. After restarting CNCnetPDM upgraded device driver versions for all machines are automatically created. TOP

Privacy notice

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

https://www.inventcom.net/support/mtconnect/device-driver
Support | MTConnect | Release Notes
For release notes on the CNCnetPDM MTConnect Adapter please see CNCnetPDM Release Notes . (11/28/2019) An updated version of our device... [read more]
Release Notes
Support | MTConnect | Adapter
The CNCnetPDM MTConnect Adapter provides a powerful Application Program Interface (API) that enables bidirectional communication between manufacturing devices connected to... [read more]
Adapter
Support | MTConnect | Open Source Client C-Sharp
This article shows you how to create and use a C# socket client application that enables you to access CNCnetPDM and read/write data from/to your machines. The... [read more]
Open Source Client C-Sharp
Modified: 2019-11-29