Robertspark wrote:I know uccnc is unitless, however I was wondering if G20 + G21 could be added to the available list of Gcodes so that they could be used to toggle a checkbox (or LED) which could then be used by macros to check for metric or inch correction for meters / min or, inch per minute or feet per minute which can be applied within the macros directly by users.
Note this is just a checkbox (or LED) toggle, we already have G50 + G51 should you wish to rescale the gcode.
G20 / G21 would do nothing other than toggle the checkbox or led unless you had a macroloop or macro which was looking for the status of that checkbox or LED within the screenset (general settings tab).
Thanks,
Hi Rob, I was searching G20/G21 and came across this thread, are you looking for leds for g20/g21 in Gcode? I already have this code fom Gcode estimator I worked on and could put into a macro if you like, but would take me so much longer..lol. Let me know if this is what you were looking for.
Create two leds... 500 for g20 and 501 for g21.