Sei sulla pagina 1di 80

1 Update Information No.

1.1 Overview

1.1.1 Released Service Packs


The following service packs have been released for NC software 340 551-01:
„ Service pack 1: 340 551-01 SP1 March 2006
„ Service pack 2: 340 551-01 SP2 May 2006
„ Service pack 3: 340 551-01 SP3 October 2006
„ Service pack 4: 340 551-01 SP4 November 2006

1.1.2 Released NC Software


The following versions of the NC software have been released:
„ NC software 340 551-02 December 2006

December 2006 Overview 1–1


1.2 NC Software 340 551-xx

Service packs The following service packs have been released:

Service pack 1 NC software Release


340 551-01 SP1 340 551-01 March 2006

Service pack 2 NC software Release


340 551-01 SP2 340 551-01 May 2006

Service pack 3 NC software Release


340 551-01 SP3 340 551-01 October 2006

Service pack 4 NC software Release


340 551-01 SP4 340 551-01 November 2006

1–2 HEIDENHAIN Technical Manual TNC 320


Important notes on
the software
Update from NC software 340 551-01 to 340 551-02
exchange

Backing up the „ The NC software 340 551-02 introduces a new, table-based touch-probe
touch-probe data configuration (see page 1 – 76). If you operate a touch probe on your
machine, then you must note down the touch-probe data before updating
the NC software. After the update is complete you must enter the data in
the new touch-probe table.
 Switch to the Manual mode of operation.
 Press the TOUCH PROBE soft key.
 Press the PARAMETER soft key.
 The control opens a dialog box with the touch-probe data.
 Please note down the parameters or use TNCremoNT to create a
screenshot of the current display.
Please continue with the update of the NC software.

Starting the update

Note

HEIDENHAIN recommends: As an aid during the software update, connect


a USB keyboard to the control. After the new NC software has been
transferred to the control, numerous configuration steps involving the entry
of alpha-numeric characters must be performed.

Note

Please perform the update of the NC software as described in the Technical


Manual under “2.7.4 NC Software Exchange on the TNC 320” on page 2–
30.

Checking and „ After having installed the new NC software and rebooted the control, you
saving machine must check and confirm the new machine parameters. The MOD dialog box
parameters appears on the screen:
 Enter the MP code number 95148 and confirm your entry with the ENT key.
 Press the MORE FUNCTIONS soft key.
 Press the UPDATE RULES soft key.
Check the listed update rules. Each entry in the list stands for a new
parameter that was added to the system by the update.
 Exit the UPDATE RULES with the END soft key.
 Press the CONFIG DATA soft key.
Before the configuration editor opens, an informational window is displayed,
reporting the removal of the CfgRestorePosition machine parameter. Press
the NEXT soft key.
 All new machine parameters are marked with a red exclamation point in the
configuration editor. The control indicates if certain machine parameters are
faulty. Please ignore these messages for the time being.
 Important step: Press the SAVE soft key.

December 2006 NC Software 340 551-xx 1–3


 The Configuration data changed dialog box opens. Press the SAVE soft key
again. The new machine parameters are now automatically saved in the
*.cfg files.
 Press the END soft key and exit the Machine Parameter Programming
operating mode by pressing the END soft key again.
The control then continues booting.
„ After booting has completed, the error message Pocket table faulty
appears. You must now add two new columns to the pocket table. Proceed
as follows:

Changing the  Switch to the Programming operating mode without first acknowledging the
pocket table power interrupted message.
 Open the File Manager with the PGM MGT key.
 Open the pocket table. Switch to the TNC:\table directory for this. Press the
SELECT TYPE soft key, and set the display to all files by pressing the SHOW ALL
soft key. Use the arrow keys to select the tool_p.tch file and press the ENT
key.
 Switch to the table editor. To do so, press the MOD key and enter the code
number 555343.

 Press the PAGE È soft key until the cursor is on the RSV column.
 Select the 2nd soft-key row and press the INSERT COLUMN soft key.
 Next you must remove the three table columns ST, F and L, and then
immediately reinsert them.
Note

The removal and re-insertion automatically resets the three columns in the
entire pocket table. This change is necessary for the pocket table to
function correctly.

 Select the 1st soft-key row and press the PAGE È soft key once, so that
the cursor is on the ST column.
 Select the 2nd soft-key row and press the DELETE COLUMN soft key.

1–4 HEIDENHAIN Technical Manual TNC 320


 Also remove the F and L columns as described in the two previous steps.
 Press the SAVE soft key in the 1st soft-key row.
 Press the PAGE È soft key repeatedly, until the cursor is on the ST column.
 Select the 2nd soft-key row and press the INSERT COLUMN soft key.
 Also insert the F and L columns as described in the two previous steps.
 Press the PAGE È soft key repeatedly, until the cursor is on the DOC column.
 Select the 2nd soft-key row and press the INSERT COLUMN soft key.
 Press the SAVE soft key in the 1st soft-key row.
 Press the END soft key to exit the table editor.
 Press the ERR key and clear all displayed error messages by pressing the
DELETE ALL soft key.
„ As the next step you must replace the apimarker.def file in your PLC project
with a new version:

Overwriting the The definition file of the symbolic programming interface has been expanded.
apimarker.def file During the update of the NC software, a new apimarker.def file was
automatically copied to the PLC partition of the control. In order for the PLC
program to be compiled successfully, you must replace the old apimarker.def
file in your PLC project with this new file. Proceed as follows:
 Switch to the Programming mode of operation.
 Enter the MOD code number 807667 to switch to the PLC Programming
mode of operation.
 Open the File Manager with the PGM MGT key.
 Switch to the PLC:\proto\plc directory.
 Copy the new apimarker.def file to the program directory of your PLC
program. Overwrite the existing apimarker.def file:

Note

Please also copy the apimarker.def file to your PC as well, and add it to the
PLCdesignNT project. Otherwise, during the next transfer of PLC project
files to the control, the file might be overwritten by the old version.

December 2006 NC Software 340 551-xx 1–5


Configuring the Next you must change the configuration of the T0 and T1 strobes:
T strobe
 Switch to the Machine Parameter mode of operation (code number 95148).
 Open the machine configuration by pressing the CONFIG DATA soft key.
 Use the arrow keys to navigate to the config object
System/PLC/CfgPlcTStrobe.
You must perform the following change for both the keyname “ToolCall”
(T1 strobe) and for “ToolCall0” (T0 strobe).
 Enter the value FALSE in each MP_singular machine parameter.
Note

With MP_singular = FALSE you specify that the strobes are not output
individually, but collectively. This configuration is necessary for the new
tool-change sequences described on the next page. If all strobes are output
individually, the PLC run-time environment cannot ascertain the tool-
change sequence correctly.

 Also, enter the value COND_ST in each MP_condition machine parameter.


This is to specify that all T codes are only to be output when the tool number
changes.

Configuring tool- As the next step you must configure the tool-change sequences. These
change sequences settings are necessary because a new, script-based configuration of the tool-
change sequences was introduced with NC software 340 551-02.
Starting immediately, numerous new machine parameters are available for
configuration of the tool change. You must enter the names of predefined tool-
change scripts in these new machine parameters.

Danger

After entry of the following machine parameters, automatic tool-change


systems must be approached very carefully! Avoid uncontrolled states by
exactly monitoring the operation of the changer after the configuration!

Please enter the following settings in order to configure the scripts necessary
for the TOOL CALL:
 Switch to the config object
Channels/ChannelSettings/Ch-Nc/CfgPlcToolChange.
 Enter the machine parameters listed in the following table, and assign the
values listed to the parameters.
Note

The strings entered in the table under “Value:” are the names of predefined
script files for configuration of the TOOL CALL. The scripts are used to
specify in what form the T strobes are sent to the PLC.

1–6 HEIDENHAIN Technical Manual TNC 320


Machine parameters: Value:

Channels
ChannelSettings
Ch-Nc
CfgPlcToolChange
sequT0Text T0TX_V01
sequT0Tint T0TX_V01
sequT0TintS T0TX_V01
sequTextT0 TXT0_V01
sequTextText TXTX_V01
sequTextTint TXTX_V01
sequTextTintS TXTX_V01
sequTintT0 TXT0_V01
sequTintT0S TXT0_V01
sequTintText TXTX_V01
sequTintTextS TXTX_V01
sequTintTint TXTX_V01
sequTintTintS TXTX_V01
sequTintTintF TXTX_V01
sequTintTintSF TXTX_V01

 Switch to the config object System/Paths/CfgSystemCycle.


 Remove the system cycle shown under OEM_TCALL_TS_PRE/path. Move
the cursor to the MP_path parameter, press the ENT key, and delete the
path information for the cycle by pressing the CE key.
 Press the SAVE soft key.
 The Configuration data changed dialog box opens. Press the SAVE soft key
again. The new machine parameters are applied.

Restarting the You have now performed all necessary changes to the machine configuration.
control
 Please shut down the control now, and then restart it.
„ If you use the PLC basic program from HEIDENHAIN on your machine or
operate an automatic tool changer and/or a touch probe, please proceed as
follows with the “Adapting the PLC basic program” step..

December 2006 NC Software 340 551-xx 1–7


Adapting the PLC
basic program

Note

The changes described below are only necessary if you use the PLC basic
program from HEIDENHAIN.

Due to a change in a software-internal channel object, the error message


320-00c ERROR! 102 PLC Module 9433 - Error: 2 can appear in older versions
of the PLC basic program, up to Basic-NCK-V02-00. The error message is
shown on the control’s screen after the power interruption has been
acknowledged and the PLC program has been compiled.
Make the following changes to the PLC basic program:
 From the PLC project of the PLC basic program, open the file
MP_READ.SRC.
 Search for the term “Machining”.
 Please comment out the following lines:

Original:

PS S“CfgChannelGroup” ;entity name


PS S“Machining” ;Key Name
PS S“channelList” ;Attribute Name
PS K+0
PS K &KL_string_72 ;String number
CM 9433
PLX
M_display_module_error(KG_error_module_9433)

Change:

;PS S“CfgChannelGroup” ;entity name


;PS S“Machining” ;Key Name
;PS S“channelList” ;Attribute Name
;PS K+0
;PS K &KL_string_72 ;String number
;CM 9433
;PLX
;M_display_module_error(KG_error_module_9433)

1–8 HEIDENHAIN Technical Manual TNC 320


Note

The changes to the PLC basic program described below are only necessary
if you use an automatic tool changer.

Due to the newly available software support for magazine rules (see “Machine
interfacing” on page 1–29), the SQL access by the PLC basic program to the
pocket table must be adapted.
The number type intended for the table column P (magazine pocket) was
changed from “FLOAT” (floating-point number) to “INDEX” (index with
subindexes).
 From the PLC project of the PLC basic program, open the file
OEM_FUNC.SRC.
 Add the following lines to the end of the file:
(before the EM command)

L K+xx ;xx = Number of pockets in magazine


= DG_TC_magazine_max_pocket

 From the PLC project of the PLC basic program, open the file
T_STATUS.SRC.
 Please comment out the following line:

Original:

L Spindle.DG_tool_in_spindle
/ K+10
= Spindle.DG_tool_in_spindle

Change:

L Spindle.DG_tool_in_spindle
;/ K+10
= Spindle.DG_tool_in_spindle

Note

In older versions of the PLC basic program, the operand


Spindle.DG_tool_in_spindle may have the name DG_tool_in_spindle.

December 2006 NC Software 340 551-xx 1–9


Note

The changes described below are only necessary if you operate a touch
probe on the machine. Please skip these steps if you do not use the probing
functions.

Expanding the tool Because of the newly introduced touch-probe table, the tool table must be
table by the touch- expanded by the new table column TP_NO (number of the touch probe in the
probe column touch-probe table). Proceed as follows:
 Switch to the Programming mode of operation.
 Switch to the configuration editor (MOD code number 95148).
 Navigate to the config object
System/TableSettings/CfgTableProperties/T/columnKeys.
 Add a new line to the end of the list:
Move the cursor to the last line of the list and press the MORE FUNCTIONS and
INSERT soft keys.
 Enter the column name T.TP_NO as the value in the new line.
 Save the change via the SAVE soft key, and exit the configuration editor by
pressing the END soft key.
Now you must activate via the table editor the new table column you just
configured. Proceed as follows:
 Switch to the Programming mode of operation.
 Press the PGM MGT key.
 Switch to the TNC:\table directory and open the file tool.t.
 Press the MOD key and enter the code number 555343. The control opens
the table editor.
 Press the PAGE È soft key repeatedly, until the cursor is on the lowest table
column TP_NO.
 Select the 2nd soft-key row and press the INSERT COLUMN soft key.
 Press the SAVE soft key in the 1st soft-key row.
 Press the END soft key to exit the table editor.
 In the column TP_NO, enter the number of the touch probe in the touch-
