G-Code Hack for Infinite One Direction Rotary Operation

I run VERY large 360 degree high resolution images on a rotary. Default operation has a start, stop, and direction change to complete each scan line. I would like to hack the G-Code to have the rotary continuously rotate in one direction, and just bump one scan line at a time without stopping/slowing down. This would reduce the time to run these images. Currently I’m at 8 hours+ so looking for any times savings.

I used find and replace on a text editor for a proof of concept G-Code test. It revolves only in the one direction, and increments one scan line on each revolution. HOWEVER, smoothie still decellerates and stops before each scan line increment. So the question is, is there a G-Code command hack that will allow constant rotation (a axis) at full speed with the start/accelerate/decelerate/stop sequence at each scan line increment (x axis)?

If you want it to not do (much) acceleration/deceleration, just set an extremely high value for the acceleration (like 100000 or something).

I would like to hack the G-Code to have the rotary continuously rotate in one direction

That’s just a single gcode, G1 X1000 F0.1, very slow speeds, long distance/duration, and that’s it, right?

so the question is, is there a G-Code command hack that will allow constant rotation (a axis) at full speed with the start/accelerate/decelerate/stop sequence at each scan line increment (x axis)?

Oh, there are two axes…

Are there more? It’s weird to be using A if you only have two axes.

No, you can’t have constant motion on an axis and varying motion on another. I guess with a lot of math (and by mostly removing acceleration), you could get pretty close, simply figure out how much time and how much distance each operation should take on each axis, and then calculate the corresponding speeds (F), and write the gcode accordingly (a script/program would probably do that fairly easily, chatgpt can probably figure that out if you explain in detail/clearly)

1 Like

Thanks Arthur.

About the Axis: the machine runs on the Alpha and Beta axis on the board. I just called one “A” here to make the distinction it was rotary.

alpha and beta are drivers, not axes. which letters are you using, letters are axes (XYZABC)

X & Y axis