Mapping A-axis as linear

Home Forums TinyG TinyG Support Mapping A-axis as linear

Tagged: ,

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #7749

    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!

    #7753
    cmcgrath5035
    Moderator

    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.

    #7764

    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.

    #7765
    cmcgrath5035
    Moderator

    I have never tried it either.
    Give this CP item a look and watch:

    #7766
    cmcgrath5035
    Moderator

    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.

    #7767

    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.

    #7768

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

    #7769
    cmcgrath5035
    Moderator

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

    Good luck!

    #7772
    alden
    Member

    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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.