585,676 active members*
4,038 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2012
    Posts
    150

    Gcode to endlessly rotate C axis.

    Ok so I have a system with UC400ETH that is running 3 steppers an a lathe, X, Z and C axis.
    on C axis I can either connect the regular 3phase motor for conventional turning / facing etc. or the C axis for threading, indexing etc.
    Also instead of a regular lathe cutting tool, I have sort of mounted a milling head on the tool post.

    For some reason I need to do a test with the Caxis. So I need to keep rotating it endlessly.
    While my X and Z axis are controller by the UC400ETH by Mach.

    From what I read over its not possible with conventional G code since the controller will get stuck up at that line till the C axis completes the required number of rotations?
    But from what I read they said it would be possible with some kind of M code
    I hope someone shares some tricks on how to achieve this?

    Many thanks in advance!

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    Re: Gcode to endlessly rotate C axis.

    Set it up as the spindle. Unless you need to use both together.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Mar 2012
    Posts
    150

    Re: Gcode to endlessly rotate C axis.

    Quote Originally Posted by ger21 View Post
    Set it up as the spindle. Unless you need to use both together.
    Now that's a fantastic idea, I just hope a stepper as spindle is supported in Mach. The last I saw it had a PWM out for spindle.

  4. #4
    Join Date
    Mar 2003
    Posts
    35538

    Re: Gcode to endlessly rotate C axis.

    Yes, Mach3 supports step/direction spindles.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  5. #5
    Join Date
    Mar 2012
    Posts
    150

    Re: Gcode to endlessly rotate C axis.

    Quote Originally Posted by ger21 View Post
    Yes, Mach3 supports step/direction spindles.
    So I have followed the guide in this link Control of spindle revolution speed using PWM or STEP/DIR signals - Audiohms
    But I still can't get the Spindle stepper to move correctly.
    It just makes some kind of rattling sound gets burning hot but no rotation of the motor at all, when I click the spindle button in the Lathe profile of Mach.


    Any suggestions would be apprecited!

Similar Threads

  1. 2D Toolpaths - Contour - Rotate about Z axis
    By bandzim in forum Mastercam
    Replies: 0
    Last Post: 02-17-2013, 02:35 PM
  2. Command to rotate B axis of HMC
    By Ashish B in forum CNC Machining Centers
    Replies: 5
    Last Post: 07-08-2010, 02:34 PM
  3. rotate on axis A
    By tonyas in forum Mach Software (ArtSoft software)
    Replies: 0
    Last Post: 01-03-2008, 11:20 AM
  4. Long X-axis methods: Rotate the nut?
    By OCNC in forum DIY CNC Router Table Machines
    Replies: 4
    Last Post: 11-23-2004, 11:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •