Skip to Main Content

Home Script: Mach3 Ref All

' --- Home A Axis (if present) --- If GetOEMLED(33) Then ' LED 33 = A axis exists/active Message "Homing A Axis..." DoOEMButton(1036) ' Ref A While IsMoving() Sleep 100 Wend End If

Paste the following script. This example includes safety checks. mach3 ref all home script

' --- Disable limits temporarily (optional but prevents false triggers) --- ' DoOEMButton(1021) ' Uncomment if needed: Disable limits ' --- Home A Axis (if present) ---

' --- Final status --- Message "All axes homed successfully." SetUserLED(10, 1) ' Optional: Light a custom "Homed" LED mach3 ref all home script

' --- Home Y Axis --- Message "Homing Y Axis..." DoOEMButton(1035) ' Ref Y While IsMoving() Sleep 100 Wend

' --- Re-enable limits if disabled --- ' DoOEMButton(1021) ' Re-enable limits