@tomtendo I expect because you had D0 and H1 in your M563 command, which don't exist, it was causing an error and not being processed. Also the R0 S0 in your M568 command refers to temperature. You can use M568 F parameter for spindle speed, see https://docs.duet3d.com/User_manual/Reference/Gcodes#m568-set-tool-settings
Ian