Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: Tomas on February 03, 2015, 03:26:15 PM

Title: Calculating G68 rotation point?
Post by: Tomas on February 03, 2015, 03:26:15 PM
Hi,

 I'm trying to figure out Mach3 is calculating it's origin then using G68.

Example say I'm doing with G54 set to X0 Y0
Quote
G68 X1 Y1 R15
Mach3 will say my new origin is X-1.2247 Y-0.7071, but if you calculate a roration about X1,Y1 by 15 Degs the
origin comes as X0.2929 Y-0.2247.  Can anyone shed a light on this for me?

Thanks,
Tomas
Title: Re: Calculating G68 rotation point?
Post by: cncalex on February 03, 2015, 09:06:52 PM
Hi Tomas,
see picture.

Alex
Title: Re: Calculating G68 rotation point?
Post by: Tomas on February 04, 2015, 11:58:55 AM
Hi Alex,

  Thanks for drawing! I see what is going on now. Do you know why when the DRO's are
red they are showing the distance from the rotation point and not the origin location?

-Tomas
Title: Re: Calculating G68 rotation point?
Post by: BR549 on February 04, 2015, 12:59:25 PM
The G68 will rotate from the givin point in the call . IF there is no Givin point then it rotates from the point from which it was called.


Just a thought, (;-) TP