Machsupport Forum
G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: M250cnc on October 15, 2007, 05:45:44 AM
-
Could somebody write some examples of these using the I & J parameters i just can't understand the manual :-[
Thanks
Phil_H
-
This is a 2 inch circle on a centerline toolpath. It is not offset to the inside or the out side. Lines N26-N29 are the4 arc sections. The center of the circle is at X2.00 Y2.00.
(IJtest)
N2 G15G80G17G40G20G90G94G49G99G64G99
N3 G54
(MATERIAL:)
( X MIN:0.000 Y MIN:0.000 Z MIN:-1.000)
( X MAX:4.000 Y MAX:4.000 Z MAX:-1.000)
( X SIZE:4.000 Y SIZE:4.000 Z SIZE:0.000)
( THICKNESS:1.000)
(FIRST TOOL INFORMATION)
( TOOL NUMBER:1)
( DESCRIPTION:0.063 inches dia. slot drill)
(FEED RATES IN INCHES PER MINUTE)
( CUTTING FEED RATE:30)
( PLUNGE FEED RATE :10)
( RAPID FEED RATE :9999)
( SPINDLE SPEED :S15000 r.p.m)
N20 M3 S15000
N21 G0Z0.2000
N22 G0X0.0000Y0.0000
N24 G0X1.0000Y2.0000Z0.2000
N25 G1Z-0.0500F10.0
N26 G2X2.0000Y3.0000I1.0000J-0.0000F30.0
N27 G2X3.0000Y2.0000I-0.0000J-1.0000
N28 G2X2.0000Y1.0000I-1.0000J0.0000
N29 G2X1.0000Y2.0000I0.0000J1.0000
N30 G0Z0.2000
N31 G0X0.0000Y0.0000
N32 M9
N33 M5
N34 G0Z0.2000
N35 M30
Is this what you wanted?
Brett
-
This is a 2 inch circle on a centerline toolpath. It is not offset to the inside or the out side. Lines N26-N29 are the4 arc sections. The center of the circle is at X2.00 Y2.00.
(IJtest)
N2 G15G80G17G40G20G90G94G49G99G64G99
N3 G54
(MATERIAL:)
( X MIN:0.000 Y MIN:0.000 Z MIN:-1.000)
( X MAX:4.000 Y MAX:4.000 Z MAX:-1.000)
( X SIZE:4.000 Y SIZE:4.000 Z SIZE:0.000)
( THICKNESS:1.000)
(FIRST TOOL INFORMATION)
( TOOL NUMBER:1)
( DESCRIPTION:0.063 inches dia. slot drill)
(FEED RATES IN INCHES PER MINUTE)
( CUTTING FEED RATE:30)
( PLUNGE FEED RATE :10)
( RAPID FEED RATE :9999)
( SPINDLE SPEED :S15000 r.p.m)
N20 M3 S15000
N21 G0Z0.2000
N22 G0X0.0000Y0.0000
N24 G0X1.0000Y2.0000Z0.2000
N25 G1Z-0.0500F10.0
N26 G2X2.0000Y3.0000I1.0000J-0.0000F30.0
N27 G2X3.0000Y2.0000I-0.0000J-1.0000
N28 G2X2.0000Y1.0000I-1.0000J0.0000
N29 G2X1.0000Y2.0000I0.0000J1.0000
N30 G0Z0.2000
N31 G0X0.0000Y0.0000
N32 M9
N33 M5
N34 G0Z0.2000
N35 M30
Is this what you wanted?
Brett
-
Hi Brett and thanks for the help.
See the picture below it is easy for the straight lines but getting the radii to blend in.
It would be great if i gave you the actual dimensions no doubt you could give me the code.
But i want to know how to put the radii on the corners.
I have looked and found examples and they are mainly full circles but i want the theory so i can do it myself
Thanks
Phil_H
P.S. Canon 20D EFS 17-85 using Sigma ring flash
(http://www.smashingfotos.co.uk/IMG_0932.JPG)
-
Are you wanting to put a rad on the edge of the bore or on the grooves?
Graham.
-
Hi Graham thanks for you help. The picture is of my 4th axis stepper motor i want to cut the mounting plate to match the shape of the motor.
I am of the opinion that it is quicker to program something like this directly, if you know how.
The motor flanges are currently an ugly square shape. ;D I think it is the chicken and the egg situation.
Phil_H
-
OK, so you want a square with radius corners?
Brett