probe table.

Creating a touch- A new table type was introduced for the management of touch-probe data.
probe table Touch-probe tables are identified by the file extension .tp. After the software
update, you must create the file tchprobe.tp via the File Manager, and enter
the data of your touch probe in it:
 Switch to the Programming mode of operation.
 Press the PGM MGT key.
 Switch to the TNC:\table directory.
 Press the NEW FILE soft key in the 3rd soft-key row.
 Enter tchprobe.tp as the file name and confirm your entry with the ENT key.
You can open the touch-probe table in the Manual Operation and
El. Handwheel modes of operation via the PROBE FUNCTION and
TCH PROBE TABLE soft keys.

1 – 10 HEIDENHAIN Technical Manual TNC 320


Transferring the In order to configure a touch probe, you must enter the general touch-probe
touch-probe data data of the touch probe in the tool table. The specific touch-probe data must
be saved in the touch-probe table. Please proceed as follows:
 Insert a new line with the number “1” in the touch-probe table.
 Select the appropriate type of touch probe from the TYPE column.
 Enter the values you noted from the old touch-probe configuration for
NC software 340 551-01 in the new touch-probe table:

Values from the old touch-probe Column in the new touch-probe


configuration table tchprobe.tp
Center offset 1 CAL_OF1
Center offset 2 CAL_OF2
Calibrate angle CAL_ANG
Meas. rapid trav. FMAX
Feed for probing F
Setup clearance SET_UP
Max. meas. path DIST

 Open the tool table.


 In the tool table, find the tool that was given in the old touch-probe
configuration under Tool no.
 Enter the following data from the old touch-probe configuration in the
corresponding line:

Values from the old touch-probe Column in the tool table


configuration tool.t
Probe length L
Touch probe radius R0 R
Touch probe radius R2 R2

 Enter the value “1” in the column TP_NO. The entry must correspond to the
line number (column NO) in the touch-probe table.

Touch probe with If you use a touch probe which requires an oriented spindle stop, you must
oriented spindle enter the following settings:
stop
 Switch to the Programming mode of operation.
 Switch to the configuration editor (MOD code number 95148).
 Navigate to the config object System/Probing/CfgTouchProbe.
 In the optional machine parameter MP_posAngle, enter the value from the
Spindle angle column of the old touch-probe configuration for NC software
340 551-01.
 Press the SAVE soft key.
 The Configuration data changed dialog box opens. Press the SAVE soft key
again. The new machine parameter is applied.

December 2006 NC Software 340 551-xx 1 – 11


Adapting the PLC
basic program

Note

The changes described below are only necessary if you use the PLC basic
program from HEIDENHAIN.

Due to the new touch-probe table (TNC:\table\tchprobe.tp), the SQL access by


the PLC basic program to the touch-probe data must be adapted:

 From the PLC project of the PLC basic program, open the file
TOUCHPRO.SRC. Please adapt the following line:

Original:

