Altmill spindle stops after starting from a line

I have had this issue that pops up when the machine has an error during a carve and the machine stops. I clear the faults I verify the origin point and if everything looks good I try to restart the job at a point about 2000 lines prior to the last line it ran. I have in my settings to turn the spindle on upon Program Start and Program Resume. The annoying part is the spindle will spin up and the machine will jog over to the location of the line I told it to start at but the spindle then turns off.

I have tried restarting gsender and restarting the control board and reloading the carve program, along with all 3 at the same time. The spindle always stops shortly after starting from a particular line of code.

The console shows an M5 command is sent to the controller which must be happening every time. That stops the spindle from running. I don’t know if there is a way for that command to be removed from the process of starting from a particular line of your gcode?

Looking into this, start from line adds the parsed spindle modal from the file but that values defaults to M5 (Spindle off). This is what’s causing your issue - the file doesn’t contain the spindle start command, the start event does. We’ll look at not including a spindle modal at all if it’s not a M3/M4 in an upcoming version.