Tool Commands
The Template file must be given commands in order for a Tool Report to be generated. The commands specify what to output, where to place the output, and the incremental location for the data in the next tool. The typical structure of a tool command is:
<Command> <row> <column> <row incremental change> <column incremental change>
|
Parameter
|
Meaning
|
|
<Command>
|
Command describing the information to extract
|
|
<row>
|
The cell row where the information for the first tool will be output
|
|
<column>
|
The cell column where the information for the first tool will be output
|
|
<row inc>
|
The increment in cell rows for all following tools
|
|
<col inc>
|
The increment in cell columns for all following tools
|
As an example, if we were to output a tool's diameter in the fifth column on the third row, we would use the following command:
ToolDiam 5 3 1 0
If we were to output a tool's diameter in the first column on the second row, we would use the following command:
ToolDiam 1 2 1 0
In both cases, the following tool would be one row down in the same column.
A comprehensive list of tool commands may be found starting on the following page. The list is also supplied in PDF format. The file Tool Commands.pdf may be found in the Documentation folder, which was installed with your new software.
Table 4: Tool Commands
|
Command
|
Definition
|
Output
|
Machine
|
|
ToolType
|
List of tools used in a part
|
"1 - 35, See #1"
|
Mill & Lathe
|
|
ToolPict
|
Picture representing the tool
|
picture
|
Mill & Lathe
|
|
ToolMat
|
ID number for the tool material
|
1 through 8 See #2
|
Mill & Lathe
|
|
ToolComment
|
Comment associated to the tool
|
Text
|
Mill & Lathe
|
|
ToolRadius
|
Tool radius (Tip Radius for Lathe)
|
value
|
Mill & Lathe
|
|
ToolTipAngle
|
Tool tip angle (Mill and Lathe)
|
value
|
Mill & Lathe
|
|
ToolLenReg
|
Tool length comp register offset
|
number
|
Mill & Lathe
|
|
ToolNumber
|
Tool Number (position in tool palette)
|
number
|
Mill & Lathe
|
|
ToolCounter
|
Tool Number (count)
|
number
|
Mill & Lathe
|
|
ToolNumTools
|
Total number of tools
|
number
|
Mill & Lathe
|
|
ToolThreadTpi
|
Threads Per Inch
|
value
|
Mill & Lathe
|
|
ToolOrient
|
Tool Orientation
|
0 through 8 See #6
|
Mill & Lathe
|
|
ToolID
|
Tool ID
|
number
|
Mill & Lathe
|
|
ToolUseID
|
User Tool ID
|
number
|
Mill & Lathe
|
|
ToolPitchTPI
|
Pitch/TPI
|
value
|
Mill & Lathe
|
|
ToolDiameter
|
Tool diameter
|
value
|
Mill
|
|
ToolCorner
|
Tool corner radius
|
value
|
Mill
|
|
ToolLength
|
Tool Length
|
value
|
Mill
|
|
ToolSpin
|
Tool rotation direction
|
"0=CW, 1=CCW, 2=Unknown"
|
Mill
|
|
ToolShank
|
Tool Shank diameter
|
value
|
Mill
|
|
ToolDraft
|
Tool draft angle
|
value
|
Mill
|
|
ToolFlutes
|
Number of flutes
|
number
|
Mill
|
|
ToolCRCReg
|
Tool rad compensation register
|
number
|
Mill
|
|
ToolFLength
|
Flute Length
|
value
|
Mill
|
|
ToolINCDiam
|
Non-Cutting Diameter of a tool
|
value
|
Mill
|
|
ToolLeadTip
|
Tip Depth of a tool
|
value
|
Mill
|
|
ToolShiftX
|
Tool change shift amount
|
value
|
Lathe
|
|
ToolShiftZ
|
Tool change shift amount
|
value
|
Lathe
|
|
ToolPresetX
|
Preset X position
|
value
|
Lathe
|
|
ToolPresetZ
|
Preset Z Position
|
value
|
Lathe
|
|
ToolThreadStyle
|
Thread Style
|
0 through 18 See #3
|
Lathe
|
|
ToolIC
|
Insert Size
|
number
|
Lathe
|
|
ToolThick
|
Lathe Tool Thickness
|
value
|
Lathe
|
|
ToolSize
|
Tool Size
|
number
|
Lathe
|
|
ToolLHolder
|
Lathe Tool Holder
|
number
|
Lathe
|
|
ToolThreadType
|
Thread Type
|
0 through 6 See #4
|
Lathe
|
|
ToolThreadIDOD
|
"Thread Type, ID or OD"
|
"0=ID, 1=ID, 2=Either"
|
Lathe
|
|
ToolThreadDir
|
Thread Directions
|
0 through 2 See #5
|
Lathe
|
|
ToolTopCornerRad
|
Top Corner Radius
|
value
|
Lathe
|
|
ToolToolPresetH
|
Preset H position
|
value
|
Lathe
|
|
ToolToolPresetV
|
Preset V position
|
value
|
Lathe
|
|
ToolTCShiftH
|
Tool Shift H position
|
value
|
Lathe
|
|
ToolTCShiftV
|
Tool Shift V position
|
value
|
Lathe
|
|
ToolTipRad
|
Tip Radius
|
value
|
Lathe
|
|
ToolLLength
|
Tool Length (Lathe)
|
value
|
Lathe
|
|
ToolLInsertAng
|
Insert Angle (Lathe)
|
value
|
Lathe
|
|
ToolLFaceAng
|
Face Angle (Lathe)
|
value
|
Lathe
|
|
ToolLSideAng
|
Side Angle (Lathe)
|
value
|
Lathe
|
|
ToolLTipWidth
|
Tip Width (Lathe)
|
value
|
Lathe
|
|
ToolLTipLength
|
Tip Length (Lathe)
|
value
|
Lathe
|
|
ToolLThreadFlatLen
|
Thread Flat Length
|
value
|
Lathe
|
|
ToolLThreadInsertW
|
Thread Insert Width
|
value
|
Lathe
|
|
ToolLThreadEdgeH
|
Thread Edge H position
|
value
|
Lathe
|
|
ToolLThreadEdgeV
|
Thread Edge V position
|
value
|
Lathe
|
|
ToolLMidAng
|
Mid Angle
|
value
|
Lathe
|
|
ToolLTipOffset
|
Lathe tool tip offset
|
value
|
Lathe
|
|
ToolLDRelief
|
Diameter Relief Angle
|
value
|
Lathe
|
|
ToolLFRelief
|
Face Relief Angle
|
value
|
Lathe
|
Underlined items should be used with the MapString command.
|
|
#1:
|
1=80° Diamond
6=Triangle
11=Groove
16=Rough Endmill
21=Keyway Cutter
26=Tap
31=Thread Mill
|
2=55° Diamond
7=Trigon
12=Part Off
17=Finish Endmill
22=Drill
27=Counter Sink
32=Back Bore
|
3=35° Diamond
8=Pentagon
13=V Thread
18=Ball Endmill
23=Center Drill
28=Reamer
33=Rigid Tap
|
4=Button
9=Parallelogram
14=Thread
19=Shell Mill
24=Spot Drill
29=Spot Face
34=Round Over
|
5=Square
10=Rectangle
15=V Notch
20=Face Mill
25=Boring Bar
30=Fly Cutter
35=Form Tool
|
|
#2
|
1=HSS
6=Diamond
|
2=HSS TiN Coated
7=Ceramic
|
3=Carbide Insert
8=Other
|
4=Carbide Insert Coated
|
5=Carbide Solid
|
|
#3
|
0=UN
5=STACME
10=BSPT
15=AB_PFT
|
1=UNJ
6=API
11=TR
16=NTF
|
2=ISO
7=Part60
12=RD
17=NJF
|
3=NPT
8=Part55
13=BSUN
18=Undefined
|
4=Acme
9=Whit55
14=AB_PFL
|
|
#4
|
0=None
4=Partial
|
1=Cresting
5=Positive
|
2=Full
6=Utility
|
3=MultiForm
|
4=Partial
|
|
#5
|
0=LeftHanded
|
1=RightHanded
|
2=Neither
|
|
|
|
#6
|
|
|
|
|