Re: How does G02 & G03 work?
Posted by
Ray Henry
on 2000-02-09 09:17:12 UTC
Jon, Darrell, and other nc writers
I confess to being a bit confused by the lines of nc code offered in the
posts below and have mixed my comments in.
My understanding is that i,j,k, and r are incremental when they are used
with g02, g03 and are figured from the current tool position at the start
of the block in which they are included. Fagor (the only book I've got
handy) uses g06 if you want to enter absolute values for i,j,k, or r.
I've dropped a graphic from my backplotter of both of the desired tool
paths you speak of in
http://www.linuxcnc.org/Dropbox/g02ij.gif
(I used Will Shackelford's revised emccanon.cc with emc to plot this)
the control to set the arc center both back on x and negitive on y from the
current location.
What you describe is wanting to slide the arc center negitive in y by the
distance where you want the current arc move to end (y-.5). The j is a
correct offset from the current y0 position but I should be 0 or left off.
i,j,k,or r value given on this line. To achieve your linear move using
emc, the block would have to be written -- g01 y-2.0
assumes you want the arc center ahead and positive rather than just ahead.
Emc discovers that it can not arc from the existing location to the desired
location using that arc center. An nc block that will create such a radius is
g02 x0 y0.5 i.5 j0
(but not if you have tool radius compensation on.)
I confess to being a bit confused by the lines of nc code offered in the
posts below and have mixed my comments in.
My understanding is that i,j,k, and r are incremental when they are used
with g02, g03 and are figured from the current tool position at the start
of the block in which they are included. Fagor (the only book I've got
handy) uses g06 if you want to enter absolute values for i,j,k, or r.
I've dropped a graphic from my backplotter of both of the desired tool
paths you speak of in
http://www.linuxcnc.org/Dropbox/g02ij.gif
(I used Will Shackelford's revised emccanon.cc with emc to plot this)
>Message: 1 (digest 152)For me, the g02 block above does not run at all. You seem to be telling
> Date: Tue, 8 Feb 2000 00:31:29 -0800
> From: "Darrell" <dgehlsen@...>
>Subject: Re: Re: How does G02 & G03 work?
>
>Jon,
>g00 g90 x-2.0 y0.0
>g01 x-.5
>g02 x0.0 y-.5 I-.5 J-.5
the control to set the arc center both back on x and negitive on y from the
current location.
What you describe is wanting to slide the arc center negitive in y by the
distance where you want the current arc move to end (y-.5). The j is a
correct offset from the current y0 position but I should be 0 or left off.
>y-2.0Here, since g02 is modal in emc, an error is generated because there is no
i,j,k,or r value given on this line. To achieve your linear move using
emc, the block would have to be written -- g01 y-2.0
>On a FANUC or AHHA control makes two lines with a 90 deg tangent arc.Again by putting both i,j in as positive values an incremental control
>Substitute
>g02 x0.0 y-.5 I.5 J.5
assumes you want the arc center ahead and positive rather than just ahead.
Emc discovers that it can not arc from the existing location to the desired
location using that arc center. An nc block that will create such a radius is
g02 x0 y0.5 i.5 j0
(but not if you have tool radius compensation on.)
>and the arc starts at the end of the x move at a 90 degree angle going up
>and around clockwise and ends at the beginning of the y move which is again
>at a 90 degree angle.
>Draw it out and you will see what I am talking about. Both g02 lines are
>valid clockwise moves on either FANUC or AHHA and I thought FANUC was as
>close to a standard as I could find.
>Bridgeport and Allen Bradley both use the unsigned version but unfortunately
>both are obsolete.
>What code would you use if you wanted the second shape?
>Darrell
----- Original Message -----
From: Jon Elson <jmelson@...>
To: <CAD_CAM_EDM_DRO@onelist.com>
Sent: Monday, February 07, 2000 10:33 PM
Subject: Re: [CAD_CAM_EDM_DRO] Re: How does G02 & G03 work?
> From: Jon Elson <jmelson@...>
>
>
>
> Darrell wrote:
>
> > Not wanting to cause any confusion but betweentwo points you could
> > have two
> > arc centers for any given I, J combination. One example would be two
> > lines
> > at 90 degrees to each other forming a square corner. Now filett that
> > corner
> > with a .5" radius. Assuming that the corner was at X0Y0 and the X and
> > Y
> > lines extended in the negative direction and the arc was clockwise
> > from X to
> > Y you would have an I.5 and J.5. EMC would cut what you want but a
> > FANUC
> > would use the I+.5 J+.5 to cut an arc of 270 degrees with both ends of
the
> > arc 90
<snipped>
I suppose the moral of the story here is that there is no one true
R(ecommended) S(tandard) 274 and you'll just have to make sure of what your
own control or cam program assumes about the nature of i,j,k, and r before
you try to run someone elses nc code.
BTW I've been thinking about writing some processors for emc that will fix
nc differences and can be run from the tkemc program editor. Some are
already working on this for mastercam. I'd need clear descriptions of what
code is generated by commonly used cam/?? systems. Need bobcad and vector
using the closest post. ahha and flashcut. Any others. If you have such
writeups you could attach to me, rehenry@..., I'd really appreciate it.
Ray
Discussion Thread
Clint Bach
2000-02-02 11:44:54 UTC
How does G02 & G03 work?
Darrell
2000-02-02 13:11:32 UTC
Re: How does G02 & G03 work?
Jon Elson
2000-02-02 14:03:49 UTC
Re: How does G02 & G03 work?
Darrell
2000-02-02 14:04:43 UTC
Re: How does G02 & G03 work?
Jon Elson
2000-02-02 15:39:04 UTC
Re: How does G02 & G03 work?
Jon Elson
2000-02-07 22:33:55 UTC
Re: Re: How does G02 & G03 work?
Darrell
2000-02-08 00:31:29 UTC
Re: Re: How does G02 & G03 work?
Fred Smith
2000-02-08 06:16:57 UTC
Re: Re: How does G02 & G03 work?
Jon Elson
2000-02-08 12:49:47 UTC
Re: Re: How does G02 & G03 work?
Ray Henry
2000-02-09 09:17:12 UTC
Re: How does G02 & G03 work?
Darrell
2000-02-09 12:59:31 UTC
Re: Re: How does G02 & G03 work?
Fred Smith
2000-02-09 13:41:58 UTC
Re: Re: How does G02 & G03 work?
Jon Elson
2000-02-09 15:53:59 UTC
Re: Re: How does G02 & G03 work?
Jon Elson
2000-02-09 22:30:14 UTC
Re: Re: How does G02 & G03 work?