Mapping A-axis as linear

From the original Synthetos forum (2011–2025)

Started by berlinguyinca on in TinyG Support. 8 replies, last activity May 30, 2015.

#

dear all,

I'm in the need of a tinyg configurations supporting 4 linear axes. Is this possible or can it be simulated?

Basically I want to:

X - move left to right
Y - move for and back
Z - move up and down
A - move a second Z axis up and down independent of the first Z axis

I need a movement of ~10 cm for the A axis

thanks!

Staff #

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.

Staff #

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 (5x360 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.

#

thanks this should get me started and I highly appreciate the feedback. Writing the GCODE is no problem, now that I have an idea what todo.

#

ok worked without issues. I also had an config error in my tinyg, which set the max travel rate for a to -1

Staff #

-1 is the default for unused axes, essentially shuts them off.

Good luck!

Staff #

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.

This topic is from the original forum (May 2015). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.