CAD CAM EDM DRO - Yahoo Group Archive

[Fwd: Re: G02 - G03]

on 2000-08-24 23:20:43 UTC
Art and the list,

I don't think this made it when I originally sent it.

Alan

P.S. Now generating code with VectorCAD/CAM!

-------- Original Message --------
Subject: Re: G02 - G03
Date: Mon, 21 Aug 2000 22:42:45 -0700
From: Alan Marconett KM6VV <KM6VV@...>
To: CAD_CAM_EDM_DRO@egroups.com
References: <200008211719.NAA54404@...>
<001901c00bb5$d94a86a0$1607de18@...>

Hi Art,

On hearing your questions on G02, G03, I looked up my code, and I
implemented them with X,Y,I,J. You'll probably have to do the arcs in
four (4) quadrants, and I seem to recall that some controllers don't
like full circles either. My choice came from the first sample code
that I could generate from BobCad, and that FlashCut could understand!
I also found tutorials that supported (explained) this mode.

N110 G03 X 3.7500 Y 2.5000 I-0.2500 J 0.0000

for(angle = StartAngle; angle >= EndAngle; angle -= step)
{
d_cux = 0.0;
d_cuy = -radius; /* 0 deg vector */
RotatePoint(&d_cux, &d_cuy, angle);
_lineto((int)(d_cux + CenterX), (int)(d_cuy + CenterY));
}

I also calculated CenterX, CenterY, radius, StartAngle, and EndAngle as
part of the routine. I rotate through start-end angle, and calculate a
series of points using the radius. These I draw line segments between.
OK, I'm not driving stepper motors yet, I'm just drawing the segments on
the screen as I would if I was driving motors. Intention is to do
coordinated moves with a set of Cybernetic Microsystems IC's.

Alan


Art Fenerty wrote:
>
> Hi:
>
> I am trying to update MasterControlCNC to do G02
> and G03 circular interpolation and although I now have working code ( thanks
> to Doug Fortune) I don't quite understand which is the most common form of
> interp.
> My post processor on the software I use the most does
> not generate circ. only linear. Am I better off using R registers or IJK
> interp? or both? Is IJK now pretty much obsolete?
>
> Art
>
>
> Welcome to CAD_CAM_EDM_DRO@...,an unmoderated list for the discussion of shop built systems, for CAD, CAM, EDM, and DRO.
>
> Addresses:
> Post message: CAD_CAM_EDM_DRO@egroups.com
> Subscribe: CAD_CAM_EDM_DRO-subscribe@egroups.com
> Unsubscribe: CAD_CAM_EDM_DRO-unsubscribe@egroups.com
> List owner: CAD_CAM_EDM_DRO-owner@egroups.com, wanliker@...
> Moderator: jmelson@... [Moderator]
> URL to this page: http://www.egroups.com/group/CAD_CAM_EDM_DRO
> FAQ: http://www.ktmarketing.com/faq.html
> bill,
> List Manager

Discussion Thread

Alan Marconett KM6VV 2000-08-24 23:20:43 UTC [Fwd: Re: G02 - G03]