Hello Guest it is March 28, 2024, 12:26:01 PM

Author Topic: G68 Rotation point?  (Read 15535 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: G68 Rotation point?
« Reply #10 on: April 09, 2011, 01:05:32 PM »
Dave IF youare buiilding more probing routines I still have a bunch we developed years ago that might be usefull.   The probing arrays were the cats meow and simple to use.

(;-) TP
Re: G68 Rotation point?
« Reply #11 on: April 09, 2011, 01:09:10 PM »
Hi Terry,

Here is some more info to add to your notes:
I've verified these as of mach 3.43.22 - there are more problems I've discovered than I've listed here. If you want the full G68 related list I can send it to you.

The model is that G31 is done in the current WC system. The WC is the entire universe from the G31 viewpoint, it just calls for movement in the WC and gets touch points reported in the same WC. At the level of the G31, it does not know if the WC is rotated or not wrt to the machine axes - the WC is just whatever it is - and the G31 should neither care or know how the WCs relate to the MCs.

G31 is allowed with G68 active (as it should be). The problems arise because mach does not implement handling of a rotated WC in a way that is mathematically consistent. Unfortunately, Mach's implementation only works correctly if a WC is not rotated (wrt to the machine axes). 

Problem 1: Mach does not apply the rotation transformation when reporting the probe touch point - so when G68 is active, the touch points are not reported wrt to the active WC. This is what drove me to look for the rotation point, as with it I could correct for mach's reporting.

...but the problems are not all G31 specific - if you want to get surprised try this:

G53 X0 Y0
G54 X0.07071 Y0.7071
G68 Y0 Y0 R45

you should get a WC of X=1, Y=0 after the rotation. If you look at the multimode DROs, that's what you'll see for values (when they are in WC display mode). Now go look at the WC DROs - they will be wrong.

Problem 2: The WC DRos don't comprehend G68


Now for kicks go press the "X Zero" button.... You just told mach to zero the WC X axis - that should place the X0 point at the current position in the WC (which is rotated wrt to the MC). You expect to see the X DRO (and only the X DRO) go to 0 and the offsets change - That's not what happens.

Problem 3: Functions that cause offsets to change ignore G68.

Basically I've concluded that any use of G68 should cause a blinking "Warning, there be dragons here...." message ;-)

Oh, well, not much I can do except write it all up, report it to Brian and hope that fixes make it into a release sometime. In the mean time, I'm going to make my stuff check for G68 and either refuse to do some things or reset the system to G69 as a side effect - those seem to be the only available choices for now.
 
Dave
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: G68 Rotation point?
« Reply #12 on: April 09, 2011, 01:42:20 PM »
(;-)

"Warning, there be dragons here...."

Love it Dave I will make a poster for the shop.

One of the problems for the plasma crowd is you cannot HOME the Z in a rotated state . A lot of users use the G28.1 Z to find the top of material and set the Z work height.  Needless to say they can't use a G68 to rotate a part to fit a space.  I understand the need to not be able to home X/Y but Z cannot effect the G68 (;-)

Maybe Brian will correct some of this .

(;-) TP
« Last Edit: April 09, 2011, 01:47:41 PM by BR549 »
Re: G68 Rotation point?
« Reply #13 on: June 26, 2015, 06:17:22 PM »
Please is there for OEMcode "auto tool zero"external button
Tankyou