Hello Guest it is April 05, 2020, 09:09:41 AM

Author Topic: Safe Z Macro  (Read 1652 times)

0 Members and 1 Guest are viewing this topic.

Offline cv580

*
  •  50 50
    • View Profile
Safe Z Macro
« 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

Offline BR549

*
  •  6,925 6,925
    • View Profile
Re: Safe Z Macro
« Reply #1 on: February 16, 2016, 10:16:30 AM »
DoOemButton(104)
Message("Moved to SafeZ")
End

Offline cv580

*
  •  50 50
    • View Profile
Re: Safe Z Macro
« Reply #2 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

Offline cv580

*
  •  50 50
    • View Profile
Re: Safe Z Macro
« Reply #3 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!

Offline BR549

*
  •  6,925 6,925
    • View Profile
Re: Safe Z Macro
« Reply #4 on: February 18, 2016, 09:07:38 PM »
(;-) DoOemButton(104) works fine here I just tested it again.

(;-) TP

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Safe Z Macro
« Reply #5 on: February 19, 2016, 08:26:47 AM »
something very strange going on here because doOEMButton 1004 is set single block mode