W1: Tool offset
18.2 Tool
Basic Functions
1432
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
MD18106 $MN_MM_MAX_CUTTING_EDGE_PERTOOL = 1 (Max. number of the D numbers per tool (DRAM))
Only tools with just one cutting edge are used. The value 1 of the machine data inhibits the definition of a second
cutting edge for a tool.
MD18106 $MN_MM_MAX_CUTTING_EDGE_PERTOOL = 12
A maximum of 12 cutting edges can be defined per tool.
Programming examples
Renaming a D number
The D number of cutting edge CE = 3 is to be renamed from 2 to 17. The following specifications apply:
• Internal T number T = 1
• D number = 2
• Tool with one cutting edge with:
• MD18105 $MN_MM_MAX_CUTTING_EDGE_NO = 20 (Max. value of the D numbers (DRAM))
Within the part program, this compensation is programmed as standard with
T1, ....D2
.
You assign the current D number of cutting edge 3 to a variable (DNoOld) and define the variable DNoNew for
the new D number:
The new D value 17 is then assigned to cutting edge CE=3.
Now the data for the cutting edge are addressed via D number 17, both via the system variable and in
programming with the NC address D.
This compensation is now programmed in the part program with
T1, ....D17
and the data are addressed as
follows:
$TC_DP2[ 1, 2 ] = 120
$TC_DP3[ 1, 2 ] = 5.5
$TC_DPCE[ 1, 2 ] = 3
;Cutting edge number CE
def int DNoOld, DNoNew = 17
DNoOld = GETDNO( 1, 3 )
SETDNO( 1, 3, DNoNew )
$TC_DP2[ 1, 17 ] = 120
$TC_DP3[ 1, 17 ] = 5.5
$TC_DPCE[ 1, 17 ] = 3
;Cutting edge number CE