For Heidenhain TNC and iTNC controllers CNCnetPDM enables you to acquire and monitor machine-, process- and quality-data. Seamless integration of the data with your business information systems as well as modification of parameters at these controllers is also supported by CNCnetPDM.
This document describes setup and test of data acquisition from Heidenhain TNC 426, 430, 320, 620, 640 and iTNC 530 controllers.
At the controller you have to make sure that external access via LSV 2 protocol is enabled. To do so switch to programming mode click [MOD]. If a dialog opens, select ‘Machine settings -> External access’ and check if soft key ‘External access’ at the bottom is set to ‘Yes’.
It may be that external access is restricted by specific settings in file TNC.SYS in the root directory of your controller. In this case TNC.SYS contains one or more entries like:
If there is an entry for TNCPASSWORD and none for TNCPRIVATEPATH the whole TNC drive is password protected and cannot be accessed by CNCnetPDM. Comment out all lines starting with REMOTE. or the line with TNCPASSWORD by prepending a semicolon ‘;’ to get access. If entry PERMISSION is present, you can also add the name of your PC to the list.
You have to check file TNC.SYS if you see errors like: LOGIN: Area INSPECT Unexpected response from device (TNC = Access denied (LSV 2))
If you get output from the controller but for some items you see errors like: LOGIN: Area PLCDEBUG Unexpected response from device (TNC = Access denied (LSV 2)) then access to the controller’s PLC is locked.
The best way to resolve this is by accessing the controller from your PC with Heidenhain TNCremo (free). After connecting to your controller type in ‘PLC:’ into the lower Explorer Bar. Enter the key for PLC Access. Open file OEM.SYS.
Comment out PLCPASSWORD by prepending a semicolon ‘;’ and set
REMOTE.PLCPASSWORDNEEDED = NO REMOTE.PLCPASSWORDFORCED = NO
Save the file and transfer it back to the controller.TOP.
Make sure that your controller is connected via Ethernet to your company network and you get a reply when you ping the controller from your PC by using it’s IP Address. (Open an elevated command prompt and type in ping IP Address of the device e.g. ping 192.168.1.100).
If you have installed CNCnetPDM on your PC with a license other than a ‘free license’ and run this program from the folder where CNCnetPDM is installed you get unlimited output. Otherwise the program outputs a restricted set of items. Please see licensing for details or contact us if you have any questions.
Note: If you like to run this program from a different location on your PC you can simply copy your CNCnetPDM.ini file to this directory.
Download HeidenhainData.zip and extract all files to a folder on your PC.
In case you use a firewall at your PC or your company network please make sure that there is an exception for TCP Port 19000. You can use our tool Device Port Scanner to check if your controller is reachable via port 19000..
CNCnetPDM HEIDENHAIN MACHINE DATA
The program enables you to connect to your controller via Ethernet and query various machine data. Double click HeidenhainData.exe and enter the IP Address or DNS Hostname of your controller (1).
After clicking button [Query] (2) the program tries to connect to your controller, you see message ‘Connecting…’ above button [Help].
FIG 1: CNCnetPDM Heidenhain Machine Data
If successful, the program shows machine data in the area at the right (3).
If you can ping the controller but still get a ‘Connection to IP Address port 19000: Failed!’ please verify that there’s an exception for port 19000 in your firewall. Use our tool Device Port Scanner to check that your controller is reachable via that port.
As Heidenhain controllers are highly customizable by your machine manufacturer it may be that certain areas are locked or data is stored on areas different from the standard, especially PLC data.
In this case HeidenhainData outputs TNC error numbers together with program error numbers.
If you get errors you can click on button [Copy], paste the output into a text file or e mail and send it to our developers for further analysis when contacting support.