// M752 MACRO // Robertspark // 27/10/2017 // G96 EMULATE ATTEMPT /* G96, G97 Spindle Control Mode M751 { Dxxx, Exxx } (Constant Surface Speed) M752 (RPM Mode) D - maximum spindle { RPM } E - surface speed {units per minute} When using M751, ensure that X0 in the current coordinate system (including offsets and tool lengths) is the center of rotation or UCCNC will not give the desired spindle speed. M752 clears M751 (constant surface speed emulation & resets the spindle to default RPM control) G751Example Line G751 {D2500, E250} (set CSS with a max rpm of 2500 and a surface speed of 250 units/min) It is an error if: D is not specified with M751 E is not specified with M751 */ // Clear VARS exec.Setvar(0, 750); // Clear Macroloop Flag exec.Setvar(0, 751); // Clear maximum spindle { RPM } exec.Setvar(0, 752); // Clear surface speed {units per minute}