Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: cv580 on February 16, 2016, 09:10:18 AM

Title: Safe Z Macro
Post by: cv580 on February 16, 2016, 09:10:18 AM
Can someone point me in the right direction to write a proper Mach3 macro that can be called up in the G code that will move the Z axis to Safe Z pos.
Thanks
Title: Re: Safe Z Macro
Post by: BR549 on February 16, 2016, 10:16:30 AM
DoOemButton(104)
Message("Moved to SafeZ")
End
Title: Re: Safe Z Macro
Post by: cv580 on February 16, 2016, 11:28:10 PM
BR549

I did not have any luck in making this work. Do you have any suggestions?
Thanks
Title: Re: Safe Z Macro
Post by: cv580 on February 18, 2016, 08:50:57 PM
Figured it out, had to add a zero to the (104) made it (1004) and it now works fine!
Title: Re: Safe Z Macro
Post by: BR549 on February 18, 2016, 09:07:38 PM
(;-) DoOemButton(104) works fine here I just tested it again.

(;-) TP
Title: Re: Safe Z Macro
Post by: stirling on February 19, 2016, 08:26:47 AM
something very strange going on here because doOEMButton 1004 is set single block mode