Mach3 Screenset Editor -

Let’s add a "Park Z" button that moves Z to a safe height.

  • Right-click the button > Edit Button Script
  • Paste this script:
    Code "G0 Z2.0"   ' move Z to 2 inches
    While IsMoving()
    Wend
    Code "G0 X0 Y0"  ' optional: home X/Y
    
  • Save the script (File > Save) and close the script editor.
  • Save the Screen (Editor toolbar > Save Screen).
  • Exit Editor (Ctrl + Alt + E) and test your button.
  • Want a button that moves Z to the top and turns off the spindle? Create a macro.

    Let’s add a “Park Z” button that raises Z to machine top.

    Let’s add a "Park Z" button that moves Z to a safe height.

  • Right-click the button > Edit Button Script
  • Paste this script:
    Code "G0 Z2.0"   ' move Z to 2 inches
    While IsMoving()
    Wend
    Code "G0 X0 Y0"  ' optional: home X/Y
    
  • Save the script (File > Save) and close the script editor.
  • Save the Screen (Editor toolbar > Save Screen).
  • Exit Editor (Ctrl + Alt + E) and test your button.
  • Want a button that moves Z to the top and turns off the spindle? Create a macro.

    Let’s add a “Park Z” button that raises Z to machine top.