Professional Documents
Culture Documents
This document describes setup and test of data acquisition from Heidenhain TNC 426, 430, 320,
620, 640 and iTNC 530 controllers.
CONTROLLER SETUP
To avoid that you cannot access the controller or get login errors you first have to make sure that
external access is enabled in general.
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’. If the soft
key is not shown you can make it visible by inserting or uncommenting entry in file OEM.SYS:
REMOTE.LOCKSOFTKEYVISIBLE = YES
This file can be accessed 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 (default:
807667). Then open, edit and transmit file OEM.SYS back to the device.
It also may be that external access is restricted by specific settings in file TNC.SYS in the root
directory of your controller. Access it by typing in ‘TNC:\’ into the lower Explorer Bar of TNCRemo.
REMOTE.PERMISSION = PC2225;PC3547
REMOTE.TNCPASSWORD = KR1402
REMOTE.TNCPRIVATEPATH = TNC:\RK
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. Open file OEM.SYS.
PLCPASSWORD = PLC
REMOTE.PLCPASSWORDNEEDED = YES
REMOTE.PLCPASSWORDFORCED = YES
REMOTE.PLCPASSWORDNEEDED = NO
REMOTE.PLCPASSWORDFORCED = NO
PC SETUP
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).
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..
After clicking button [Query] (2) the program tries to connect to your controller, you see message
‘Connecting…’ above button [Help].
If successful, the program shows machine data in the area at the right (3).
LICENSING
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.
DEFAULT OUTPUT
Initially HeidenhainData queries data that is known to be output by most adapted controllers. At
the top of the output area you can see information returned by your controller:
CONTROLLER INFORMATION
TNC type, NC and PLC version.
PROGRAM INFORMATION
iTNC 530 and newer: You get information about the currently selected program and the actual
block number.
EXECUTION MODE
iTNC 530 and newer: You can see the current execution mode of the machine. Possible values
are:
Manual(0)
MDI(1)
Pass References(2)
Single Step(3)
Automatic(4)
Undefined(5)
For older controllers (e.g. TNC 426 or 430) HeidenhainData reads this data from the PLC, possible
values (either 0 or 1):
Manual M4150
Handweel M4151
MDI M4152
Auto single M4153
Auto full M4154
Traversing M4155
PROGRAM STATUS
iTNC 530 and newer: You get information about the program state, this may be one of the
following:
Started(0)
Stopped(1)
Finished(2)
Cancelled(3)
Interrupted(4)
Error(5)
Error cleared(6)
Idle(7)
Undefined(8)
For controllers (e.g. TNC 426 or 430) HeidenhainData outputs PLC data, possible values (either 0
or 1):
Running M4176
Interrupted M4175
Error M4177
Stop Ext M4220
Stop Int M4221
Emerg. A M4178
Emerg. B M4222
Emerg. C M4582
Finished M4170
OVERRIDE INFORMATION
iTNC530 and newer: Override information is output in percent for Feed, Speed and Rapid.
AXIS DATA
Axis information output depends on the number of available axes on your machine. The output
unit may be metric or inch according to the setup of your controller.
CUTTER DATA
As with axis data information about cutters and their position depends on the number of available
cutters on your machine. The output unit may again be metric or inch.
PLC DATA
Speed(p) D356: Programmed speed
Speed(s) D364: Target speed
Speed(a) D368: Actual speed
Feed(p) D360: Programmed feed rate
Feed(a) D388: Actual feed rate
Override W492: Override (% to be divided by 100)
OP Mode W272: Execution mode (subtract 1 to get real mode)
Speed(s) W320: Target speed
Speed(a) W322: Actual speed
TOOL INFORMATION
(requires NC software >= 34049x SP 04!):
Tool number
Tool index
Tool axis
Tool length
Tool radius
TROUBLESHOOTING
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.
ADAPTED CONTROLLERS
Controller NC Software Version Major Service Pack