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

Title: Centre Format Arcs Using I & J Help
Post 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
Title: Re: Centre Format Arcs Using I & J Help
Post by: Chaoticone on October 15, 2007, 08:57:57 AM
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
Title: Re: Centre Format Arcs Using I & J Help
Post by: Chaoticone on October 15, 2007, 08:58:41 AM
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
Title: Re: Centre Format Arcs Using I & J Help
Post by: M250cnc on October 15, 2007, 10:16:28 AM
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)

Title: Re: Centre Format Arcs Using I & J Help
Post by: Graham Waterworth on October 15, 2007, 11:07:45 AM
Are you wanting to put a rad on the edge of the bore or on the grooves?

Graham.
Title: Re: Centre Format Arcs Using I & J Help
Post by: M250cnc on October 15, 2007, 11:21:35 AM
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
Title: Re: Centre Format Arcs Using I & J Help
Post by: Chaoticone on October 15, 2007, 01:20:46 PM
OK, so you want a square with radius corners?

Brett