HEIDENHAIN MANUALplus 620 357
4.31 Programming with Variables
Reading tool data
Use the following syntax to read tool data. You can only access tools
that are entered in the turret list.
If a sequence of exchange is defined, program the first tool of the
sequence. The MANUALplus determines the data of the active tool.
Access to tool data of turret
Syntax: #wn(select)
n = turret pocket number
n = 0 for the current tool
select = designates the information to
be read
Primary machining direction
#wn(HR) Primary machining directions:
0: Undefined
1: +Z
2: +X
3: –Z
4: –X
5: +/–Z
6: +/–X
Version
#wn(AS) Versions
1: Right-hand
2: Left-hand
Tool orientation
#wn(WL) Tool orientation (reference: machining
direction of tool):
0: On the contour
1: To the right of the contour
– 1: To the left of the contour
Identification codes for tool information
#wn(ID) Tool ID number (assign in text variable (#xn))
#wn(WT) Tool type (3-digit number)
#wn(WTV) 1st position of tool type
#wn(WTH) 2nd position of tool type
#wn(WTL) 3rd position of tool type
#wn(NL) Usable length (inside turning and drilling tools)
#wn(HR) Main machining direction (see table at right)
#wn(NR) Secondary machining direction of turning tools
#wn(AS) Version (see at right)
#wn(ZZ) Number of teeth (milling tools)
#wn(RS) Tool nose (cutting) radius
#wn(ZD) Stud diameter
#wn(DF) Cutter diameter
#wn(SD) Shank diameter
#wn(SB) Cutting width
#wn(AL) Length of first cut
#wn(FB) Cutter width
#wn(WL) Tool orientation (see table at right)
#wn(ZL) Tool setting dimension in Z
#wn(XL) Tool setting dimension in X
#wn(YL) Tool setting dimension in Y
#wn(I) Position of tool tip center in X (see illustration)
#wn(K) Position of tool tip center in Z (see illustration)
#wn(ZE) Distance between tool tip and slide zero point Z
#wn(XE) Distance between tool tip and slide zero point X
#wn(YE) Distance between tool tip and slide zero point Y
#wn(DN) Diameter of drilling and milling tools
#wn(HW) Principal angle in the standardized system (0° to 360°)
#wn(NW) Secondary angle in the standardized system (0° to
360°)
#wn(EW) Tool angle
#wn(SW) Point angle