July 2013 8.7 Pallet management 1499
NC macro for
changing the tool
during tool-
oriented machining
A special tool-change macro is required for tool-oriented pallet machining. This
is defined through the keyword TCTOOLMODE= in NCMACRO.SYS.
This specific NC macro is called for tool oriented machining instead of the
standard tool-change macro.
The macro must perform the following functions:
Positioning to clearance height
Execution of M146
Tool change through TOOL CALL. The standard tool-change macro is called.
In the NC macro you can use FN18: SYSREAD Qxxx = ID510 NR5 or
NR6 IDX<Axis> to find whether a clearance height has been programmed for
an axis, and if so, the value specified for the clearance height.
With the M function M146 the current geometry information is saved in a
temporary file. This information is required for continuing NC program run after
an interruption due to a TOOL CALL during tool-oriented machining. In addition,
a code is entered in the CTID column and the entry in W-STATE is changed to
INCOMPLETE, if required.
A simple example of an NC macro for tool changing with tool-oriented
machining:
0 BEGIN PGM TOchange MM
1 L Z–32 R0 FMAX M91
2 FN 18: SYSREAD Q1 = ID60 NR1
3 FN 18: SYSREAD Q2 = ID60 NR2
4 FN 18: SYSREAD Q3 = ID60 NR3
5 FN 18: SYSREAD Q4 = ID60 NR4
6 FN 18: SYSREAD Q5 = ID60 NR5
7 FN 18: SYSREAD Q7 = ID60 NR7
7 FN 18: SYSREAD Q8 = ID60 NR8
8 M146
9 TOOL CALL Q1 Z SQ3 DL+Q4 DR+Q5 DR2:+Q7
10 END PGM TOchange MM