Sorry I didn’t catch tat part, thought it was all under start. Well the gcode looks good. A few possibilities I guess. Is your home is not being set correctly. I reset my arduino before I start a cut to make sure it is zeroed out. I see it in the code but maybe it isn’t taking?
Try setting the spindle at 0,0,0 reset the adruino and run the code again. This has got to be something simple we are overlooking.