M_SQL_read_int(S“SELECT ORIENT_SPINDLE FROM TCHPROBE WHERE ACTNR ==


”,S “1” ,K&DL_status_orientation

L DL_status_orientation
== K+1
= ML_TS_orientation_on

Change:
Please comment out four lines as shown below, and add two new lines:

;M_SQL_read_int(S“SELECT ORIENT_SPINDLE FROM TCHPROBE WHERE ACTNR ==


”, S “1”,K&DL_status_orientation

;L DL_status_orientation
;== K+1
;= ML_TS_orientation_on

L Spindle.MG_controlled_drive
= ML_TS_orientation_on

1 – 12 HEIDENHAIN Technical Manual TNC 320


Update finished The NC software update is now complete.
You have now performed all steps necessary for configuration of the
NC software 340 551-02.

Note

Please read the following information about the expanded and modified
functions attentively.

December 2006 NC Software 340 551-xx 1 – 13


1.2.1 Description of the New Functions

New software The following new software option can be enabled by entering a code number.
option HEIDENHAIN can give you the code number after having been informed of the
SIK number.

Option Description ID number


#1 Cylinder surface interpolation: A contour defined in 536 164-01
the working plane is machined on the cylindrical
surface (rotary-table machining).

1 – 14 HEIDENHAIN Technical Manual TNC 320


Machine „ Expanded/changed: The “Machine Parameter Programming” mode of
parameters operation
The soft-key row in the main screen of the Machine Parameter Programming
mode of operation was changed. The row now only consists of one level.
Press the MORE FUNCTIONS soft key to reach the functions that were
previously on the second level.

Soft key Function


Sorts the contents of the *.cfg files

Backs up the machine parameters

Activates MP subfiles

Selects various data records

Path information for the *.cfg files of the machine


configuration
Opens the configuration editor for editing the machine
parameters in tree or table view
Calls additional functions

Shuts down/restarts the control

Grayed out during normal operation. Only active after a


software update or with faulty configuration data. Used for
finding and fixing errors in the machine configuration.
Display and edit rules for the software exchange

Resets update version

Protects data from unauthorized access

Displays access rights, selection lists, limit values and units of


measurement
Returns to previous menu

Exits the Machine parameter programming mode of operation

December 2006 NC Software 340 551-xx 1 – 15


„ New: Table view in the configuration editor
In the configuration editor you can now switch from the familiar tree view to
a new table view. This is especially useful when configuring the parameter
blocks, since now the parameters of all axes are visible at a glance:

All editing functions available in the tree view are also available in the table
view. The HELP key of the TNC operating panel can also be used in the table
view to call the help function.
„ New: Mouse support in the configuration editor
Starting immediately, a USB mouse can be connected for navigation in the
tree structure of the machine parameters. Simply click on the icon to open
or close the folder. Double-click the parameter symbol to open the editing
window. Soft keys and screen buttons can also be clicked with the mouse.
„ New: Parameter type identifiable by folder icon
The parameter type can now be identified by the folder symbol in the
machine-parameter tree structure:

Entity (object)

Array (list)

Key (keyname)

1 – 16 HEIDENHAIN Technical Manual TNC 320


„ New: MP change list in the configuration editor
A machine-parameter change list is now displayed after pressing the SAVE or
END soft keys. The Configuration data changed window gives you an
overview of all changed parameters. You can save, discard or cancel the
changes:

The control also saves a list of the last 20 changes to the configuration data.
In this list you can see all changes performed, and can undo any of them.
The change list is maintained upon power-off of the control. The change list
is reached in the configuration editor via the MORE FUNCTIONS and
DISCARD CHANGES soft keys.
„ New: Feed-rate display can be configured
The MP_axisFeedDisplay parameter can be used to select the feed-rate
display for the manual operating modes (Manual and Handwheel) (compare
iTNC 530 MP7270).

Settings in the configuration editor:


System
DisplaySettings
CfgDisplayData
axisFeedDisplay

MP_axisFeedDisplay
Display of the feed rate in the Manual and Handwheel modes of
operation
Format: Auswahlmenü
Selection:
[ at axis key ]
Display of axis feed rate only when an axis-direction key is pressed
(axis-specific feed rate from parameter “MP_CfgFeedLimits/
manualFeed”)
[ always minimum ]
Display of the axis feed-rate even before pressing an axis-direction
key (smallest value from “MP_CfgFeedLimits/manualFeed” for all
axes, multiplied by the override value).

December 2006 NC Software 340 551-xx 1 – 17


„ Changed: Movement monitoring
The actions of MP_movementThreshold (movement monitoring) were
changed.
If the MP_movementThreshold parameter is set to a value greater than 0,
the manipulated value of the position controller is now totaled in the IPO
clock as soon as the threshold configured in the parameter is exceeded.
The control now calculates a nominal path and compares it with the actual
path traversed after every 5 mm.
An error message is output if the actual path traversed is…
• less than a quarter of the nominal path
or
• four times greater than the nominal path.

Settings in the configuration editor:


Axes
ParameterSets
[Parameter-set key]
CfgEncoderMonitor
movementThreshold

„ Expanded: XML file for the user parameters (keyword 123)


The XML layout file of the user parameters (user123.xml) was changed.
The “CfgGeoCycle” configuration object (for configuring the machining
cycles) was added to the user parameters. The existing layout file is not
automatically replaced by the new version during the update. If you want to
make the new user123.xml file available to the end user, you must copy it
from the PLC:\jh directory to the PLC:\config\layout directory, thereby
overwriting the old user123.xml file.
„ New: Programming station mode
You can switch the control into programming-station mode with
MP_simMode (cf. iTNC 530 MP7210). The control can then be used as a
programming station. No drives are enabled. You can create and test the
PLC program and NC programs. The operation of the machine is simulated
in the programming station mode. As OEM, you have access to the machine
configuration in the programming station mode. This way the control can be
adapted to the machine before actual commissioning, for example, or be
used for training purposes.

Settings in the configuration editor:


System
CfgMachineSimul
simMode
skipReferencing
skipEmStopTest

1 – 18 HEIDENHAIN Technical Manual TNC 320


The MP_simMode parameter offers three different setting possibilities for the
programming station mode:
With FullOperation the control starts in normal operation. The programming
station mode is deactivated. All drives and the PLC are active.
Choose the CcOnly setting in order to simulate the CC controller unit while
the PLC is active. In this case all PLC inputs and outputs, as well as the
emergency-stop loop (X41/34 and X42/4), must already be connected correctly
in order to switch the control on correctly.
Choose CcAndExt in order to simulate the CC controller unit and all PLC
inputs and outputs. The PLC runs in simulation mode, and the emergency-stop
loop and PLC inputs and outputs are not interrogated.
The control must be restarted after changes in MP_simMode in order for the
new settings to become active.
MP_simMode
Defines the programming station mode
Format: Auswahlmenü
Selection:
[ FullOperation ]
Programming station mode is switched off, the emergency-stop
loop (X41/34 and X52/4) must be complete. The drives are moved.
[ CcOnly ]
Simulation of the controlled drives. All PLC inputs and outputs, as
well as the emergency-stop loop, must be connected correctly in
order to switch the control on correctly.
[ CcAndExt ]
Simulation of the controlled drives and all PLC inputs and outputs.
The emergency-stop loop dos not need to be complete. The PLC
runs in simulation mode.
Approaching the reference position of the axes can be skipped in
programming station mode.
Set the MP_skipReferencing parameter to the value TRUE in order to set the
axes directly on the reference position when the control is started.
MP_skipReferencing
Rapid approaching of the reference position
Format: Auswahlmenü
Selection:
[ TRUE ]
The axes are set directly on the reference position when the control
is started.
[ FALSE ]
The axes are not set on the reference position.

December 2006 NC Software 340 551-xx 1 – 19


You can suppress the emergency-stop test with the MP_skipEmStopTest
parameter.
MP_skipEmStopTest
No emergency-stop test is performed
Format: Auswahlmenü
Selection:
[ TRUE ]
Emergency-stop test is not performed
[ FALSE ]
Emergency-stop test is performed
„ New: Options for the PLC run-time system:

Settings in the configuration editor:


PLC
CfgPlcOptions
trackMState
apiErrorReaction

With the MP_trackMState parameter you specify whether the display of the
active M functions is tracked by the PLC run-time system or by the PLC
program.
MP_trackMState
Automatic tracking of the active M function
Format: Auswahlmenü
Selection:
[ TRUE ]
The PLC run-time system automatically tracks the status of a
configured, active M function.
[ FALSE ]
The PLC run-time system does not automatically track the status of
a configured, active M function. The status of the active
M functions must be tracked via Module 9088.
Default: FALSE

With the MP_apiErrorReaction parameter you specify what is to occur if an


error occurs in a PLC module while the API marker
ApiGen.NN_GenReactApiModuleError is set. If the marker is not set, the PLC
run-time system does not react directly to errors that occur while calling a PLC
module.
MP_apiErrorReaction
Reaction to unexpected error in a PLC module.
Format: Auswahlmenü
Selection:
[ LOG ]
The error that occurred is entered in the PLC error log.
[ DISPLAY ]
The error that occurred is shown on the control’s display.
[ STOP_PLC ]
The current PLC program is stopped if an error occurs during a PLC
module call.
Default: LOG

1 – 20 HEIDENHAIN Technical Manual TNC 320


Configuring the „ New: Commissioning Wizard for analog axes
axes and spindle A new aid for commissioning is available for analog axes. The Wizard guides
you step-by-step through the commissioning of any axis parameter block.
Press the ANALOG AXIS soft key on the opening screen of the internal
oscilloscope to start the Commissioning Wizard. The soft key is grayed out
as a default. You must enable the commissioning aid with the MOD code
number 13852. The parameter block to be optimized must exist in the
system, and is selected from a dialog window.

Soft key Function


Grayed out as a default; selectable after the MOD code
number 13852 has been entered. Starts the Commissioning
Wizard for analog axes.

Warning

Default values are automatically assigned to the axis parameters before


commissioning. The control reports this in a message window. The axis is
not operated with position control as long as these temporary initial
parameter values are in effect. The following error that results is not
eliminated. Hanging axes require a 100% compensation for weight.
Make sure that hanging axes are adequately supported.

You can define the following machine parameters with the aid of the
Commissioning Wizard:

Soft key Function


Ascertain the algebraic sign of the axis
(MP_signCorrActualVal and MP_signCorrNominalVal)
Ascertain the axis traverse direction
(MP_signCorrActualVal and MP_signCorrNominalVal)
Ascertain the velocity at an analog voltage of 9 volts
(MP_maxFeedAt9V)
Ascertain the maximum acceleration of the axis
(MP_maxAcceleration)
Ascertain the kv factor of the axis
(MP_kvFactor)
Ascertain the acceleration feedforward control of the axis
(MP_accForwardFactor)

Press the CANCEL or LEVEL BACK soft key to leave the commissioning tool at
any point. The temporary parameter values or ascertained values are then
discarded, and the previous values are restored.

December 2006 NC Software 340 551-xx 1 – 21


„ New: Support of open-loop axes (counter axes)
You now have the possibility of realizing open-loop axes (manually operated
axes, counter axes). An open-loop axis has a position encoder for
determining and displaying the current position value. There is no nominal
value output for the axis. The target position is set by the machine operator
manually (e.g. via mechanical handwheels). An open-loop axis can be
programmed together with controlled axes in an NC program. When an NC
block with an open-loop axis is reached during machining, a dialog window
appears, prompting the machine operator to traverse the axis to the nominal
coordinates:

The dialog window shows the nominal and actual position, as well as the
distance-to-go, in axis coordinates. The control automatically triggers an
NC STOP when opening the window. The axis must now be traversed by the
machine operator until the target has been reached, taking into account the
positioning window defined under MP_posTolerance. The control then
automatically closes the dialog window. Machining of the NC program is
continued with NC START.

Note

If an open-loop axis is programmed together with controlled axes in an NC


block, then the open-loop axis does not have to be traversed to the target
position immediately upon appearance of the dialog window. For example,
you can first retract the open-loop axis, then position the controlled axes
with the NC START key, and then finish positioning the open-loop axis. The
dialog window then disappears. Press NC START again to continue the NC
program.

Configuring a manually operated axis: Input:


Axes
PhysicalAxis
[Key for the axis]
CfgAxisHardware
axisHw ManualMC
axisMode Active

 For the manually operated axis, set the MP_axisHw and MP_axisMode
machine parameters to the values indicated in the table.
 Deactivate movement monitoring for the axis. Set
MP_movementThreshold = 0.
 Deactivate standstill monitoring. Set MP_checkPosStandstill = 0.

1 – 22 HEIDENHAIN Technical Manual TNC 320


„ New: Support for central drive
Effective immediately, it is possible to use one drive for several or all
machine axes. The NC software allows the user to use the same nominal
position value output for more than one axis (MP_analogOutput). The
central drive function has already been prepared for the next version of the
HEIDENHAIN PLC basic program (Basic-NCK-V03-00).
The most important basic requirements for realizing a machine with central
drive:
• A common drive package with an analog nominal position value input
exists for all axes.
• The machine axes are to be handled as clamping axes by the PLC.
• Use the PLC to monitor the drive regarding movement in multiple axes,
and output an error message if necessary.

Note

In addition to PLC, the drive is also monitored by the NC. If the attempt is
made to traverse more than one axis from the central drive group, the
control outputs the Analog output of axis [axis] was assigned twice
error message.

„ New: Support for Hirth coupling


Hirth coupling describes a type of clamping of rotary axes and swivel heads.
Finely splined disks mesh together in order to create a rigid connection.
Effective immediately, axie with Hirth coupling can be controlled.
During datum setting, the NC rounds off according to the grid spacing from
MP_isHirth.
 Configure the exact positioning in the Hirth grid as PLC positioning.
Manual and El. Handwheel operating modes:
If there is a current traverse order for the axis, the NC resets the marker
NN_AxInPosition (“axis in position”).
 As soon as the axis-in-position bit is set again, you check the nominal
position with the Hirth grid and derive from it a PLC positioning command to
the next grid point.
Positioning with manual data input, Program run, single block and
Program run, full sequence operating modes:
The positions of the Hirth axis must be programmed in the grid.
 Check the positions in the PLC during the program run.
 As soon as “axis in position” is reset, check if the target position is in the
Hirth grid.
• If the target position is not in the Hirth grid, output a PLC error message.

December 2006 NC Software 340 551-xx 1 – 23


Settings in the configuration editor:

Axes
PhysicalAxis
[Key for the axis]
CfgAxis
isHirth
ParameterSets
[Key for the parameter set]
CfgReferencing
moveAfterRefType

MP_isHirth
Axis with Hirth coupling (optional parameter)
Enter the Hirth grid increment measured from the machine datum.
If the parameter is inactive or the value 0 is entered, no Hirth grid is
supported.
Format: Numerischer Wert
Input: Hirth grid in degrees [°] or millimeters [mm]
„ Expanded: Machine parameter MP_moveAfterRefType
The MP_moveAfterRefType machine parameter specifies the type of
movement after crossing the reference mark. Effective immediately, two
new settings possibilities are available:
• HirthRasterPos:
Approach next Hirth grid position in positive direction
• HirthRasterNeg:
Approach next Hirth grid position in negative direction
„ Expanded: Module 9038 (Read status information of axes)
Codes 4 and 5 of the status information can be used to read information
about Hirth axes:
Code 4: 0 = No Hirth axis
1 = Hirth axis
Code 5: Hirth grid in [1/10 µm]
Module 9125 Stop PLC axis at next Hirth grid position
Stop an already started PLC-positioning of an axis at the next Hirth grid
position.
Call:
PS B/W/D/K <Axis>
0 to 8 represent axes 1 to 9
CM 9125
PL B/W/D <Error code>
0: Positioning is canceled
1: Axis does not exist
2: Not a PLC axis
3: Axis was already stationary
4: Axis is not a Hirth axis

1 – 24 HEIDENHAIN Technical Manual TNC 320


„ New: Tool-change sequences are defined via scripts
Effective immediately, new channel-specific machine parameters are
available for configuration of the tool-change sequences. You must enter the
names of the script files in these machine parameters. The script defines
the tool-change sequence for each type of changer. HEIDENHAIN has
already made four pre-defined script files available, which you must enter in
the optional machine parameters under CfgPlcToolChange as required:

Settings in the configuration editor:

Channels
ChannelSettings
Ch-Nc
CfgPlcToolChange
sequT0Text
sequT0Tint
sequT0TintS
sequTextT0
sequTextText
sequTextTint
sequTextTintS
sequTintT0
sequTintT0S
sequTintText
sequTintTextS
sequTintTint
sequTintTintS
sequTintTintF
sequTintTintFS
followUpS
followUptT
updateTable

Explanations to the new optional machine parameters for configuring the tool-
change sequences:

Parameters Description
sequT0Text Name of a script file given under CfgOemScript for
loading an external tool.
sequT0Tint Name of a script file given under CfgOemScript for
loading an internal tool.
sequT0TintS Name of a script file given under CfgOemScript for
loading an internal tool that requires special handling.
sequTextT0 Name of a script file given under CfgOemScript for
unloading an external tool.
sequTextText Name of a script file given under CfgOemScript for
unloading and loading an external tool.
sequTextTint Name of a script file given under CfgOemScript for
unloading an external tool and loading an internal tool.
sequTextTintS Name of a script file given under CfgOemScript for
unloading an external tool and loading an internal tool
that requires special handling.

December 2006 NC Software 340 551-xx 1 – 25


Parameters Description
sequTintT0 Name of a script file given under CfgOemScript for
unloading an internal tool.
sequTintT0S Name of a script file given under CfgOemScript for
unloading an internal tool that requires special handling.
sequTintText Name of a script file given under CfgOemScript for
unloading an internal tool and loading an external tool.
sequTintTextS Name of a script file given under CfgOemScript for
unloading an internal tool that requires special handling
and loading an external tool.
sequTintTint Name of a script file given under CfgOemScript for
unloading an internal tool and loading an external tool.
Neither has a fixed pocket in the tool magazine.
sequTintTintS Name of a script file given under CfgOemScript for
unloading an internal tool and loading another internal
tool. Neither has a fixed pocket in the tool magazine, but
at least one requires special handling.
sequTintTintF Name of a script file given under CfgOemScript for
unloading an internal and loading another internal tool.
At least one tool has a fixed pocket in the tool magazine.
sequTintTintFS Name of a script file given under CfgOemScript for
unloading an internal tool and loading another internal
tool. At least one tool has a fixed pocket in the tool
magazine, and at least one tool requires special
handling.
followUpS Name of a symbolic PLC operand or the number of a
logical marker: the marker is set if an other strobe with
an S code follows in the tool-change sequence.
followUpT Name of a symbolic PLC operand or the number of a
logical marker: the marker is set if an other strobe with
a T code follows in the tool-change sequence.
updateTable Name of a symbolic PLC operand or the number of a
logical marker: use the PLC program to set the marker if
the control should not automatically update the pocket
table. If the parameter is empty, the pocket table is
automatically updated by the control.

The following pre-defined scripts for configuring the tool-change sequences


are available under the CfgOemScript configuration object:

Script key Description


T0_TNC Unload tool, transfer tool number 0 and data from the
pocket table
T1_TNC Only unload tool and transfer data from the pocket table
T0T1_TNC First unload tool, and transfer tool number 0 and data from
the pocket table. Then load tool and transfer data from the
pocket table.
T1T0_TNC First load new tool and transfer data from the pocket
table. Then unload tool and transfer tool number 0 and
data from the pocket table.

1 – 26 HEIDENHAIN Technical Manual TNC 320


„ New: Spindle-gear switching
Effective immediately, the NC software supports management of spindle-
gear switching.

Settings in the configuration editor:

System
PLC
CfgPlcSStrobe
[Key for S strobe]
gearSpeed0

Axes
ParameterSets
[Key for the axis]
CfgFeedLimits
nominalSpeed

 Configure a separate spindle parameter set for each gear stage.


Note

Use the “KeySynonym” function to create new parameter sets rapidly and
easily. (in the configuration editor under KeySynonym ->
CfgKeySynonym). Only the first parameter set must be fully defined. All
further parameters sets are “gated” to the first set (MP_relatedTo), so you
only have to describe the differing parameters.

You must enter the names of the spindle parameter sets under
MP_gearSpeed0 in the list parameters. The list must be sorted in ascending
order, with the smallest gear shaft speed at the top. Gear stages are not
supported if the list is missing or empty.
Use the MP_CfgFeedLimits configuration datum of a parameter set to define
the minimum and maximum spindle shaft speed for each gear stage.
The new MP_nominalSpeed machine parameter specifies the rated shaft
speed for each gear stage. The control selects the necessary gear stage
based on this shaft speed. The minimum and maximum shaft speeds of the
individual gear stages (MP_minFeed and MP_maxFeed parameters) may
overlap.

MP_gearSpeed0
List of parameter sets for spindle gear stages
Format: Array
Input: Keys of spindle parameter sets for each gear stage in wye
operation. The parameter sets must be entered in ascending order,
with the smallest gear shaft speed at the top.

December 2006 NC Software 340 551-xx 1 – 27


MP_nominalSpeed
Rated shaft speed for the gear stage
Format: Numerischer Wert
Input: Shaft speed in [rpm]
Enter the greatest programmable shaft speed at which this spindle
parameter set is to be used. If a shaft speed greater than the given
one is programmed, the next higher gear stage is switched to.

1 – 28 HEIDENHAIN Technical Manual TNC 320


Machine interfacing „ New: Definition of the tool magazine using magazine rules
You can usually place more than one tool type in a tool magazine. Depending
on the tool, however, surrounding pockets may have to be locked. The
ASCII file *.TCR contains magazine rules for such definitions.
 Create the file *.TCR with the keywords listed in the following table.
 Use Module 9343 to compile the ASCII file with the magazine rules

Keyword Meaning
[magazine]a All the following rules apply to the tool magazine a.
Example: [magazine]4
[search]a = a b ... Definition of the search sequence for the tool type a.
The tool type named first (here a) is searched for first,
then the next tool type (separated by a space)
(here b).
You may only enter tool types in whose pockets tools
of the type a may be placed!
Example: [search]1 = 1 2
[tooltype]a All the following rules apply to the tool type a. 20 tool
types can be specified.
Example: [tooltype]2
[place]a = bx cx ... Description of the pocket a. Define the pockets (here
b and c) that are affected by pocket a when the
current tool type (keyword [tooltype]a) is placed
there. Immediately after the pocket number the
identifier x follows, indicating which area of the
pocket is affected (r = right area, l = left area,
b = bottom area, a = top area)
Example: [place]21 = 20r 22l

Note

You must define the search sequence for each magazine separately, not
just globally at the beginning of the *.TCR file. If the search sequence is to
be defined the same for each magazine, then it must be repeated after each
magazine definition.

December 2006 NC Software 340 551-xx 1 – 29


The following columns in the pocket table are used for magazine rules:
• PTYP: Tool type
• RSV: Reserved pocket
• P1 to P5: Values 1 to 5 for evaluation in the PLC (e.g., axis positions of
a pocket in the box magazine). Module 9304 copies the values to a word
memory.
• LOCKED_ABOVE: Pocket above is locked
• LOCKED_BELOW: Pocket below is locked
• LOCKED_LEFT: Pocket to the left is locked
• LOCKED_RIGHT: Pocket to the right is locked

You might need to insert the columns listed above in the pocket table, and also
remove columns that are not required. These changes to the pocket table can
be performed most easily with the table editor (keyword 555343).
With FN18: SYSREAD ID51 the cells of the pocket table in an NC program or an
OEM cycle can be read.
Module 9340 searches a magazine for vacant, reserved or unavailable pockets
(see “Module 9340 Searching for a pocket depending on magazine rules” on
page 1 – 65).
Module 9342 uses a tool number to determine the magazine number and
pocket number (see “Module 9342 Find magazine and pocket number” on
page 1 – 67).
Module 9341 processes the pockets depending on the magazine rules.
Pockets can be reserved, released and made unavailable (see “Module 9341
Editing a pocket table depending on magazine rules” on page 1 – 66).

1 – 30 HEIDENHAIN Technical Manual TNC 320


Example for a description of the tool magazine using magazine rules:

Magazine 4 Pocket table


PTYP
...
4.19 ... 1 ...
1 1 2 1 1 4.20 ... 1 ...
4.21 ... 2 ...
4.22 ... 1 ...
... 19 20 21 22 23 ... 4.23 ... 1 ...
...
Module 9343:
...
PS PLC:\RULES.TCR
CM 9343
...
RULES.TCR:
...
[magazine]4 From this point on,
[search]1 = 1 2 definition of rules for
Search sequence for tool [search]2 = 2 magazine 4
type 2: ...
Only pockets for tool type [tooltype]2
2 ... Search sequence for tool
[place]21 = 20r 22l type 1:
... First pockets for tool type
1, then pockets for tool
type 2
From this point on,
definition of rules for tool
type 2 Definition of the rules for pocket 21:
Right half of pocket 20 and left half
of pocket 22 are locked

Pocket exchange in the pocket table:


To switch the pockets of two tools in the pocket table:
 Lock the pocket table with Module 9300 (see “Module 9300 Locking and
releasing the pocket table” on page 59).
 Switch the pockets with Module 9305 (see “Module 9305 Moving tools in
the pocket table” on page 62).
 Release the pocket table with Module 9300.

December 2006 NC Software 340 551-xx 1 – 31


„ Changed: Configuration of LIFTOFF at NC STOP
The tool can only be lifted off from the workpiece automatically at an
NC STOP if the following two conditions are fulfilled:
• The value “on” must be set for the parameter MP_on under Channels/
ChannelSettings/Ch-Nc/CfgLiftOff in the machine configuration.
• The column LIFTOFF must exist in the tool table, and Y must be entered
there for the tool that was just inserted.
„ New oscilloscope function: Selection dialog for symbolic PLC operands
In the internal oscilloscope (MOD keyword 688 379) you can now select PLC
variables in a dialog window, and load them to the input field:
• Open the channel configuration in the main menu of the OSCILLOSCOPE
operating mode via the SELECTION soft key.
• Activate any channel and choose either PLCPrePgm or PLCPostPgm.
• Select the operand type s (= symbolic input).
• Move the cursor to the operand input field. The SYMBOL LIST soft key
appears in the soft-key row.
• You can now select the desired operand from the Symbol list
selection dialog field, and load it with the INSERT soft key.
„ New OLM function: Display internal look-ahead data
The internal data of the look-ahead feature can now be checked in the OLM
(MOD keyword 654 321).
• Activate the OLM operating mode by entering the keyword.
• Press the Login Ipo soft key.
• Press the Channels soft key.
• Press the Look Ahead soft key to check the various internal states of the
look-ahead feature.

1 – 32 HEIDENHAIN Technical Manual TNC 320


TNC 320 „ New: Free up memory by compressing graphics
Operation and Use the ZIP packer to compress graphic files (e.g. PLC soft keys, support
technology graphics for cycles, or the startup screen) in order to save memory space.
For example, the size of a 2-MB bitmap file (*.bmp, *.bmx) can be reduced
to 40 KB with the ZIP packer. You have two basic possibilities:
• Zipping individual files (e.g. the startup screen):
Compress the graphics file and give the ZIP file the following name:
[file name].[extension].zip
Example:
The startup screen startup_1024x768.bmp is compressed and saved as
startup_1024x768.bmp.zip to PLC:\resource. Make sure to remove
the original startup_1024x768.bmp file, since the control first searches
for uncompressed files. If the uncompressed *.bmp does not exist,
then the control automatically uses the ZIP archive whose file name
contains the graphics file. The file is automatically unzipped and
displayed at run-time.
• Zipping entire directories (e.g. all support graphics):
You can compress all graphics files in a directory into one ZIP archive.
You must use the directory name as the name of the ZIP archive. The
original directory must be renamed or deleted.
Example:
The following cycle support graphics are contained in the
PLC:\oemcyc\hlp\nc directory:
- PLC:\oemcyc\hlp\nc\help1.bmp
- PLC:\oemcyc\hlp\nc\help2.bmp
- PLC:\oemcyc\hlp\nc\help3.bmp
A ZIP archive with the file name hlp.zip is now created with the
following contents:
- nc\help1.bmp
- nc\help2.bmp
- nc\help3.bmp
The ZIP file is saved in the PLC:\oemcyc directory, and the
uncompressed original PLC:\oemcyc\hlp\nc directory is removed or
renamed.
The path to the zipped graphics file help1.bmp from the example above
is:
- PLC:\oemcyc\hlp\nc\help1.bmp or
- PLC:\oemcyc\hlp.zip\nc\help1.bmp
„ New: Nine new dialog languages are available
Danish, Spanish, Finnish, Dutch, Polish, Russian, Swedish, traditional
Chinese (Taiwan) and simplified Chinese (China)
„ New: DEL-Block key interrupts booting
The DEL-Block key on the integrated operating panel of the TNC 320 now
interrupts booting of the NC software. This is necessary in order to start a
software update via a USB stick even without a USB keyboard being
connected.

December 2006 NC Software 340 551-xx 1 – 33


„ New: “Reboot” screen button performs a cold start
Until now, pressing the “Reboot” screen button (shown in the middle of the
screen after shutting down the control) resulted in a warm start. Only the
NC software was restarted. This behavior is changed as of NC software
340 551-02: after pressing the “Reboot” screen button, the control
performs a cold start, i.e. both the HEIDENHAIN operating system and the
NC software are restarted.
„ New: COPY SAMPLE FILES soft key
If the MOD dialog box for entering the keyword is displayed on the TNC
screen, then the COPY SAMPLE FILES soft key is shown on the second level
of the soft-key row.
After pressing the soft key, the definition file APIMARKER.DEF for the
symbolic memory interface and a table prototype for the pocket table are
copied into the PLC:\proto directory.
„ New: PLC texts in UTF8
The PLC texts for PLC soft keys and language-sensitive error and dialog
texts (configurable via the configuration editor under CfgPlcPath) can now
be displayed as UTF8-encoded texts (e.g. for Asian languages). PLC texts
that are to be displayed in the PLC status window may not be UTF8-
encoded. The English character set may be used here as an alternative.
The three ASCII characters with the values 0xEF, 0xBB and 0xBF serve to
indicate the UTF8 code. These three characters must be in the correct
sequence as the first three characters in the appropriate file, and only serve
to indicate the UTF8 code.

1 – 34 HEIDENHAIN Technical Manual TNC 320


PLC programming „ Expanded: COMPILE function
The following functions are now available after pressing the COMPILE soft
key in the PLC Programming operating mode:

Soft key Function


Compile the current PLC program, current PLC error table, and
current soft-key project file (MP_mainPgm, MP_errorTable
and MP_softkeyProject entries in the CfgPlcPath machine
parameter)
Only compile the current PLC program (entry CfgPlcPath =>
MP_mainPgm)
Only compile the current PLC error table (entry CfgPlcPath =>
MP_errorTable)
Select and compile a PLC program

Select and compile a PLC error table

„ New: Progress display for COMPILE function


If the PLC program is compiled via the COMPILE soft key (PLC Programming
operating mode), the progress is now displayed graphically.
„ Expanded: TABLE function
• Effective immediately, tables can be navigated with the arrow keys.
• The bit-coded operands (markers, inputs, outputs) can be set or reset
via the new SET/RESET soft key.
• The symbolic names of the PLC operands are shown under the table.
„ New: Functions in the file manager
If the file manager is started from the PLC Programming operating mode
(PGM MGT key or SELECT + COMPILE PLC PGM and
SELECT + COMPILE ERRORTAB. soft keys), the following functions are now
available and can be selected via soft keys: NEW FILE, COPY, DELETE, RENAME
and TAG.
In addition, a new soft key is available for filtering the .mcg file extension.
The filter soft keys are reached by pressing the SELECT TYPE soft key in the
file manager. The file extension .mcg stands for machine configuration file.
Files of the type .mcg are to replace the PLC configuration file *.cfg. This is
intended to avoid confusion in the future with the *.cfg machine parameter
files.
„ New: PAGE Ç + PAGE È soft keys in TRACE and EDIT
Effective immediately, the two soft keys PAGE Ç and PAGE È for
advancing the screen page-by-page are available in the EDIT and TRACE
functions.
„ New: API marker ApiGen.PP_GenReactApiModuleError (M4753)
If the PP_GenReactApiModuleError marker is set, all errors that occur during
PLC module calls are entered in the PLC error log. Depending on the setting
of the new machine parameter MP_apiErrorReaction (see
“MP_apiErrorReaction” on page 1 – 20), the error is displayed or the PLC
program is stopped.

December 2006 NC Software 340 551-xx 1 – 35


„ New: Configuration data of the PLC
You use the PLC configuration file to influence the memory allocation of the
control and change the configuration data of the PLC. Enter certain
keywords to perform changes. After compilation by the PLC, the NC detects
the changed settings, and the control must be restarted.
The values you enter may only be greater than the default values.
Available keywords:

Keyword Description Example

DEFINE Configuration definitions for controlling the


conditional compilation, soft-key menu
generation and cycle-project configuration.
System parameters that may not be
changed are identified by a preceding and
following $ character. Depending on which
options have been set, they are defined via
the compiler and can be used for conditional
compilation. For more information about
this, please refer to the PLCdesignNT help.

REMBYTEMIN Start address of the bytes, words or double REMBYTEMIN = 0


words whose data remains stored after a
power interruption (remanence).
Default value: 0

REMBYTEMAX End address of the bytes, words or double REMBYTEMAX = 200


words whose data remains stored after a
power interruption (remanence).
The range defined by REMBYTEMIN and
REMBYTEMAX may not be larger than 1024
bytes.
Default value: –1 = Deactivated

REMMARKERMIN Start address of the markers whose data REMMARKERMIN = 0


remains stored after a power interruption
(remanence).
Default value: 0

REMMARKERMAX End address of the bytes, words or double REMMARKERMAX = 150


words whose data remains stored after a
power interruption (remanence).
The range defined by REMMARKERMIN
and REMMARKERMAX may not consist of
more than 2048 markers.
Default value: –1 = Deactivated

1 – 36 HEIDENHAIN Technical Manual TNC 320


Keyword Description Example

MARKERS A total of 100 000 Number of markers MARKERS = 15000


bytes is available available.
for all keywords, Default value: 10000
timers, counters
BYTES and strings Size in bytes for the BYTES = 20000
combined byte/word/double
word memory.
Default value: 10000

INPUTS Number of input INPUTS = 450


markers available.
Default value: 384

OUTPUTS Number of output OUTPUTS = 250


markers available.
Default value: 192

INPUTBYTES Size in bytes for the


byte/word/double
word memory range
used by the Profibus
inputs.
Default value: 1000

OUTPUTBYTES Size in bytes for the


byte/word/double
word memory range
used by the Profibus
outputs.
Default value: 1000

December 2006 NC Software 340 551-xx 1 – 37


Changed or Module 9035 Reading status information (expanded)
expanded You can read the status information with this module. You transfer a number
PLC modules indicating the desired information.

Transferred number Return code


8 Selected machine axis 0: X axis
(for actual-position-capture) 1: Y axis
2: Z axis
3: IV axis
4: V axis
5: VI axis
6: VII axis
etc.
9 Handwheel axis Finds the axis which is assigned to the handwheel
connected to connector X23 of the MC.
–1: None or more than one
0: X axis
1: Y axis
2: Z axis
3: IV axis
4: V axis
5: VI axis
6: VII axis
etc.
10 Handwheel axis, bit-encoded Bit 0: X axis
Bit 1: Y axis
Bit 2: Z axis
Bit 3: IV axis
Bits 4 to 13: Axes 5 to 14 (only available for PLC
programs that work with API 1.0)
Handwheel interpolation factor
11 X key 0 to 10
12 Y key
13 Z key
14 IV key
15 V key
19 Active line in the *.CMA file >=0: Line number
–1: No *.CMA file
Handwheel interpolation factor
31 Axis 1 0 to 10
32 Axis 2
33 Axis 3
34 Axis 4
35 Axis 5
36 Axis 6
37 Axis 7
38 Axis 8
39 Axis 9
20 HR 410 speed 0: Slow
1: Medium
2: Fast

1 – 38 HEIDENHAIN Technical Manual TNC 320


Transferred number Return code
21 Control model 0: TNC 310
1: TNC 370
2: TNC 410
3: TNC 426 CA/PA
4: TNC 426 CB/PB/M or TNC 430 CA/PA/M
5: iTNC 530
6: iTNC 530 (with Windows 2000)
20: NC-Kernel based control (TNC 320)
23 Handwheel superimposition with 0: M118 not active
M118 Bits 0 to 13: Axes 1 to 14
26 Jog increment
Handwheel interpolation factor
31 Axis 1 0 to 10
32 Axis 2
33 Axis 3
34 Axis 4
35 Axis 5
36 Axis 6
37 Axis 7
38 Axis 8
39 Axis 9
100 Number of the tool axis Only available for PLC programs that work with API 1.0
Cycle counter
500 Interpolator 0..
501 Cycle time of the PLC
502 Current utilization
503 Maximum utilization
1001 Pallet table (only in a spawn job or >= 0: Active line in the pallet table
submit job) –1: Pallet table not active

Constraint:
„ Status information no. 19 (read active line in the *.CMA file) is displayed
even if the active line does not contain any *.COR file.
Call:
PS B/W/D/K <Number of the desired status information>
CM 9035
PL B/W/D <Status information>
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 No error
Error (M4203) 1 Error code in NN_GenApiModuleErrorCode
NN_GenApiModule 1 Status information invalid
ErrorCode (W1022) 20 Call was not in a submit or spawn job

December 2006 NC Software 340 551-xx 1 – 39


Module 9036 Writing NC status information (expanded)
The module modifies status information from the NC. The status information
to be modified is transferred by function number.
You can now change the following status information.

Number of Function Value


the function
0 Handwheel interpolation X 0..10: Interpolation factors
1 Handwheel interpolation Y 0..10: Interpolation factors
2 Handwheel interpolation Z 0..10: Interpolation factors
3 Handwheel interpolation IV 0..10: Interpolation factors
4 Handwheel interpolation V 0..10: Interpolation factors
5 Handwheel interpolation for 0..10: Interpolation factors
all axes
6 Select the handwheel axis Index from MP_axisList or
-1: Deselect all axes
7 Set the handwheel „ 0: Slow
transmission ratio „ 1: Normal
„ 2: Fast
8 Reserved –
9 Reserved –
10 Limit value for jog increment 0.0001..50 mm or
–1: Cancel the limiting
2: New jog increment =
minimum (programmed jog
increment, previous limit
value) and cancel limitation
11..19 Handwheel interpolation of 0..10: Interpolation factors
axes 1 to 9

Constraints:
„ Handwheel interpolation factors are limited to the smallest possible value in
accordance with the rapid traverse of the corresponding axis. This does not
result in an error message, however.
„ Call codes 0..4 refer to the five axes that are assigned to the axis keys X/Y/
Z/IV/V. Call codes 11..19 refer to the internal axis numeration.
„ The value for the jog increment limitation is given in [1/10000 mm].
„ If a jog limitation is entered in the inch mode, the limitation value [degrees]
for rotary axes is calculated from the limitation value [mm] / 24.5.
Possible errors:
„ The input parameter <number of the function> does not refer to any
overwritable status information in this software version.
„ The transferred value is outside of the range valid for this status information.

1 – 40 HEIDENHAIN Technical Manual TNC 320


„ Entry of this status information is disabled, e.g. via the machine
configuration.
Call:
PS B/W/D/K <Number of the function>
PS B/W/D/K <Value to be written>
CM 9036
PL B/W/D <Error code>
0: Status written
1: Incorrect status code
2: Transferred value is out of range
3: Input disabled
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Status information was written
Error (M4203) 1 Error code in NN_GenApiModuleErrorCode
NN_GenApiModule 1 Transferred value is out of range
ErrorCode (W1022) 2 Incorrect number of the status information
3 Transferred value is out of range
6 Input disabled

„ Expanded: Module 9084 (Displaying PLC error messages with


additional data)
Until now, additional information could only be added to texts from the PET
table. Effective immediately, language-sensitive texts from the *.csv file are
also supported.
„ Expanded: Module 9133 (Output of hardware information)
Codes 4 and 5 are used to ascertain the supply voltages on the main board,
and code 6 is used to ascertain the rotational speed of the housing fan:
Code 4: 5-V supply voltage of main board
Code 5: 3.3-V supply voltage of main board
Code 6: Rotational speed of the housing fan
„ Expanded: Module 9222 (Interrogation of the status of a
PLC positioning movement)
The individual information of all axes can now be interrogated
simultaneously in bit-coded form. Until now the interrogation was only
possible for one axis at a time.

December 2006 NC Software 340 551-xx 1 – 41


New PLC modules Module 9025 Writing a value as BCD code to eight successive markers
as of NC software The transferred value (between 0 and 99) is shown as BCD code with 2 nibbles
340 551-02 of four bits each. These bits are copied to the eight successive logical markers
indicated. This module makes it possible to output BCD codes for M, S or T
words in a simple manner.

The task can be influenced with the transferred, bit-coded mode:


„ Bit 0 = 0: The transferred address is a logical marker M
„ Bit 0 = 1: The transferred address is a logical output marker O
„ Bit 1 = 0: The highest-value bit is output to the first address
„ Bit 1 = 1: The lowest-value bit is output to the first address
Call:
PS B/W/D/K <Number of the first marker to be written>
PS B/W/D/K <Value to be written>
PS B/W/D/K <Bit-coded mode for output>
CM 9025
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 No error. Marker was written.
Error (M4203) 1 Error (error code in
NN_GenApiModuleErrorCode)
NN_GenApiModule 1 The given value is outside the valid range
ErrorCode (W1022) (0..99).
3 The given address is outside the valid
range.
4 The sum of the given address and 8 is
outside the valid range.

1 – 42 HEIDENHAIN Technical Manual TNC 320


Module 9040 Reading of axis coordinates by the PLC in the format
1/1000 (0.001) mm
Module 9040 loads the axis coordinates from the control loop for all NC axes.
The actual values in the reference system, the servo lag, the distance-to-go
and the deflection of a triggering touch probe can be loaded.
The values are saved in 10 double words in the format 1/1000 mm, beginning
at the given target address.
The module is only supported if you use the iTNC-compatible programming
interface (API 1.0).

Note

This PLC module was introduced in order to remain compatible with older
PLC programs (with API version 1.0) of older HEIDENHAIN contouring
controls. This module is not supported if the symbolic programming
interface is used. Use Module 9041 instead.

Possible errors:
„ The argument for the type of coordinate is outside the permitted range (2).
„ The specified target address is not a double word address (4).
„ The double word block cannot be written to the specified target address (4)
„ You are using the symbolic programming interface.
Call:
PS K/B/W/D <Target address Dxxxx>
PS K/B/W/D <Type of coordinate>
2: Actual values in the reference system
3: Following error
4: Distance-to-go
5: Deflection (measuring touch probe)
6: Actual values in the datum system
CM 9040
Error recognition:

Marker Value Meaning


M4203 0 Data was read
1 Faulty call data

December 2006 NC Software 340 551-xx 1 – 43


Module 9041 Reading of axis coordinates by the PLC in the format
1/10000 (0.0001) mm
Module 9041 loads the axis coordinates from the control loop for all NC axes.
The actual values in the reference system, the servo lag, the distance-to-go
and the deflection of a triggering touch probe can be loaded.
The values are saved in 10 double words in the format 1/10000 mm, beginning
at the given target address.
Possible errors:
„ The argument for the type of coordinate is outside the permitted range (2).
„ The specified target address is not a double word address (4).
„ The double word block cannot be written to the specified target address (4)
Call:
PS K/B/W/D <Target address Dxxxx>
PS K/B/W/D <Type of coordinate>
2: Actual values in the reference system
3: Following error
4: Distance-to-go
5: Deflection (measuring touch probe)
6: Actual values in the datum system
CM 9041
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Data was read
Error (M4203) 1 Faulty call data

1 – 44 HEIDENHAIN Technical Manual TNC 320


Module 9042 Reading of spindle coordinates by the PLC in the format
1/1000 (0.001) degrees
The coordinate values for actual value, nominal value, actual value in the
reference system, servo lag, and spindle distance-to-go are stored in five
consecutive double words beginning from the given target address. The actual
value, nominal value, and reference value are standardized to 0...+360.000
degrees. The values for servo lag and distance-to-go are shown between –
2879.912 degrees and +2879.912 degrees. They are shown at a resolution of
1/1000 (0.001) degrees.
The module is only supported if you use the iTNC-compatible programming
interface (API 1.0).

Note

This PLC module was introduced in order to remain compatible with older
PLC programs (with API version 1.0) of older HEIDENHAIN contouring
controls. This module is not supported if the symbolic programming
interface is used. Use Module 9411 instead.

During operation as an analog spindle (M3/M4 active or M5 and spindle not in


closed-loop control), the nominal value is considered to be the actual value.
The servo lag and distance-to-go are considered to be zero.
Possible errors:
„ The specified target address is not a double word address (not divisible by
4).
„ Five double words cannot be written to the specified target address (target
address is too high).
Call:
PS B/W/D/K <Target address Cxxxx>
CM 9042
Error recognition:

Marker Value Meaning


M4203 0 Spindle data was read
1 Faulty call data

December 2006 NC Software 340 551-xx 1 – 45


Module 9044 Reading of spindle coordinates by the PLC in the format
1/10000 (0.0001) degrees
The coordinate values for actual value, nominal value, actual value in the
reference system, servo lag, and spindle distance-to-go are stored in five
consecutive double words beginning from the given target address. The actual
value, nominal value, and reference value are standardized to 0...+360.000
degrees. The values for servo lag and distance-to-go are shown between –
2879.912 degrees and +2879.912 degrees. They are shown at a resolution of
1/1000 (0.0001) degrees.
The module is only supported if you use the iTNC-compatible programming
interface (API 1.0).

Note

This PLC module was introduced in order to remain compatible with older
PLC programs (with API version 1.0) of older HEIDENHAIN contouring
controls. This module is not supported if the symbolic programming
interface is used. Use Module 9411 instead.

During operation as an analog spindle (M3/M4 active or M5 and spindle not in


closed-loop control), the nominal value is considered to be the actual value.
The servo lag and distance-to-go are considered to be zero.
Possible errors:
„ The specified target address is not a double word address (not divisible by
4).
„ Five double words cannot be written to the specified target address (target
address is too high).
Call:
PS B/W/D/K <Target address Cxxxx>
CM 9044
Error recognition:

Marker Value Meaning


M4203 0 Spindle data was read
1 Faulty call data

1 – 46 HEIDENHAIN Technical Manual TNC 320


Module 9111 Receive a message via LSV2
Module 9111 reads a message (double word or string) that has been received
from a host computer connected by LSV2 protocol.
The message must be transmitted from the host by the LSV2 command
“M_PC<msg.l>”.
Call:
PS B/W/D/K <Data type>
0: Binary data double word
1: String
PS B/W/D/K <Target address>
With binary: Number of the double word
With string: Number of the string
CM 9111
PL B/W/D <Error code>
0: Message was read
1: No connection to host
2: No message of this type in receiving buffer
3: Incorrect data type (not 0 or 1)
4: Incorrect target address
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Message was received
Error (M4203) 1 Error code in NN_GenApiModuleErrorCode
(W1022)
NN_GenApiModule 2 Incorrect data type
ErrorCode (W1022) 4 No double word address, or incorrect string
number
11 String too long
13 No connection
15 Transmit buffer not empty
16 Receiving buffer empty

December 2006 NC Software 340 551-xx 1 – 47


Module 9140 Set axis-specific feed-rate limit
Feed rates for multiple axes can be defined with this module. The feed rates
for a certain number of axes must be stored consecutively in the double word
memory.

Note

This module is not supported if the symbolic programming interface is


used. This PLC module was introduced in order to remain compatible with
older PLC programs (with API version 1.0) of older HEIDENHAIN contouring
controls.

Constraints:
„ If individual feed-rate values are invalid for a block of axes, the feed rate for
these axes is set to 0 and M4203 is set. All other axes are given the
prescribed value.
„ The PLC module limits the feed rate to the maximum possible feed rate in
the PLC.
„ The resulting feed rate can also depend on other limitations (e.g. FMAX,
programmed feed rate).
„ The module is only supported if you use API version 1.0.
Call:
PS B/W/D/K <Start address of double word array>
>= 0: Feed rate from corresponding double word
–1: Maximum feed rate
–2: Rapid-traverse feed rate for this axis
–3: Manual feed rate for this axis
PS B/W/D/K <Number of axes>
CM 9140
Error recognition:

Marker Value Meaning


M4203 0 Function was performed
1 Error code in
NN_GenApiModuleErrorCode
W1022 1 Invalid feed-rate value (< –3)
2 Invalid number of axes
3 Invalid block length as of starting
address
5 Not a double word address (not
divisible by 4)
24 Module was called from a spawn/
submit job

1 – 48 HEIDENHAIN Technical Manual TNC 320


Module 9141 Read axis-specific feed-rate (status)
Module 9141 is used to interrogate the feed-rate status (limited by Module
9140) of multiple axes. The status for a certain number of axes is stored
consecutively in the double word memory.

Note

This module is not supported if the symbolic programming interface is


used. This PLC module was introduced in order to remain compatible with
older PLC programs (with API version 1.0) of older HEIDENHAIN contouring
controls.

Call:
PS B/W/D/K <Start address of double word array>
>= 0: Feed rate from corresponding double word
–1: Maximum feed rate
–2: Rapid-traverse feed rate for this axis
–3: Manual feed rate for this axis
PS B/W/D/K <Number of axes>
CM 9141
Error recognition:

Marker Value Meaning


M4203 0 Function was performed
1 Error code in
NN_GenApiModuleErrorCode
W1022 2 Invalid number of axes
3 Invalid block length as of starting
address
5 Not a double word address (not
divisible by 4)
24 Module was called from a spawn/
submit job

December 2006 NC Software 340 551-xx 1 – 49


„ New: Module 9147 (Assigning a reference value to an axis):
In some cases it may be necessary to assign a new reference value to an
axis, e.g. if an axis is mechanically fixed and the encoder is moved. Since
due to the mechanical fixing the position of the axis cannot be changed, you
can assign it a new reference value.
 Enter the new reference value in Module 9147.
Module 9147 Assigning a reference value to an axis
If a new reference value is assigned to an axis, the corresponding bit in
NN_AxReferenceAvailable (W1032) is reset.

Note

When calling the module for an NC axis during a strobe, the synchronization
with the advance calculation (strobe with MP_sync = SYNC_CALC) must
be configured for this strobe.

Call:
PS B/W/D/K <Axis number>
0 to 8: Axes 1 to 9
PS B/W/D/K <New reference value in 0.1 µm>
CM 9147
Error recognition:

Marker Value Meaning


NN_GenApiModuleError 0 No error
(M4203) 1 Error code in
NN_GenApiModuleErrorCode
NN_GenApiModuleError 2 Invalid axis number
Code (W1022) 21 Missing strobe in M4176 = 1
24 Module was called in a spawn job or
submit job

1 – 50 HEIDENHAIN Technical Manual TNC 320


Module 9171 Start of a spindle orientation with adjustable parameters
Module 9171 can be used to start an orientation of the spindle. The orientation
speed, orientation angle and the direction of rotation can be set. The module
sets the marker M4130, which displays that the positioning is running and for
how long.

Note

This PLC module was introduced in order to remain compatible with older
PLC programs (with API version 1.0) of older HEIDENHAIN contouring
controls. This module is not supported if the symbolic programming
interface is used. Use Module 9414 instead.

Constraints:
„ If no speed output has occurred for the spindle, the call will have no effect.
„ If the marker M4130 is set in the same PLC scan and Module 9171 is called,
the spindle is oriented with the parameters from the module call.
„ If the module is called several times in the same scan, the spindle will be
oriented with the parameters of the last call.
„ If the module is called although an orientation from an earlier PLC scan is not
yet finished, the call will have no effect.
„ The module functions only in the cyclic PLC program.
„ If the module is called while the spindle is turning, the direction of
orientation that was transferred will be ignored. The spindle is always
oriented in the direction of spindle rotation.
„ If the values +2 to +4 are transferred as direction of rotation, the spindle can
be oriented to the angle last defined in CYCL DEF 13. The transferred angle
of orientation is added to the value from CYCL DEF 13. Therefore the PLC
can transfer an additional spindle preset.
„ The module is only supported for PLC programs that use API version 1.0.
Call:
PS B/W/D/K <Orientation angle [1/10000 degrees]>
or additional preset if there is a value from CYCLE DEF 13
PS B/W/D/K <Speed [1/1000 rpm]>
PS B/W/D/K <Direction of rotation>
–1: Negative direction (M04)
0: Direction of the shorter path
1: Positive direction (M03)
2: Same as –1, but angle from CYCLE DEF 13
3: Same as 0, but angle from CYCLE DEF 13
4: Same as +1, but angle from CYCLE DEF 13
CM 9171

December 2006 NC Software 340 551-xx 1 – 51


Error recognition:

Marker Value Meaning


M4203 0 Spindle is oriented, M2712/M4130=1
1 Error code in
NN_GenApiModuleErrorCode
W1022 1 The value for direction of rotation or
rotational angle is invalid
2 Spindle number/rotational speed
incorrect, or no speed output yet
19 Spindle is not a closed-loop spindle
24 Module was called from a spawn/
submit job
27 A spindle orientation is already
running

1 – 52 HEIDENHAIN Technical Manual TNC 320


Module 9248 Copy, rename or delete file
Module 9248 is used to copy, rename and delete files.
Constraints:
„ The file names must contain drive information (e.g. PLC:) and file types.
„ The file types are used to determine whether renaming is permissible.
„ Dependencies with other files are not considered when deleting files.
Call:
PS B/W/D/K/S<Name of the source file>
PS B/W/D/K/S<Name of the target file>
Only used with mode 0 or 1
PS B/W/D/K <Mode>
0: Copy
1: Rename
2: Delete
CM 9248
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 No error
Error (M4203) 1 Error (error code in
NN_GenApiModuleErrorCode)
NN_GenApiModule 2 Module was called in an invalid mode
ErrorCode (W1022) setting
7 Error during file conversion, invalid source
or target string or error during copying
without file conversion
20 Module was not called in a submit job or
spawn job
36 Not identical file types, conversion not
possible

December 2006 NC Software 340 551-xx 1 – 53


Module 9270 Read OEM-define string value
Module 9270 is used to read the values from the CfgOemString configuration
entities. The first value in the list under “value” whose attribute “key”
matches the transferred token is read.
The value can also be an empty string, which is then transferred into the target
string. The target string is then only changed if a matching entity was found.
Trailing blank spaces of the token are removed before comparison with the
keys of the CfgOemString entities.
Call:
PS B/W/D/K/S<String number or string with token>
PS B/D/K/S <String number>
CM 9270
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Data was read
Error (M4203) 1 Error (error code in
NN_GenApiModuleErrorCode)
NN_GenApiModule 3 Parameter invalid/invalid number of the target
ErrorCode (W1022) string
12 Token string too long
13 Internal error
20 Module was not started from a spawn job or
submit job
30 Parameter does not exist

1 – 54 HEIDENHAIN Technical Manual TNC 320


Module 9271 Write OEM-define string value
With Module 9271 you change or create in the configuration data a
CfgOemString entity whose attribute “key” matches the transferred token. If
the entity already exists, the first value in the list “value” is replaced by the
transferred value. Otherwise a new entity is created in the SYS.CFG file, and
the first value in the list “value” is set to the transferred value. Trailing blank
spaces of the token are removed before comparison with the keys of the
CfgOemString entities. Also, trailing blank spaces of the value are removed
before entering it in the CfgOemString entity.
Call:
PS B/W/D/K/S<String number or string with token>
PS B/W/D/K <String number or string with value>
CM 9271
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Data was changed
Error (M4203) 1 Error (error code in
NN_GenApiModuleErrorCode)
NN_GenApiModule 3 Parameter invalid/invalid number of the
ErrorCode (W1022) target string
12 Token string or string value too long
13 Internal error
20 Module was not started from a spawn job
or submit job

December 2006 NC Software 340 551-xx 1 – 55


Module 9277 Writing data into the OEM log
With Module 9277 the PLC can write data into a specific OEM log. Up to eight
OEM logs can be used at the same time. The logs created are UTF8-encoded,
as is the control log.
The log can be written to the TNC: or to the PLC: partition.
The module can be called from a cyclic PLC program or from a spawn job or
submit job. The string for the log entry may contain two place holders (data1
and data2). Only specified place holders will be replaced. The output format is
controlled through the entry %d for integers or the entry %f for floating point
numbers with three decimal places. Alternately, you can define the number of
decimal places with %.1f to %.6f. Example of a string for the log entry:
S“data1: %.2f data2: %d”
If the maximum log size of 1 MB is exceeded, the log is copied to
<name>.LOG.OLD and a new log with the same name is created. Once the
logs have been called, they remain open until the control is shut down.
Call:
PS B/W/D/K/S<Path with file name (without extension *.LOG)>
PS B/W/D/K/S<String with place holder for log entry>
PS B/W/D/K <Value for data1>
PS B/W/D/K <Value for data2>
PS B/W/D/K <Switch for additional entries>
Bit 0 = 0/1: Entry without/with time stamp
Bit 1 = 0/1: Entry without/with PLC cycle counter
Bit 2 = 0: Changes are buffered, and written to the file in
intervals of one minute
Bit 2 = 1: Entry is written immediately, and file is closed
again.
Important: If you call the module cyclically, and Bit 2 =1
is set, the create a very high system load on the control!
CM 9277
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Data written into OEM log
Error (M4203) 1 Error code in
NN_GenApiModuleErrorCode
NN_GenApiModule 2 Invalid string number or invalid string
ErrorCode (W1022) 22 Message cannot be transmitted
36 Invalid path specified

1 – 56 HEIDENHAIN Technical Manual TNC 320


Module 9291 Starting an NC macro
With Module 9291, you can call an NC macro in any operating mode. They are
executed like cycles, without block display. The control-in-operation symbol is
displayed while the macro is being executed. No macros can be activated if
there is currently an External emergency stop error message.

The path name for the NC macro to be started is ascertained via the
configuration object Path => CfgSystemCycle. The key (=name of the folder)
defined under CfgSystemCycle also specifies the keyword with which the
macro is called from the NC program.
You also specify with MP_path where the NC macro is stored.
Call:
PS B/W/D/K/S<Keyword>
CM 9291
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 NC macro was executed
Error (M4203) 1 Error code in
NN_GenApiModuleErrorCode (W1022)
NN_GenApiModule 2 Key for the NC macro does not exist, or
ErrorCode (W1022) invalid string
7 Macro cannot be executed.
8 External emergency stop is active
20 Module was not called in a spawn job or
submit job
28 NC program or other macro is already
running
29 The file given under the key is not an NC
program (*.H or *.I)
36 The file given under the key does not exist

December 2006 NC Software 340 551-xx 1 – 57


„ New: PLC Modules 9300 to 9302, 9304 to 9306 for managing multiple
tool magazines
Any number of magazines and tools can be managed in the pocket table. The
structure of the pockets in the magazine is specified via the table prototypes
for the pocket table. The prototype for the pocket table consists of an empty
pocket table, and is saved in the file PLC:\proto\table\prototype.tch.
The current tool magazine number is saved in a double word. You can
configure the name for the operand any way you want in the T strobe via the
MP_pocketNumber parameter.
Module 9302 searches for an open pocket in a tool magazine, and Module
9306 switches tools between the tool magazines.
Module 9301 determines the number of the entry in the pocket table. The
number of the entry depends on the tool magazine and pocket numbers.
 Enter this number in the modules which cannot accept tool magazine
numbers (e.g. Modules 9092, 9093, 9094).

1 – 58 HEIDENHAIN Technical Manual TNC 320


Module 9300 Locking and releasing the pocket table
You must lock the pocket table with Module 9300 if you want to edit it with
Modules 9305 or 9306.
After you are finished editing, you must release the pocket table with this
module.
The module can only be called at standstill or during a strobe output.
The module may only be called in a spawn or submit job.
Call:
PS B/W/D/K <Code for locking/releasing>
0: Unlock
1: Lock
CM 9300
PL B/W/D <Error code>
0: Locked / unlocked
1: Could not be locked
2: Could not be unlocked
3: Parameters for locking are invalid
4: Call was not in a submit or spawn job
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Pocket table locked/released
Error (M4203) 1 See <error code> or
NN_GenApiModuleErrorCode
NN_GenApiModule 2 Invalid parameter for locking
ErrorCode (W1022) 6 Table is already locked/is not reserved by
the PLC
20 Call was not in a submit or spawn job

December 2006 NC Software 340 551-xx 1 – 59


Module 9301 Find the number of an entry in the pocket table
Module 9301 determines the number of an entry in the pocket table. This
number is necessary for the modules in which no tool magazine numbers can
be entered.
Call:
PS B/W/D/K <Tool magazine number>
PS B/W/D/K <Pocket number>
CM 9301
PL B/W/D <Number of the entry in the pocket table>
–1: M4203 = 1
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Number of the entry was found
Error (M4203) 1 Error code in W1022
NN_GenApiModule 1 Invalid pocket number
ErrorCode (W1022) 2 Invalid tool magazine number
20 Module was not called in a spawn job or
submit job

1 – 60 HEIDENHAIN Technical Manual TNC 320


Module 9302 Search for a vacant pocket in the tool magazine
Module 9302 searches for a vacant pocket in a tool magazine.
Call:
PS B/W/D/K <Tool magazine number>
PS B/W/D/K <Pocket at which the search is to be started>
CM 9302
PL B/W/D <Number of the vacant pocket>
–1: No vacant pocket available
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Vacant pocket was found
Error (M4203) 1 Error code in W1022
NN_GenApiModule 1 Invalid pocket number
ErrorCode (W1022) 2 Invalid tool magazine number
20 Module was not called in a spawn job or
submit job
36 Error in file handling

Module 9304 Copying OEM values from the pocket table


Module 9304 copies the contents of columns p1 to p5 of the active pocket
table a memory area of the PLC.
The module can only be called in a spawn or submit job.
Call:
PS B/W/D/K <Magazine number>
PS B/W/D/K <Pocket number>
PS B/W/D/K <Double-word address>
CM 9304
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 OEM value was copied
Error (M4203) 1 See NN_GenApiModuleErrorCode
NN_GenApiModule 1 Pocket number is invalid
ErrorCode (W1022) 2 Magazine number is invalid
4 Double-word address is invalid
20 Call was not in a submit or spawn job
36 File error in pocket table
41 Read of columns p1 to p5 failed because of
invalid number format

December 2006 NC Software 340 551-xx 1 – 61


Module 9305 Moving tools in the pocket table
With Module 9305 you can shift a tool in the pocket table to another pocket.
Constraints:
„ The module can only be called at standstill or during a strobe output.
„ The module can only be called in a spawn or submit job.
„ Before you call this module, the pocket table must be locked with Module
9300, and must later be released with Module 9300 again.
„ Only the column for the tool number is changed in the original and new
entries. All other (pocket-specific) data is maintained.
Call:
PS B/W/D/K <Original pocket>
PS B/W/D/K <New pocket>
CM 9305
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Pocket exchange successful
Error (M4203) 1 Pocket exchange not possible, see
NN_GenApiModuleErrorCode for error
NN_GenApiModule 2 Invalid parameter for pocket number
ErrorCode (W1022) 6 Magazine management is active
20 Call was not in a submit or spawn job
21 Call was during program run without
locking of the pocket table via Module 9300
30 No valid tool entered in the original pocket
36 Error during file access
55 Pocket table cannot be locked

1 – 62 HEIDENHAIN Technical Manual TNC 320


Module 9306 Moving tools between magazines
Module 9306 is used to exchange a tool between the defined magazines, or
to move it beyond the magazine borders.
Constraints:
„ The module can only be called at standstill or during a strobe output.
„ Before you call this module, the pocket table must be locked with Module
9300, and must later be released with Module 9300 again.
„ The module can only be called in a spawn or submit job.
„ Only the columns for the tool number are changed in the original and new
entries. All other (pocket-specific) data is maintained.
Call:
PS B/W/D/K <Original magazine>
PS B/W/D/K <Original pocket>
PS B/W/D/K <Target magazine>
PS B/W/D/K <Target pocket>
CM 9306
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Pocket has been exchanged
Error (M4203) 1 Pocket exchange not possible, see
NN_GenApiModuleErrorCode for error
NN_GenApiModule 1 Pocket number is invalid
ErrorCode (W1022) 2 Magazine number is invalid
6 Magazine management is active
20 Call was not in a submit or spawn job
21 Call was during program run without
locking of the pocket table via Module 9300
30 Programmed pocket is not occupied
36 Error during file access
55 Pocket table cannot be locked

December 2006 NC Software 340 551-xx 1 – 63


Module 9322 Information of the current NC program
Module 9322 can interrogate information about the NC program currently
selected or being machined.
The currently selected NC program can be interrogated in the cyclic program
part as well as from a spawn or submit task. The path and file name are
returned. If no NC program is selected, the module returns an empty string.
The interrogation of the selected NC programs always returns 0 as the block
number.
The interrogation of the NC program currently being machined is only possible
from a spawn or submit task. The path name, file name and current block
number of the program being machined are returned. If no NC program is
currently being machined, the module returns an empty string and 0 as the
current block number.
Call:
PS B/W/D/K <Mode>
0: Block number of the current NC (sub-)program, no
information about cycle calls
2: Only name of the NC main program
PS B/W/D/K <String number>
PL B/W/D <Block number>
CM 9322
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Marker was written
Error (M4203) 1 Error (error code in
NN_GenApiModuleErrorCode)
NN_GenApiModule 1 Invalid mode setting
ErrorCode (W1022) 2 Invalid PLC string number
12 Path name is longer than PLC string
13 Internal error
20 Module was not started from a spawn job
or submit job

1 – 64 HEIDENHAIN Technical Manual TNC 320


Module 9340 Searching for a pocket depending on magazine rules
Module 9340 searches through a tool magazine for vacant, reserved or
occupied pockets.
Constraints:
„ The module influences the RSV column and all LOCKED columns in the pocket
table. These columns may not be changed by the PLC program or with the
table editor.
„ The search for a vacant pocket depends on the magazine rules, which must
be specified in the pocket table.
„ If the pocket table has not yet been locked with Module 9300, the module
tries to lock it itself.
Call:
PS B/W/D/K <Magazine number>
PS B/W/D/K <Pocket number for starting the search>
PS B/W/D/K <Tool number or tool type>
PS B/W/D/K <Mode>
Bit 0 = 0: Programmed number is tool type
Bit 0 = 1: Programmed number is tool number
Bit 1 = 1: Search for a vacant pocket (depending on
magazine rules)
Bit 2 = 1: Search for a reserved pocket (independent of the
pocket for starting the search)
Bit 3 = 1: Search for an occupied pocket (independent of the
pocket for starting the search)
CM 9340
PL B/W/D/K <Tool number in the programmed magazine>
–1: Error code NN_GenApiModuleErrorCode
–2: No free pocket or tool not found
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Pocket search performed successfully
Error (M4203) 1 Error (error code in
NN_GenApiModuleErrorCode)
NN_GenApiModule 1 Transferred pocket number is invalid
ErrorCode (W1022) 2 Transferred magazine number is invalid
3 Transferred mode is invalid
4 Tool number or tool type is invalid
20 The module was not called from a spawn
or submit job
36 File error in the tool or pocket table
45 Module canceled, failure evaluation based
on return value
55 Pocket table could not be locked

December 2006 NC Software 340 551-xx 1 – 65


Module 9341 Editing a pocket table depending on magazine rules
Module 9341 reserves, releases, or makes pockets unavailable in the pocket
table, in accordance with the magazine rules.
The module affects the columns RSV, LOCKED_ABOVE, LOCKED_BELOW,
LOCKED_LEFT, and LOCKED_RIGHT. Therefore these columns may not be
changed manually nor by the PLC program.
Call:
PS B/W/D/K <Magazine number>
PS B/W/D/K <Pocket number>
PS B/W/D/K <Tool number>
PS B/W/D/K <Mode>
0: Release pocket (depending on magazine and tool
number)
1: Release pocket (depending on magazine and pocket
number)
2: Reserve pocket (depending on magazine, pocket and tool
number)
3: Make pocket unavailable (depending on magazine and
pocket number)
4: Reserve pocket if previously unavailable (depending on
magazine and pocket number)
CM 9341
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Pocket table edited
Error (M4203) 1 Error code in
NN_GenApiModuleErrorCode
NN_GenApiModule 1 Invalid pocket number
ErrorCode (W1022) 2 Invalid magazine number
3 Invalid mode
4 Invalid tool number
6 Reservation not possible
7 Magazine rules not compiled or not
present
20 Module was not called in a spawn job or
submit job
36 File error in pocket table

1 – 66 HEIDENHAIN Technical Manual TNC 320


Module 9342 Find magazine and pocket number
Module 9342 determines the magazine and pocket number from the tool
number. The module takes the RSV column of the pocket table into account if
magazine rules are in effect. If the module is used to find reserved pockets, it
returns the first reserved pocket with ascending magazine number. However,
further pockets can be reserved. In this case the search must be repeated with
another “start magazine for the search.”
Call:
PS B/W/D/K <Tool number>
PS B/W/D/K <Mode>
0: Look for occupied pocket
1: Look for reserved pocket
PS B/W/D/K <Start magazine for the search>
CM 9342
PL B/W/D/K <Magazine number>
–1: Magazine could not be found
PL B/W/D/K <Pocket number>
–1: Pocket could not be found
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Magazine and pocket number found
Error (M4203) 1 Error code in
NN_GenApiModuleErrorCode
NN_GenApiModule 1 Invalid mode
ErrorCode (W1022) 2 Invalid start magazine for the search
20 Module was not called in a submit job or
spawn job
30 Tool not found
36 File error in pocket table

December 2006 NC Software 340 551-xx 1 – 67


Module 9343 Compilation and activation of magazine rules
Module 9343 is used to compile and activate magazine rules (*.TCR) If an error
occurs during compilation, the PLC program is stopped. The magazine rules
must be activated during the first run of the PLC program or before the first
call of Modules 934x.
Call:
PS B/W/D/K/S<Path and file name of the magazine rules>
CM 9343
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Magazine rules have been compiled and
Error (M4203) activated
1 Error code in
NN_GenApiModuleErrorCode
NN_GenApiModule 11 Invalid string programmed
ErrorCode (W1022) 20 Module was not called in a spawn or
submit job
38 Error during compilation

Module 9350 Read data from the tool table


Module 9350 reads the contents of a cell in the active tool table. The value is
read as an integer value.
Call:
PS B/W/D/K <Tool number>
PS B/W/D/K <Tool index>
≤ 0: Main entry
PS B/W/D/K <Element number>
0: Tool length L
1: Tool radius R
2: Not used
3: Replacement tool (–1 if not defined)
4: Not used
5: Maximum tool age TIME1
6: Maximum tool age for TOOL CALL TIME2
7: Current tool age CUR.TIME
8: Tool radius 2 R2
9: Oversize for tool length DL
10: Oversize for tool radius DR
11: Oversize for tool radius 2 DR2
12: Tool locked TL (0=No, 1=Yes)
13: Number of tool teeth CUT.
14: Wear tolerance in length LTOL
15: Wear tolerance in radius RTOL
16: Cutting direction DIRECT. (0=+; 1=–)
17: PLC status PLC
18: Tool offset for length TT: L-OFFS
19: Tool offset for radius TT: R-OFFS
20: Break tolerance for length LBREAK
21: Break tolerance for radius RBREAK
22: Tooth length LCUTS
23: Maximum plunge angle ANGLE

1 – 68 HEIDENHAIN Technical Manual TNC 320


24: Tool number
25: Tool index
26: PLC value PLC-VAL
27: Probe center offset in reference axis CAL-OF1
28: Probe center offset in minor axis CAL-OF2
29: Spindle angle during calibration CAL-ANG
30: Tool type PTYP
31: Maximum speed NMAX
32: Retract tool LIFTOFF
CM 9350
PL B/W/D <Element value>
PL B/W/D <Error number>
0: No error, element value was read
1: Module was not called in a spawn or submit job
2: File type does not exist
3: No tool table with status M
4: Line number does not exist
5: Incorrect element number
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Element value read
Error (M4203) 1 Error code in
NN_GenApiModuleErrorCode
NN_GenApiModule 2 Incorrect element number
ErrorCode (W1022) 7 Line number does not exist
20 Module was not called in a spawn or
submit job
36 No tool table with status M

December 2006 NC Software 340 551-xx 1 – 69


Module 9351 Write data to tool table
Module 9351 writes the contents of a cell to the active tool table. The value
must be given as an integer value.
Call:
PS B/W/D/K <Tool number>
PS B/W/D/K <Tool index>
–1: Write all indexes of a tool
PS B/W/D/K <Element number>
See Module 9350
PS B/W/D/K <Element value>
CM 9351
PL B/W/D <Error number>
0: No error, element value was written
1: Module was not called in a spawn or submit job
2: File type does not exist
3: No tool table with status M
4: Line number does not exist
5: Incorrect element number
6: Element value is out of range
7: Error while writing to the file
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Element value written
Error (M4203) 1 Error code in
NN_GenApiModuleErrorCode
NN_GenApiModule 2 Incorrect element number
ErrorCode (W1022) 7 Line number does not exist
20 Module was not called in a spawn or
submit job
36 No tool table with status M

1 – 70 HEIDENHAIN Technical Manual TNC 320


Module 9407 Give default tool number for an NC channel
You use Module 9407 to give a default tool number and index for an NC
channel.
Constraints:
„ The module must be called in the cyclic PLC program. It may not be
executed in a submit job or spawn process.
„ The module may only be executed as long as no NC program is being
machined in this machining channel, or a strobe is currently synchronizing
the calculation of the NC program (strobe with SYNC_CALC).
„ This module is only supported by the new symbolic memory interface. If you
are using the iTNC-compatible interface, the module returns an error. The
appropriate markers are to be used for the iTNC-compatible interface.
Call:
PS B/W/D/K <Channel number>
PS B/W/D/K <Number of the tool>
PS B/W/D/K <Step index of the tool>
PS B/W/D/K <Mode bit-coded>
Bit 0: Do not update pocket table
CM 9407
PL B/W/D <Error number>
0: No error, default tool number assigned successfully
1: Invalid channel number
2: An NC program is running without a strobe, or a strobe
without synchronization of the look-ahead calculation
(SYNC_CALC)
3: Negative tool number
4: Negative tool index
5: Module was called in a spawn job or submit job
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Default tool number assigned successfully
Error (M4203) 1 Error (error code in
NN_GenApiModuleErrorCode)
NN_GenApiModule 1 Invalid channel number given
ErrorCode (W1022) 3 Negative tool number given
4 Negative tool index given
21 The calculation of the NC program is not
synchronized with the execution of the
module (no strobe with SYNC_CALC)
24 The module was called in a submit job or
spawn process

December 2006 NC Software 340 551-xx 1 – 71


Module 9411 Read spindle information
Module 9411 reads the position and shaft-speed values of the spindle.
Constraints:
„ This module is only supported by the new symbolic memory interface. If the
iTNC-compatible interface is used, the module returns an error.
Call:
PS B/W/D/K <Logical spindle number>
0: Spindle 1
1: Spindle 2
etc.
PS B/W/D/K <Desired spindle information>
1: Actual position
2: Nominal position
3: Actual position in the reference system
4: Following error (servo lag)
10: Actual shaft speed
11: Nominal shaft speed

CM 9411
PL D <Spindle information>
For 1 to 4: Value in 0.0001°
For 10 to 11: Value in 0.0001 rpm
For 20: 0: Spindle in wye operation
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 No error, spindle information was read
Error (M4203) 1 Error code in
NN_GenApiModuleErrorCode (W1022)
NN_GenApiModule 2 Requested spindle number or spindle
ErrorCode (W1022) information is invalid
99 Module is not supported (control does not
operate with symbolic memory interface)

1 – 72 HEIDENHAIN Technical Manual TNC 320


Module 9416 Select gear range and assigned settings for spindle
The module selects the gear range and the assigned parameter set, as well as
other settings, for a spindle.

Constraints:
„ This module is only supported by the new symbolic memory interface. If the
iTNC-compatible interface is used, the module returns an error.
„ If no gear ranges are configured, but other settings are to be changed, then
the gear range 0 must be entered.
Call:
PS B/W/D/K <Logical spindle number>
PS B/W/D/K <Mode>
Bit 0: Direction of spindle rotation
0 = Direction of rotation not inverted
1 = Direction of rotation inverted
PS B/W/D/K <Gear range>
CM 9416
PL B/W/D <Error number>
0: Module successfully executed
1: Faulty module call (invalid spindle number)
2: Faulty module call (negative gear range)
3: Invalid gear range
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 No error, spindle is being rotated
Error (M4203) 1 Error code in
NN_GenApiModuleErrorCode (W1022)
NN_GenApiModule 2 Invalid task data transferred (see error
ErrorCode (W1022) number in returned value)
99 Module is not supported (control does not
operate with symbolic memory interface)

December 2006 NC Software 340 551-xx 1 – 73


Module 9417 Set default shaft speed for spindle
You use Module 9417 to enter a default shaft speed for the spindle for the
display.
Constraints:
„ The default shaft speed for the display is not offset by the spindle override,
i.e. any value set with the override potentiometer must be included via the
PLC program.
„ The maximum actual shaft speed is shown, as well as the shaft speed
entered via the module.
„ The shaft speed for calculations in the NC program may only be set if no NC
program is being executed or if there is currently a strobe for
synchronization of the block scan. The value SYNC_CALC must be set for
MP_sync when configuring the strobe.
„ The shaft speed must not be negative.
„ Modes 2 to 4 of this module are only supported by the new symbolic
memory interface. If you are using the iTNC-compatible memory interface
(API 1.0), the module returns an error.
Call:
PS B/W/D/K <Logical spindle number>
PS B/W/D/K <Mode>
1: Shaft speed for display
2: Shaft speed for NC program
PS B/W/D/K <Speed in 1/1000 rpm>
CM 9417
PL B/W/D <Error number>
0: Module successfully executed
1: Invalid spindle number given
2: Invalid mode given
3: Negative shaft speed given
4: Shaft speed for NC program was changed during program
run
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Module executed successfully
Error (M4203) 1 Error code in
NN_GenApiModuleErrorCode (W1022)
NN_GenApiModule 2 Invalid task data transferred (see error
ErrorCode (W1022) number in returned value)
21 Shaft speed for NC program was changed
during program run
99 Module is not supported (control does not
operate with symbolic memory interface)

1 – 74 HEIDENHAIN Technical Manual TNC 320


Module 9418 Set status for spindle
You use Module 9418 to enter a new status for the spindle.
This module is only supported by the symbolic memory interface. If you are
using the iTNC-compatible memory interface (API 1.0), the module returns an
error.
Call:
PS B/W/D/K <Logical spindle number>
PS B/W/D/K <Mode>
1: Evaluate the spindle reference mark again
PS B/W/D/K <Value>
For mode =1: Without meaning
CM 9418
PL B/W/D <Error number>
0: Module successfully executed
1: Invalid spindle number given
2: Invalid mode given
Error recognition:

Marker Value Meaning


NN_GenApiModule 0 Module executed successfully
Error (M4203) 1 Error code in
NN_GenApiModuleErrorCode (W1022)
NN_GenApiModule 2 Invalid task data transferred (see error
ErrorCode (W1022) number in returned value)
99 Module is not supported (control does not
operate with symbolic memory interface)

December 2006 NC Software 340 551-xx 1 – 75


New plain- „ New: Cycle 25 (contour train)
language In conjunction with Cycle 14 CONTOUR GEOMETRY, Cycle 25 facilitates
programming the machining of open contours (i.e. where the starting point of the contour
functions is not the same as its end point).
This cycle offers significant benefits in comparison to machining an open
contour with positioning blocks:
• The contour can be machined throughout by up-cut and by climb milling.
• The TNC 320 can traverse the tool back and forth for milling in several
infeeds, which reduces machining time.
„ New: Cylinder surface interpolation (software option 1!)
With Cycle 27 you can transfer a contour defined on the unrolled surface to
the surface of the cylinder. Use Cycle 28 if you want to mill guideways on
the cylinder. With Cycle 29 you can transfer a ridge defined on the unrolled
surface to the surface of the cylinder.

Note

Also refer to the information in the TNC 320 User’s Manual regarding the
new plain-language functions.

New touch probe „ New: Touch-probe table


functions Effective immediately, a new touch-probe table is available for configuration
of touch probes. In the Manual Operation and El. Handwheel modes of
operation you can open the touch-probe table via the PROBE FUNCTION and
TCH PROBE TABLE soft keys. You can also reach the touch-probe table via the
file manager under TNC:\table\tchprobe.tp.
The new touch-probe table supersedes the form-based touch probe system
configuration of the NC software 340 551-01. All touch-probe data can be
configured conveniently through the table. All HEIDENHAIN touch-probe
systems are preconfigured and can be selected through a drop-down menu.

1 – 76 HEIDENHAIN Technical Manual TNC 320


To make it possible to cover the widest possible range of applications, the
touch-probe table offers numerous settings to enable you to determine the
behavior common to all touch probe cycles:

Column Description
T Number of the touch probe: Enter this number in the tool table
(column: TP_NO) under the appropriate tool number
TYPE Selection of the touch probe used
CAL_OF1 Offset of the touch probe axis to the spindle axis for the
reference axis
CAL_OF2 Offset of the touch probe axis to the spindle axis for the minor
axis
F Feed rate at which the control is to probe the workpiece.
FMAX Feed rate at which the touch probe pre-positions, or is
positioned between the measuring points
DIST If the stylus is not deflected within the defined path, the control
outputs an error message.
SET_UP Set-up clearance for pre-positioning during probing cycles
F_PREPOS Pre-positioning with speed from the column FMAX:
FMAX_PROBE
Pre-position at the machine’s rapid traverse:
FMAX_MACHINE
TRACK Spindle orientation (the touch probe is oriented so that it is
always probed by the same point on the touch-probe stylus tip)

The following new machine parameters are available for configuration of the
touch probe:

Settings in the configuration editor:

System
Probing
CfgTouchProbe
mStrobeUTurn
mStrobePos
posAngle
posTolerance
considerPreset
probingPasses
confidenceRange

December 2006 NC Software 340 551-xx 1 – 77


MP_mStrobeUTurn
M function for probing to find the stylus center
(Comparable to iTNC 530: MP6160)
Format: Numerischer Wert
Input: –1 to 999
–1: Spindle orientation directly through NC
0: Function inactive
1 to 999: Number of the M function for spindle orientation by the
PLC
Default: 0

MP_mStrobePos
M function for orienting the touch probe before each probing
procedure
(Comparable to iTNC 530: MP6161)
Format: Numerischer Wert
Input: –1 to 999
–1: Spindle orientation directly through NC
0: Function inactive
1 to 999: Number of the M function for spindle orientation by the
PLC

MP_posAngle
Orientation angle (optional parameter)
(Comparable to iTNC 530: MP6162)
Format: Numerischer Wert
Input: Angle in [°]
0 to 359.9999 °
Default: Parameter hidden

MP_posTolerance
Tolerance for spindle angle
(Comparable to iTNC 530: MP6163)
Format: Numerischer Wert
Input: Angle in [°]
0.0000 to 3.0000 °
Default: Parameter hidden

MP_considerPreset
Consideration of a basic rotation in the manual operating modes
(Comparable to iTNC 530: MP6166)
Format: Auswahlmenü
Selection:
[ TRUE ]
Conduct a probe while taking any active basic rotation into account
(manual probe function)
[ FALSE ]
Do not take any active basic rotation into account
Default: FALSE

1 – 78 HEIDENHAIN Technical Manual TNC 320


MP_probingPasses
Number of measurements during probing in the automatic modes
of operation (touch probe block)
(Comparable to iTNC 530: MP6170)
Format: Numerischer Wert
Input: 1 to 3
Default: 1
MP_confidenceRange
Confidence range for programmed measurement
(Comparable to iTNC 530: MP6171)
Format: Numerischer Wert
Input: 0.002 to 0.999 [mm]
Default: 0.002

December 2006 NC Software 340 551-xx 1 – 79


.

1 – 80 HEIDENHAIN Technical Manual TNC 320

Potrebbero piacerti anche