CAD CAM EDM DRO - Yahoo Group Archive

Re: G02 - G03

on 2000-08-21 22:43:27 UTC
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

Art Fenerty 2000-08-21 10:23:46 UTC G02 - G03 Kevin P. Martin 2000-08-21 10:51:01 UTC G02 - G03 - an aside Fred Smith 2000-08-21 12:18:57 UTC Re: G02 - G03 ballendo@y... 2000-08-21 15:58:03 UTC re:G02 - G03 - an aside Ray 2000-08-21 17:32:50 UTC Re: G02 - G03 ballendo@y... 2000-08-21 17:59:04 UTC Re: G02 - G03 Alan Marconett KM6VV 2000-08-21 22:43:27 UTC Re: G02 - G03