The template files that SURFCAM uses to produce the Operations List and Tooling List setup sheets are OPERATIONS.CFG and TOOLING.CFG. Both files can be found in the Surf2002Plus folder. Edit these files to customize the setup sheet.
These files are basically HTML files with a few modifications. Look at TOOLING.CFG and OPERATIONS.CFG to find examples of how they are used. The modifications are the following:
The following reserved phrases are each placed on a separate line. They mark off special sections in the HTML file.
begin repeat and end repeat : marks sections in HTML code that are to be repeated once for each operation. For example, if you want a list of the operation types displayed, you will have the following:
begin
repeat
*optype
end
repeat
begin _xxx_ and end _xxx_ : marks sections in HTML code that apply only to tools of type _xxx_ , where _xxx_ is one of the following: mill, drill, lathe, groove_lathe, thread_lathe, triangle_lathe, round_lathe, edm. For example, to display the tool number in a table only in the case of a mill tool, you will have the following:
begin
mill
<td>*tnum</td>
end
mill
The table below displays the different variables
you can use in TOOLING.CFG and OPERATIONS.CFG to display information about
the tool/operation.
You must
prefix each variable with an asterisk, for example *addr1
. Place these variables within the HTML code wherever you want the corresponding
information to appear. For example, to display a picture of a tool that
is centered in your setup sheet, you will have the following (where images is the subdirectory under Surf2002Plus where
the image files are kept):
<center><img src="images/*pic"></center>
|
variable |
Description |
comments |
|
addr1 |
address one |
|
|
addr2 |
address two |
|
|
calcchipl |
calculated chip load |
|
|
chipl |
tool chip load |
|
|
city |
City |
|
|
cl_ang |
tool clearance angle |
lathe only |
|
comment |
comment about tool |
|
|
coolant |
coolant description (on/off/mist/etc.) |
|
|
country |
country |
|
|
cutcomp |
if cutter comp is on (yes/no) |
|
|
cycle |
This will display a string that says "Drill", "Peck", "Tap", etc., and "-" if it is not applicable. |
|
|
doff |
diameter offset register |
|
|
feedrate |
feedrate for the operation |
|
|
flt_ht |
tool flute height |
mill only |
|
fname |
file name |
|
|
height |
tool total height |
mill only |
|
hor_ang |
tool angle from horizontal |
lathe only |
|
ic_dia |
internal diameter or tool width |
lathe, lathe_drill only |
|
incfl |
name of INC file |
|
|
incpt |
path of INC file |
|
|
libnum |
number of tool in library |
|
|
loff |
length offset register |
|
|
matdesc |
description of material |
|
|
mnum |
material number in material library |
|
|
name |
name |
|
|
nccfl |
NCC file |
|
|
num_side |
number of sides on the insert |
lathe only |
|
opcomment |
user-defined comment |
|
|
opnum |
operation number |
|
|
optype |
operation type |
|
|
ornt |
tool orientation |
lathe only |
|
pic |
tool image file |
|
|
plungerate |
plunge rate for the operation |
|
|
pname |
program name |
|
|
pnum |
program number |
|
|
sdate |
today's date |
|
|
sfm |
cutting speed |
mill only |
|
shank_rad |
tool shank radius |
mill only |
|
spindle |
spindle type |
lathe only |
|
spinspeed |
spindle speed |
|
|
state |
state |
|
|
stime |
current time |
|
|
taper |
tool taper angle |
mill only |
|
tcrad |
tool corner radius |
mill only |
|
tdiam |
tool total diameter |
mill only |
|
tflutes |
number of flutes in tool |
mill only |
|
tipcen |
tip or center |
|
|
tmatl |
tool material |
|
|
tnum |
tool number |
|
|
tooltyp |
tool type |
|
|
tpang |
tool tip angle |
|
|
tprad |
tool tip radius |
|
|
travellen |
distance travelled |
|
|
traveltim |
time operation takes |
|
|
ttlen |
total distance travelled |
|
|
tttime |
total time |
|
|
turt |
turret number |
lathe only |
|
txmax |
max x for whole file |
|
|
txmin |
min x for whole file |
|
|
tymax |
max y for whole file |
|
|
tymin |
min y for whole file |
|
|
tzmax |
max z for whole file |
|
|
tzmin |
min z for whole file |
|
|
units |
units (inch/metric) |
|
|
viewname |
view name |
|
|
viewnum |
view number |
|
|
viewtype |
operation view type |
|
|
wnum |
work offset number |
|
|
xmax |
max x |
|
|
xmin |
min x |
|
|
ymax |
max y |
|
|
ymin |
min y |
|
|
zip |
zipcode |
|
|
zmax |
max z |
|
|
zmin |
min z |
|