Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: leversole on March 12, 2016, 11:45:10 AM

Title: Getting machine coord for Z
Post by: leversole on March 12, 2016, 11:45:10 AM
I have a "park" function which gets the router out of the way quickly to check out or remove a part...the macro is quite simple, g0 z-1 followed by g0x12y12...

works great IF I have touched off and the new zero is at the top of the workpeice! You can guess what happens if I park with the Z at machine zero!!

So what I am asking is how can I make a Z move in machine coordinates? Eg...I would change my script to move to machine zero before the XY move, this should work in all cases (as long as the Z has been homed)

Thanks
Title: Re: Getting machine coord for Z
Post by: ger21 on March 12, 2016, 02:08:47 PM
G53 G0 Z0
Title: Re: Getting machine coord for Z
Post by: leversole on March 12, 2016, 08:34:37 PM
thanks! is the g53 persistant or for the current line only?
Title: Re: Getting machine coord for Z
Post by: ger21 on March 12, 2016, 09:37:07 PM
Current line