Title: N10
1(No Transcript)
2CUSTOM VQC TEMPLATES
N10 (CATEGORY) (NAME SLOTS) N11 (TEMPLATE)
(NAME CIRCULAR SLOTS) (DIAGRAM) (DATUM
19,14) (CIRCLE 19,14 13) (CIRCLE 19,14 9)
(CCW 17,259,2010) (CW 21,2529,2010) (LINE
17,2617,24) (LINE 21,26 21,24) (CCW
7,16 8,910) (CCW 14,4 24,410) (CW 31,16
30,910) (ARROW 19,20 19,23) (ARROW 19,18
19,15) (LINE 5,31 5,24) (LINE 19,31
19,28) (ARROW 11,30 5,30) (ARROW 15,30
19,30) (END DIAGRAM) (PARAMETERS) (ToolNo)
(NO DECIMAL) (WrkOfset) (NO DECIMAL) (IR)
(LABEL Inner Radius) (POSITION 15,19) (OR)
(POSITION 8,30) (LABEL Outer
Radius) (Slots) (LABEL of Slots)
3SLIDE LEGEND
PRESS THREE TIMES TO GET TO THIS
PAGE (Continued on next slide) Note
ACTIONS
KEYS
INSTRUCTIONS
INFORMATION
OTHER INFORMATION
4This presentation will show you how to create a
completely new VQC Template. You should review
the VQC Templates presentation prior to this one
to get a basic understanding of customizing
templates. This presentation will use an aid
called the Template Builder. It is simply a
spreadsheet with some grids and code samples to
make it a little easier to see how templates are
created.
5Open the Template Builder and go to the
Basic worksheet.
6You will notice that there are some basic shapes
and sample code that you can alter when creating
a custom template.
7Lets say you want to create a template for
finishing the ID of a part like that shown.
8First delete the 3 lines indicated. They will
not be needed.
9Click on one of the Arcs and then select Format.
10Now Select Auto Shape
11From the menu, Select Size
Change the Height and Width to 200. You may
also have to adjust the height and width to get a
arc with a radius of 6 blocks
12XDist
Repeat this procedure with the second arc.
YDist
13XDist
Move the two arcs so they are centered above and
equidistant from the datum.
YDist
14XDist
Move the vertical line so that it connects the
left side of the two arcs.
YDist
You will need to shorten it a little to make it
fit.
15XDist
Copy and paste the vertical line. (You can use
Ctl C for copy and Ctl V for paste).
YDist
You may want to zoom in to see the objects better.
16XDist
Move the copied line so that it connects the
right side of the two arcs.
YDist
17XDist
Copy and paste this arrow line
Move it to the position shown. The size will
need to be shortened.
YDist
Dont worry if your drawing doesnt look perfect.
18XDist
Copy and paste the small horizontal line
YDist
Move it to the position shown.
19XDist
Type the word Radius in the cell indicated.
YDist
20XDist
Move a small horizontal line to the position
indicated.
Radius
YDist
21XDist
Move the other small horizontal line to the
position indicated.
Radius
YDist
22XDist
Move this arrow line to the position shown. The
size will need to be shortened.
Radius
YDist
23XDist
Now, similarly move the other arrow line.
Radius
YDist
Then move YDist to the cell between the two
arrows.
24XDist
This will probably be enough of a drawing for our
part. When we get to the G-code, however, we may
discover that we need to add something, so we
wont delete the unused lines just yet.
Radius
YDist
25Nxxxx( CATEGORY) (NAME ---------) Nxxxxx (TEMPLAT
E) (NAME ----------) (DIAGRAM) (LINE 0,0
40,0) (CENTER LINES) (LINE 0,0 0,37)
(DATUM 16,16) (LINE 8,31 30,31) (CW
30,31 34,25 4) (ARROW 36,13 36,3)
(END DIAGRAM) (PARAMETERS) (ToolNo) (NO
DECIMAL) (TNR) (WrkOfset) (NO DECIMAL)
(Radius) (POSITION 17,23) (SpdleRpm ) (NO
DECIMAL) (Zdepth) (YDist) (POSITION 26,17)
(Feedrate) (END PARAMETERS)
XDist
In this view, the colors of the segments in the
drawing have been matched to the code that
applies to each segment. Your next task will be
to determine the end points for each segment and
create the code.
Radius
YDist
26Nxxxxx (CATEGORY) (NAME ---------) Nxxxxx (TEMPLA
TE) (NAME ----------) (DIAGRAM) (LINE 0,0
40,0) (CENTER LINES) (LINE 0,0 0,37)
(DATUM 16,16) (LINE 8,31 30,31) (CW
30,31 34,25 4) (ARROW 36,13 36,3)
(END DIAGRAM) (PARAMETERS) (ToolNo) (NO
DECIMAL) (TNR) (WrkOfset) (NO DECIMAL)
(Radius) (POSITION 17,23) (SpdleRpm ) (NO
DECIMAL) (Zdepth) (YDist) (POSITION 26,17)
(Feedrate) (END PARAMETERS)
XDist
Lets take a look at the first eight lines of
code. These have more to do with format than the
picture we will create.
Radius
YDist
You can make line numbers and NAMES whatever you
want (within some length restrictions).
27Nxxxxx N2000 (CATEGORY)
(NAME----) (NAME Custom) Nxxxxx
N2100 (TEMPLATE) (NAME----)
(NAME ID w Radius) (DIAGRAM) (LINE
0,0 40,0) (CENTER LINES) (LINE0,0 0,37)
Change the underlined text to that shown in red,
to the right.
The text in blue is required and the lines in
orange are optional, but help separate templates.
28N2000 (CATEGORY) (NAME Custom) N2100 (TEMPLATE)
(NAME ID w Radius) (DIAGRAM) (LINE 0,0
40,0) (CENTER LINES) (LINE 0,0 0,37)
(DATUM 16,16) (LINE 8,31 30,31) (CW
30,31 34,25 4) (ARROW 36,13 36,3)
(END DIAGRAM) (PARAMETERS) (ToolNo) (NO
DECIMAL) (TNR) (WrkOfset) (NO DECIMAL)
(Radius) (POSITION 17,23) (SpdleRpm ) (NO
DECIMAL) (Zdepth) (YDist) (POSITION 26,17)
(Feedrate) (END PARAMETERS)
XDist
Next, look at the location of the datum. Using
the numbers along the bottom and right side of
the graph, you can see that its center is at
19,17.
Radius
YDist
Change the orange DATUM code to 19,17)
29N2000 (CATEGORY) (NAME Custom) N2100 (TEMPLATE)
(NAME ID w Radius) (DIAGRAM) (LINE 0,0
40,0) (CENTER LINES) (LINE 0,0 0,37)
(DATUM 19,17) (LINE 8,31 30,31) (CW
30,31 34,25 4) (ARROW 36,13 36,3)
(END DIAGRAM) (PARAMETERS) (ToolNo) (NO
DECIMAL) (TNR) (WrkOfset) (NO DECIMAL)
(Radius) (POSITION 17,23) (SpdleRpm ) (NO
DECIMAL) (Zdepth) (YDist) (POSITION 26,17)
(Feedrate) (END PARAMETERS)
XDist
Similarly, you will need to find the end points
for each segment of the template drawing and
create the code.
Radius
YDist
Look at this line. You should see that its end
points are 13,10 and 13,24.
30N2000 (CATEGORY) (NAME Custom) N2100 (TEMPLATE)
(NAME ID w Radius) (DIAGRAM) (LINE 0,0
40,0) (CENTER LINES) (LINE 0,0 0,37)
(DATUM 19,17) (LINE 8,31 30,31) (CW
30,31 34,25 4) (ARROW 36,13 36,3)
(END DIAGRAM) (PARAMETERS) (ToolNo) (NO
DECIMAL) (TNR) (WrkOfset) (NO DECIMAL)
(Radius) (POSITION 17,23) (SpdleRpm ) (NO
DECIMAL) (Zdepth) (YDist) (POSITION 26,17)
(Feedrate) (END PARAMETERS)
Using these points (13,10 13,24) change the
blue code for LINE
The code should read (LINE13,1013,24). The
parentheses and brackets are important. Each
line of code must be enclosed in parentheses.
Coordinates are placed within brackets.
YDist
31Now create the code for the second line.
You should have found that its end points are
25,10 and 25,24. Notice that the Y coordinates
are the same as the previous line.
Copy the code for the first line but change the X
coordinates
32Now lets do the arcs. For an arc you need to
define a radius as well as end points. What is
the radius and end points for the top arc?
End Points 13,24 and 25,24 You should note that
theses are the same as the endpoints of the two
lines. Radius 6
33Change the green code for arc (CW) to match the
coordinates and radius.
You should have (CW13,24 25,24). This
direction (CW) has nothing to do with the actual
tool movement. It is simply the direction from
the first point to the second point.
34Looking at the other arc we see that its end
points are 13,10 and 25,10 (the beginning
points of the two lines). Therefore we need the
following line of code (CW25,1013,10). Or
(CCW13,1025,10).
Enter the code (CW25,1013,10) after the other
arc.
35Next lets work on the arrows. They are similar
to lines in that you need a start and end point,
however it is more important which point you list
first. The arrowhead will be at the second
point. The coordinates for each of the three
arrows are shown at the right.
19,24 19,30
27,17 27,24
27,16 27,10
36Create three lines of code similar to the red
code for the three arrows.
(ARROW19,2419,30) (ARROW27,1727,24) (ARROW
27,1627,10)
37Now add the code for the small lines at the end
of the arrows. Their end points are 18,24 /
20,24 26,24 / 28,24 and 26,10 / 28,10.
The code is shown on the next slide.
38This completes the code for the DIAGRAM
section. The text (Radius, and Ydist) in this
diagram will be placed in the PARAMETER section,
which we will cover next.
G54
If you wanted to enter some other text in the
diagram, you would use a PRINT statement and give
the coordinates for where you want the text to
begin. For example (PRINT18,15 G54)
39(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (XPos) (YPos)
(SpdleRpm ) (NO DECIMAL) (DpthCut) (YDist)
(POSITION 35,16) (Feedrate) (END
PARAMETERS)
Here is the sample code for the PARAMETER
section. The lines indicated are pretty standard
and will not need to be modified for this
example. You could however, have some standard
numbers for Tool Number, Work Offset, Rpm, or
Feedrate instead of requiring the operator to
input these.
40(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (XPos) (YPos)
(SpdleRpm ) (NO DECIMAL) (DpthCut) (YDist)
(POSITION 35,16) (Feedrate) (END
PARAMETERS)
We wont need the operator to input an X or Y
position, so you can delete those lines.
41(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (SpdleRpm ) (NO
DECIMAL) (DpthCut) (YDist) (POSITION
35,16) (Feedrate) (END PARAMETERS)
To make the required input clearer, you should
change DpthCut to Zdepth.
You will also need to change the coordinates or
POSITION of YDist.
42(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (SpdleRpm ) (NO
DECIMAL) (Zdepth) (YDist) (POSITION 35,16)
(Feedrate) (END PARAMETERS)
On the graph, you can see that YDist starts at
location 26,17. This is what you will need to
put in the POSITION line.
Note There must be a space between POSITION
and the bracket.
43(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (SpdleRpm ) (NO
DECIMAL) (DpthCut) (YDist) (POSITION
26,17) (Feedrate) (END PARAMETERS)
Another piece of information we need the operator
to input is the radius of the arcs. So, you will
need to add a PARAMETER for Radius.
44(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (Radius)
(SpdleRpm ) (NO DECIMAL) (Zdepth)
(YDist) (POSITION 26,17) (Feedrate) (END
PARAMETERS)
Also, since Radius shows on the template, you
also will need to add a POSITION statement.
The coordinates for Radius are 17,23.
(Radius) (POSITION18,23)
(POSITION 17,23)
45G17 G40 G49 G64 G80 G98 T1 M06 G90 G54 G00 X0.
Y0. S1500 M03 G43 H1 Z1. M08 G01 Z0.1
F25. Z-0.5 G41 X1.5 X2. Y0 Y2. G03 X-2.0
R2. G01 Y-2. G03 X2. R2. G01 Y0 G40 X1.5 Y1.
G00 Z1. M09 G28 G91 Y0 Z0 M05 M30
At this point, you may want to create a program
to make the cut for the part (if you dont
already have one). Here is an example of how we
might write the code for this part.
46G17 G40 G49 G64 G80 G98 T1 M06 G90 G54 G00 X0.
Y0. S1500 M03 G43 H1 Z1. M08 Z0.1 G01 Z-0.5
F25. G41 X1.5 X2. Y0 Y2. G03 X-2.0 R2. G01 Y-2.
G03 X2. R2. G01 Y0 G40 X1.5 Y1. G00 Z1. M09 G28
G91 Y0 Z0 M05 M30
You now have to determine what information the
operator will provide and what you will need to
calculate. The underlined codes at the right
will not vary so we will not need variables for
these.
47G17 G40 G49 G64 G80 G98 T1 M06 G90 G54 G00 X0.
Y0. S1500 M03 G43 H1 Z1. M08 Z0.1 G01 Z-0.5
F25. G41 X1.5 X2. Y0 Y2. G03 X-2.0 R2. G01 Y-2.
G03 X2. R2. G01 Y0 G40 X1.5 Y1. G00 Z1. M09 G28
G91 Y0 Z0 M05 M30
(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (Radius) (POSITION18
,23) (SpdleRpm ) (NO DECIMAL) (Zdepth)
(YDist) (POSITION 26,17) (Feedrate) (END
PARAMETERS)
Compare the code to your list of PARAMETERS. We
first see that the operator will need to input a
tool number represented by the variable ToolNo.
Change the code T1 to TToolNo.
The statement NO DECIMAL indicates that the
operators input for ToolNo will be interpreted
as a whole integer.
48G17 G40 G49 G64 G80 G98 TToolNo M06 G90 G54
G00 X0. Y0. S1500 M03 G43 H1 Z1. M08 Z0.1 G01
Z-0.5 F25. G41 X1.5 X2. Y0 Y2. G03 X-2.0 R2. G01
Y-2. G03 X2. R2. G01 Y0 G40 X1.5 Y1. G00 Z1.
M09 G28 G91 Y0 Z0 M05 M30
(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (Radius) (POSITION18
,23) (SpdleRpm ) (NO DECIMAL) (Zdepth)
(YDist) (POSITION 26,17) (Feedrate) (END
PARAMETERS)
Next, we see the operator will input a work
offset. represented by the variable WrkOfset.
Change the code G54 to GWrkOfset.
49G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. S1500 M03 G43 H1 Z1. M08
Z0.1 G01 Z-0.5 F25. G41 X1.5 X2. Y0 Y2. G03
X-2.0 R2. G01 Y-2. G03 X2. R2. G01 Y0 G40 X1.5
Y1. G00 Z1. M09 G28 G91 Y0 Z0 M05 M30
(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (Radius) (POSITION18
,23) (SpdleRpm ) (NO DECIMAL) (Zdepth)
(YDist) (POSITION 26,17) (Feedrate) (END
PARAMETERS)
The next line of code shows a Spindle Speed. This
is also input by the operator as SpdleRpm.
Change the code S1500 to SSpdleRpm.
50G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43 H1
Z1. M08 Z0.1 G01 Z-0.5 F25. G41 X1.5 X2.
Y0 Y2. G03 X-2.0 R2. G01 Y-2. G03 X2. R2. G01
Y0 G40 X1.5 Y1. G00 Z1. M09 G28 G91 Y0 Z0 M05 M30
(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (Radius) (POSITION18
,23) (SpdleRpm ) (NO DECIMAL) (Zdepth)
(YDist) (POSITION 26,17) (Feedrate) (END
PARAMETERS)
Tool Length Compensation (H1) can be represented
by the same variable as the tool number. Change
the code H1 to HToolNo.
51G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43
HToolNo Z1. M08 Z0.1 G01 Z-0.5 F25. G41
X1.5 X2. Y0 Y2. G03 X-2.0 R2. G01 Y-2. G03 X2.
R2. G01 Y0. G40 X1.5 Y1. G00 Z1. M09 G28 G91 Y0
Z0 M05 M30
(PARAMETERS) (ToolNo) (NO DECIMAL)
(WrkOfset) (NO DECIMAL) (Radius) (POSITION18
,23) (SpdleRpm ) (NO DECIMAL) (Zdepth)
(YDist) (POSITION 26,17) (Feedrate) (END
PARAMETERS)
There is also a feed rate and a depth of cut that
the operator will input, represented by the
variables Feedrate and Zdepth.
Change the code Z-0.5 to ZZdepth and F25.
to FFeedrate.
52G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43
HToolNo Z1. M08 Z0.1 G01 ZZdepth
FFeedrate G41 X1.5 X2. Y0 Y2. G03 X-2.0 R2. G01
Y-2. G03 X2. R2. G01 Y0. G40 X1.5 Y1. G00 Z1.
M09 G28 G91 Y0 Z0 M05 M30
Positioning commands may be a little more
complicated. Lets say for the first move in X,
for Cutter Compensation, we want to feed to a
distance of the tool nose radius plus 0.1 from
the side of the part. This could be represented
by X(Radius-TNR-0.1). However, we have not yet
defined TNR.
TNR0.1
53G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43
HToolNo Z1. M08 Z0.1 G01 ZZdepth
FFeedrate G41 X1.5 X2. Y0. Y2. G03 X-2.0 R2. G01
Y-2. G03 X2. R2. G01 Y0. G40 X1.5 Y1. G00 Z1.
M09 G28 G91 Y0 Z0 M05. M30
(PARAMETERS) (ToolNo) (NO DECIMAL)
(TNR) (WrkOfset) (NO DECIMAL)
(Radius) (POSITION18,23) (SpdleRpm ) (NO
DECIMAL) (Zdepth) (YDist) (POSITION 26,17)
(Feedrate) (END PARAMETERS)
Add TNR to the PARAMETER section.
Change X1.5 in the code section to
X(Radius-TNR-0.1).
54G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43
HToolNo Z1. M08 Z0.1 G01 ZZdepth
FFeedrate G41 XRadius-TNR-0.1 X2.
Y0. Y2. G03 X-2.0 R2. G01 Y-2. G03 X2. R2. G01
Y0. G40 X1.5 Y1. G00 Z1. M09 G28 G91 Y0 Z0
M05. M30
In the next line, we want to move over to a
distance of the arc radius (Radius) from the
origin.
Change X2. in the code section to XRadius.
55G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43
HToolNo Z1. M08 Z0.1 G01 ZZdepth
FFeedrate G41 XRadius-TNR-0.1 XRadius
Y0. Y2. G03 X-2.0 R2. G01 Y-2. G03 X2. R2. G01
Y0. G40 X1.5 Y1. G00 Z1. M09 G28 G91 Y0 Z0
M05 M30
In the next line, we want to move up in Y to the
start point of the arc. We are having the
operator input the distance between the two arcs
as YDist so this position can be represented as
Y(YDist/2).
Change Y2. in the code section to
Y(YDist/2).
56G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43
HToolNo Z1. M08 Z0.1 G01 ZZdepth
FFeedrate G41 XRadius-TNR-0.1 XRadius
Y0. YYDist/2 G03 X-2.0 R2. G01 Y-2. G03 X2.
R2. G01 Y0. G40 X1.5 Y1. G00 Z1. M09 G28 G91 Y0
Z0 M05. M30
In the next line, we want to move over in X the
radius value from the origin. The radius (R
value) of the arc is Radius.
Change X-2.0. to X-Radius and the R2. to
RRadius.
57G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43
HToolNo Z1. M08 Z0.1 G01 ZZdepth
FFeedrate G41 XRadius-TNR-0.1 XRadius
Y0. YYDist/2 G03 X-Radius RRadius G01 Y-2.
G03 X2. R2. G01 Y0. G40 X1.5 Y1. G00 Z1.
M09 G28 G91 Y0 Z0 M05. M30
The next move is down the YDist.
Change Y-2. to Y(-YDist/2).
58G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43
HToolNo Z1. M08 Z0.1 G01 ZZdepth
FFeedrate G41 XRadius-TNR-0.1 XRadius
Y0. YYDist/2 G03 X-Radius RRadius G01
Y-YDist/2 G03 X2. R2. G01 Y0. G40 X1.5 Y1.
G00 Z1. M09 G28 G91 Y0 Z0 M05. M30
For the next G03 move change the X2. to
XRadius and the R2. to RRadius.
59G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43
HToolNo Z1. M08 Z0.1 G01 ZZdepth
FFeedrate G41 XRadius-TNR-0.1 XRadius
Y0. YYDist/2 G03 X-Radius RRadius G01
Y-YDist/2 G03 XRadius RRadius G01 Y0. G40
X1.5 Y1. G00 Z1. M09 G28 G91 Y0 Z0 M05. M30
On the next line the tool moves back to Y0. Then
we turn Cutter Comp off. To define this move,
Change the X1.5 to XRadius-TNR-0.1) and
the Y1. to Y(YDist/2).
60G17 G40 G49 G64 G80 G98 TToolNo M06 G90
GWrkOfset G00 X0. Y0. SSpdleRpm M03 G43
HToolNo Z1. M08 Z0.1 G01 ZZdepth
FFeedrate G41 XRadius-TNR-0.1 XRadius
Y0. YYDist/2 G03 X-Radius RRadius G01
Y-YDist/2 G03 XRadius RRadius G01 Y0. G40
XRadius-TNR-0.1 YYDist/2 G00 Z1. M09 G28
G91 Y0 Z0 M05. M30
This completes the CODE section.
Copy the code into the created Template Builder
section you have been working on. You will need
to make sure that every line is enclosed in
parentheses.
61 O09997 N2000 (CATEGORY) (NAME
CUSTOM) N2100 (TEMPLATE) (NAME ID w
Radius) (DIAGRAM) (LINE 0,0 40,0) (CENTER
LINES) (LINE 0,0 0,37) (DATUM 19,17)
(LINE 13,10 13,24) (LINE 25,10 25,24)
(CW 13,24 25,24 6) (CW 25,10 13,10
6) (ARROW 19,24 19,29) (ARROW 27,19
27,24) (ARROW 27,16 27,10) (LINE
18,2420,24) (LINE 26,24 28,24) (LINE
26,12 28,12) (END DIAGRAM) (PARAMETERS)
(ToolNo) (NO DECIMAL) (TNR) (WrkOfset) (NO
DECIMAL) (Radius) (POSITION 17,23) (SpdleRpm
) (NO DECIMAL) (Zdepth) (YDist) (POSITION
26,17) (Feedrate) (END PARAMETERS) (GCODE)
(G17 G40 G49 G64 G80 G98) (TToolNo M06) (G90
GWrkOfset G00 X0. Y0.) (SSpdleRpm M03) (G43
HToolNo Z1. M08) (Z0.1) (G01 ZZdepth
FFeedrate) (G41 XRadius-TNR-0.1) (XRadius
Y0.) (YYDist/2) (G03 X-Radius RRadius) (G01
Y-YDist/2) (G03 XRadius RRadius) (G01
Y0.) (G40 XRadius-TNR-0.1 YYDist/2) (G00
Z1. M09) (G28 G91 Y0 Z0 M05) (M30) (END GCODE)
(END TEMPLATE) (END CATEGORY)
Add percent signs at the top and bottom of the
file and add a program number.
62VQC for PC
Test your program using the Template Checker in
VQC for PC.
63Select the Program dropdown and then select
VQC Template Checker.
64Template Checker
You can enter the name of your file in the
TEMPLATE NAME block or press F3 for a
directory. Press .
65Scroll through the directory and find your file
name. Press to select the file.
66 The file will now appear in the block for
TEMPLATE NAME. Press to run the
Checker.
N2000.TXT
67If there is an error, it will show what the error
is and the line number where it is located. It
will not show all the errors at once. Make
corrections with a text editor (there is a menu
selection for one in the VQC for PC) and run the
checker again.
Before you run the checker again on an edited
file, make sure you have closed the file in the
text editor.
68If everything is O.K. you will get this message.
Close the window by pressing and return to
the basic program.
69Press to select your new template. Arrow
down until you find it and press .
N2000.txt
70You should see your template name on the
right. Press
71You should see the template diagram in the left
corner and the name at the bottom right. Press
72Look at the template diagram and make sure
everything looks right. If you need to make
adjustments (like the length of the arrow) make
the corrections in a text editor and run the
template again.
73Once you are satisfied with how the template
looks, enter some data and check the program
output. Then try it out on a Control in Graphics
Mode.
74Instead of using the Template Builder, you
could just draw a sketch on some graph paper, or
use a drawing or CAD program. Making the drawing
on a graph will help you to plot the points. You
could then use the sample program in this
presentation or the Manual to help you construct
the necessary code.
75Prepared by Haas AutomationTraining
DepartmentOxnard, CA 93030