Free Assignment Of D Numbers: Determine T Number To The Specified D Number (Getacttd) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Tool offsets
9.7 Free assignment of D numbers, cutting edge numbers
Example for renaming a D number
Programming
$TC_DP2[1.2]=120
$TC_DP3[1,2] = 5.5
$TC_DPCE[1,2] = 3
...
N10 def int DNoOld, DNoNew = 17
N20 DNoOld = GETDNO(1,3)
N30 SETDNO(1,3,DNoNew)
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 variables and in the programming
with the NC address.
9.7.4
Free assignment of D numbers: Determine T number to the specified D number
(GETACTTD)
Function
You determine the T number associated with an absolute D number using the
command. There is not check for uniqueness. If several D numbers within a TO unit are the
same, the T number of the first tool found in the search is returned. This command is not
suitable for use with "flat" D numbers, because the value "1" is always returned in this case
(no T numbers in database).
Syntax
status=GETACTTD(Tnr,Dnr)
Meaning
Dno
Tno
status
426
D number for which the T number shall be searched.
T number found
Value:
Meaning:
0
The T number has been found. Tno contains the value of the T
number.
-1
No T number exists for the specified D number; Tno=0.
-2
The D number is not absolute. Tno receives the value of the first
found tool that contains the D number with the value Dno.
-5
The function was not able to be executed for another reason.
Comment
;
;
;
Cutting edge number CE
;
;
;
;
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
GETACTTD
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents