Hi can anybody help me understand g code
i need gcde for a 5" square
Frank
Hi can anybody help me understand g code
i need gcde for a 5" square
Frank
G01 (set linear moves - assume starting point is 0,0 for your square)
F10.0 (feed rate is 10 ipm)
X5.000 (first edge 0,0 to 5,0)
Y5.000 (second edge 5,0 to 5,5)
X0.000 (third edge 5,5 to 0,5)
Y0.000 ( fourth edge and back to start 0,5 to 0,0)
M30 (end of program)
ok is this correct
G01
F10
X5.00
Y5.000
X0.000
Y0.000
G90 (absolute)
G01
F10
X5.0
Y5.0
X0.0
Y0.0
M30
that only made an L
Frank
sorry i didn't zero the dro's that did it
G90 (absolute)
G00
X0.0 Y0.0 (zero out X-axis & Y-axis)
G01
F10
X5.0
Y5.0
X0.0
Y0.0
M30
ok what about 5" circule what would be the gcode for that
i think its time to buy Mach and use the wizards
With the g-code already posted, you will still need to compensate for tool offset.
.
thanks switcher like th ecurley pic
personnally, i like to program from center when possible. it just makes things easier imho.
so say x0 y0 is the center of the part
no cutter comp, 1/2 endmill
g0 g90 x-2.75y-3.
g01z__f___
g01y2.75
g01x2.75
g01y-2.75
g01x-3.
g0z1.
i think he wanted a 5" square not a 5" pocket you all are going CCW
not me.i think he wanted a 5" square not a 5" pocket you all are going CCW
i think programming from center is easiest.
Frankg521,
For your 5" circle you would use G02 if you wanted the cutter to travel in a clockwise path, and G03 for counter-clockwise.
What HIRAH said about being easier to start from the center is even more true for doing circles.
I typically use two G02's or two G03's to do a full circle, each one traveling 180 degrees. You will have to input the center of the circle via I and J values for each G02/G03.
-John
for a circle, i would go this way with no cutter comp, 1/2" endmill,5" diameter.
x0 y0 is the center of the circle
g0x-2.75y-3.25(enough to be off the part)
g01z-____f_____
g01y0
g02I2.75
g01y.3( to get past center of the starting point of the circle)
g0z1.
or split it up into 2 like John3said
g0x-2.75y-3.25(enough to be off the part)
g01z-____f_____
g01y0
g02x2.75y0r2.75
g02x-2.75y0r2.75
g01y.3( to get past center of the starting point of the circle)
g0z1.
G02 is for O.D. G03 is for I.D. programming from center is great in G91 for Sub
Routing
[QUOTE][/G02 is for O.D. G03 is for I.D.QUOTE]
only if you are climb milling.
you can use either g02 or g03, but 1 way will be conventional mill.
Before you can had code for a 5" sq you first need to know your starting position, how the material is going to be oriented on the machine and the bit size. To just randomly write code is fun......but it ain't gonna work!
Material is 6X6"
Lower left hand corner is x0y0. Set the bit .250" over the material thickness.
using a .5" bit
absolute G90
G00X.250Y.250
G01Z-.........WHATEVER YOU NEED
G01Y5.75
G01X5.75
G01Y.250
G01X.250
G00Z0.00
G00X0.00Y0.00
This will leave nothing outside the cut of the bit for clamping but it is for example anyway. This is for a clockwise cut which will be a climb cut on the part.
Mike
No greater love can a man have than this, that he give his life for a friend.
wee