G7 / G8 Diameter or Radius Mode (X-axis) Macro Emulate

G7 / G8 Diameter or Radius Mode (X-axis) Macro Emulate
M707 sets machine back to radius mode (basically halves X-axis steps per unit) and saves original setting for later reset
eg turning a part at X25 will create a part 25 units in diameter
M708 sets machine X axis to diameter mode (default) by resetting the X-axis steps per unit.
eg turning a part at X25 will create a part 50 units in diameter
M706 is the macroloop, because if you reset the machine, the macros will be cleared, hence if you press start or run from here you would also need to re-run the M707 to set the machine back into radus mode without it. The Macroloop allows the setting to be semi-modal (it is semi-modal, because if you turn the machine on and off / restart UCCNC the steps per unit will be restored to the orginal settings which are in diameter mode (i.e. turning a part at X25 will create a 50 unit diameter part)
Idea came from here:
http://linuxcnc.org/docs/html/gcode/g-c ... l#gcode:g7
Seems to work fine here, let me know any issues.
M707 sets machine back to radius mode (basically halves X-axis steps per unit) and saves original setting for later reset
eg turning a part at X25 will create a part 25 units in diameter
M708 sets machine X axis to diameter mode (default) by resetting the X-axis steps per unit.
eg turning a part at X25 will create a part 50 units in diameter
M706 is the macroloop, because if you reset the machine, the macros will be cleared, hence if you press start or run from here you would also need to re-run the M707 to set the machine back into radus mode without it. The Macroloop allows the setting to be semi-modal (it is semi-modal, because if you turn the machine on and off / restart UCCNC the steps per unit will be restored to the orginal settings which are in diameter mode (i.e. turning a part at X25 will create a 50 unit diameter part)
Idea came from here:
http://linuxcnc.org/docs/html/gcode/g-c ... l#gcode:g7
Seems to work fine here, let me know any issues.