Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: TTalma on March 11, 2022, 10:27:22 AM

Title: Why does Mach 4 store machine position during probe strike in G54?
Post by: TTalma on March 11, 2022, 10:27:22 AM
Like the title states why does Mach 4 store machine position during probe strike in G54?

This messes up my work offsets when probing tool length during a tool change.

Is it possible to stop this, or change it to a different location?
Title: Re: Why does Mach 4 store machine position during probe strike in G54?
Post by: SwiftyJ on March 11, 2022, 11:45:27 AM
It should store both
#5061-#5066 is probe position X-C axis in part coordinates
#5071-#5076 is probe position X-C axis in machine coordinates

Alternatively you can just use mc.SV_PROBE_POS_Z (#5063) or mc.SV_PROBE_MACH_POS_Z (#5073) with mcCntlGetPoundVar
Title: Re: Why does Mach 4 store machine position during probe strike in G54?
Post by: TTalma on March 11, 2022, 05:51:13 PM
It seems to do this by default.

Is it possible to prevent this from happening?
Title: Re: Why does Mach 4 store machine position during probe strike in G54?
Post by: smurph on March 20, 2022, 02:22:11 AM
It does both by default.  Why would you want to prevent it?  Just use the machine coordinates.

Steve
Title: Re: Why does Mach 4 store machine position during probe strike in G54?
Post by: TTalma on March 20, 2022, 11:08:40 AM
I want oprevent it because it messes up the work offsets.

Once I have my material all set up and the 0,0,0 position of the stock is set, The tool change messes up the Z offset, now my 0,0,0 position is no longer where my stock is. That breaks tools or ruins workpieces which means lost $$$$