Renaming D Numbers (Getdno, Setdno) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Tool offsets
8.7 Free assignment of D numbers, cutting edge numbers
8.7.3

Renaming D numbers (GETDNO, SETDNO)

Function
You must assign unique D numbers. Two different cutting edges of a tool must not have the
same D number.
GETDNO
This command returns the D number of a particular cutting edge (ce) of a tool with tool
number t. If no D number exists for the entered parameters, d=0 will be set. If the D number
is invalid, a value greater than 32000 is returned.
SETDNO
This command assigns the value d of the D number to a cutting edge ce of tool t. The result
of this statement is returned via state (TRUE or FALSE). If there is no data block for the
specified parameter, the value FALSE is returned. Syntax errors generate an alarm. The
D number cannot be set explicitly to 0.
Programming
d = GETDNO (t,ce)
state = SETDNO (t,ce,d)
Parameters
d
t
ce
state
Example for renaming a D number
$TC_DP2[1.2]=120
$TC_DP3[1,2] = 5.5
$TC_DPCE[1,2] = 3; cutting edge number CE
...
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.
8-38
D number of the tool edge
T number of the tool
Cutting edge number (CE number) of the tool
Indicates whether the command could be executed
(TRUE or FALSE).
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents