Assuming you know how to create Gcode for Axis motion, you need to convert the parameters that an A axis understands into linear motion , then place these translated parameters into the appropriate A axis fields. For example, if your A axis mechanics require 2 revolutions of the motor to make 10cm of linear motion, then you need to enter an A axis directive to rotate the motor twice.
thank you, could you provide me with an example by any chance? I’m a bit new to rotational axis and only worked with linear modes so far and somehow have a hard time finding this info, since every tutorial kinda assumes that you know what you doing and I have not really an engineering background.
Lets say your second Z axis, I’ll call it ZA axis, has its stepper directly connected to a 2mm pitch lead screw. To move 10mm, you would need 5 revolutions.
So, a G1 A1800 (5×360 degrees=1800) Gcode command would move your ZA axis 10mm. You have to experimentally determine if you want a G1 A1800 or G1 A-1800 to move in the direction you want
I am not aware of any Gcode generator that would generate this for you, you will have to hand code.
Glad you worked that out. The other way to do this is to set the rotary axis (A, B, or C) in Radius mode, then set a radius value for the axis. This interprets linear input as if it were wrapped around a disk. This is explained on the wiki on the configuration page under Radius mode. You have to work the math a bit, but it does work.