@FlashPackets I don't think the M3 and M5 commands will be doing anything, as you are using M452 S0 (non-sticky mode). If you want to use them, see https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m3-spindle-on-clockwise

Ian