Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: cncstuff on October 14, 2017, 08:35:51 AM

Title: Is "#100 = Z " a way to store the current Z axis setting ?
Post by: cncstuff on October 14, 2017, 08:35:51 AM
Subject says it all....
Title: Re: Is "#100 = Z " a way to store the current Z axis setting ?
Post by: joeaverage on October 14, 2017, 01:37:37 PM
Hi,
yes that will work. Not at all sure that you should use pound variable #100 though. Pound variables are used extensively throughout Mach
and if you go writing different numbers into one which is used by Mach for some other purpose you'll crash.

If memory serves pound variables #500 thru to #600 are ok to use as you want.
Title: Re: Is "#100 = Z " a way to store the current Z axis setting ?
Post by: cncstuff on October 14, 2017, 02:11:20 PM
Thank you for the answer and the extra information.
Title: Re: Is "#100 = Z " a way to store the current Z axis setting ?
Post by: Mjlitvak on December 21, 2018, 01:10:02 AM
#100=##5023 will store the current absolute Z position. However #100-199 are used as a clipboard if you want the control to store and save those values I would suggest using a common variable #500 and up