fra589 / grbl-Mega-5X

5/6 Axis version of Grbl, the open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560
https://github.com/fra589/grbl-Mega-5X/wiki
Other
341 stars 159 forks source link

renaming axis from software #314

Closed ariefadha closed 1 year ago

ariefadha commented 1 year ago

hi, I'm using 4 independent axis foam cutter with rotary axis so it only can run G01, not G02 or G03, because arc movement cannot translate to UV axis.

however sometimes I want to use this 4 axis machine to cut foam like 2 axis or 2 axis + rotary axis. And the gcode use Arc movement. In mean time I have to unplug the UV axis and put parallel to XY axis driver motor (acting as duplicate stepper), so it can move and accept arc gcode.

So if I can rename UV axis from software so it can move same like XY, I dont need to unplug-plug the stepper wire for paralleling UV to XY.

fra589 commented 1 year ago

Hi @ariefadha,

I'm afraid it's not possible to have a dynamic rename functionality.
Axis names are defined at compilation time by constants and not by variables. Unless rewriting a very large part of the code and have a risk of losing a lot of optimization, it's not possible to change axes names after compilation.

@++;
Gauthier.