Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: alchantelois on December 19, 2025, 04:37:46 PM

Title: Spindle trips limit switch on every Gcode start
Post by: alchantelois on December 19, 2025, 04:37:46 PM
I'm trying to get my machine up and running again after replacing the computer.  I have it mostly set but still have an issue.
Every time I try to run G-code, the spindle moves up (in the Z-axis direction) until it hits the limit switch and then it stops.  There is no code in my G-code telling it to do that so it must be a machine configuration setting, but I don't know what setting needs to be changed.  Any help?

Allen
Title: Re: Spindle trips limit switch on every Gcode start
Post by: Graham Waterworth on December 19, 2025, 09:53:08 PM
Turn off safe Z move and make sure your initialisation string is something like "G20/G21" inch/metric plus " G40 G00 G90 G99 G43 G80 G54"

 This should be a safe start.