Hello Guest it is March 29, 2024, 03:06:28 AM

Author Topic: G49 on Mach3 Mill  (Read 11734 times)

0 Members and 1 Guest are viewing this topic.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
G49 on Mach3 Mill
« on: January 28, 2018, 11:11:42 AM »
Just a quickie - if i have a file with G49 at the start does Mach then ignore all G43 Hxx calls?

I am now passing all tool length compensation to the knee on my mill, any G43 Hxx will cause a crash.

I could edit the post but I thought it safer to maybe add G49 to my Mach INIT line in general config
Re: G49 on Mach3 Mill
« Reply #1 on: January 28, 2018, 05:32:48 PM »
I think the G49 just cancels the offset until the next G43 is used.


Mike
We never have the time or money to do it right the first time, but we somehow manage to do it twice and then spend the money to get it right.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: G49 on Mach3 Mill
« Reply #2 on: January 29, 2018, 02:21:33 AM »
Ah, that won't work then, looking for a global G43 killer :)

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: G49 on Mach3 Mill
« Reply #3 on: February 02, 2018, 04:54:53 PM »
I can't give you a global G43 killer, but there is another way. There usually is.
You can set tool n offsets all to 0 using G10 L1 Pn X0 Z0 A0.
Create a little do loop to cycle n from 0 to 255 to clear all tools. (I think Tool 0 is always zero anyhow.)

Cheers
Roger

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: G49 on Mach3 Mill
« Reply #4 on: February 02, 2018, 05:05:38 PM »
Hmm that G10 looks powerful ;)

Maybe not what i want though - I do need the tool offset as i pass it to the knee axis, what i dont want is any G43 Hnn input coming from the Gcode.
Re: G49 on Mach3 Mill
« Reply #5 on: February 02, 2018, 05:50:00 PM »
The best way is to just modify your post processor. Possible someone out there knows how to prevent the G43 from becoming active even if it creeps into your code.

Mike
We never have the time or money to do it right the first time, but we somehow manage to do it twice and then spend the money to get it right.

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: G49 on Mach3 Mill
« Reply #6 on: February 02, 2018, 06:00:05 PM »
Um. In that case I don't think I understand exactly what it is you want.
Forgive me, but I am not sure you have adequately defined what YOU want either. The tool offsets will control the Z axis which has the spindle mounted on it, but if you also have a 'knee axis', then in practice that is separate from the Z or spindle axis.

If you want to make complex decisions about whether the required vertical movement can be handled by the Z/spindle axis, or whether you will ALSO need to move the knee up/down to get within range - that is going to require a rather complex macro. This macro may end up setting a tool offset to handle the movement of the knee.

Or am I way off target again?

Cheers
Roger

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: G49 on Mach3 Mill
« Reply #7 on: February 03, 2018, 02:58:43 AM »
maybe a way to put a macro "behind" the LOAD FILE button,
witch elemenates the G43 ?
Thomas
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: G49 on Mach3 Mill
« Reply #8 on: February 03, 2018, 02:59:50 AM »
Its a good one ;)

When i or the code calls M6 Txx my setup reads the tool length parameter direct from the TT and sends it to the knee axis C, the G43 Hxx is totally unwanted and would be naughty if it was used as it would send TLC to the Z axis too - a double whammy.

I modded my F360 post to output H0 as that is the same as not being there so i read. However i also use Sheetcam and Vectric Aspire, but these are also used on other setups so i dont really want to go pulling the posts apart or having to switch posts etc.

Making Mach ignore a G43 seemed the safest way but maybe cannot be done.


Another builder added a custom M843 Hxx call that bypassed the G43 Hxx call but this still needs custom posts etc and you could not use the MDI to call a tool whereas I can as its all handled inside M6Start and M6End

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: G49 on Mach3 Mill
« Reply #9 on: February 03, 2018, 03:00:43 AM »
maybe a way to put a macro "behind" the LOAD FILE button,
witch elemenates the G43 ?
Thomas

Yes, that would be a good way to totally eradicate the risk. But at present I'm not sure how that would scan and alter etc