8
04.00 Tool Offsets
8.2 Lan
ua
e commands for tool mana
ement
8
840D
NCU 571
840D
NCU 572
NCU 573
810D 840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
8-267
GETT function
The GETT function returns the T number required to
set the tool data for a tool known only by its name.
Return parameter=GETT("WZ", DUPLO_NO)
If several tools with the specified name exist, the T
number of the first possible tool is returned.
Return parameter =–1: the tool name or duplo
number cannot be assigned to a tool.
Examples:
T="DRILL"
R10=GETT("DRILL", DUPLO_NO)
Return T number for DRILL with duplo
number = DUPLO_NO
The "DRILL" must first be declared with NEWT or
$TC_TP1[ ]
.
$TC_DP1[GETT("DRILL",
DUPLO_NO),1]=100
Write a tool parameter with tool name
SETPIECE function
This function is used to update the piece number
monitoring data.
The function counts all of the tool edges which have
been changed since the last activation of SETPIECE
for the stated spindle number.
SETPIECE(x,y)
x
Number of completed workpieces
y
y spindle number, 0 stands for master spindle (default setting)