587,608 active members*
3,355 visitors online*
Register for free
Login
Results 1 to 10 of 10
  1. #1
    Join Date
    May 2011
    Posts
    92

    Gcode Turn A axis CCW

    The stepper will turn a horizontal Ellis Divider- 40:1
    8 divisions or 45deg
    The Gcode Ive written
    G0 G90 G20
    A45 F200
    M30
    222.222 is written in Motor Tuning-A axis-Steps per

    Lets say after drilling #3 hole and I need to go back to #1 position,
    What code is needed to make the stepper turn back, CCW, to #1 position ?

    This is my first attempt at Cnc and Mach3.
    All is wired up on my bench.
    PS
    Stop switch
    Gecko 540
    Keling 23/382oz-1.8° /200 Steps Per Rev
    Mach3

  2. #2
    Join Date
    Mar 2003
    Posts
    35538
    G0 A-45
    ??
    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
    Dec 2003
    Posts
    24220
    G90 is absolute, wouldn't it be A0?
    G91 -45 if relative?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  4. #4
    Join Date
    May 2011
    Posts
    92
    Ive typed G90 A0 and G91 -45 in MDI, the stepper still goes CW. but the ref counter 4 goes to 0 (zero)

  5. #5
    Join Date
    Dec 2003
    Posts
    24220
    Sounds like the step is working, but the dir signal is not changing?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  6. #6
    Join Date
    May 2011
    Posts
    92
    In Ports/Pins- Motor Output
    A-enabled, Step pin 8, Dir pin 9, Dir Low ckd, Step Low ckd,
    Step port 1, Dir port 1.

    Is this relative?

  7. #7
    Join Date
    Dec 2003
    Posts
    24220
    May have to monitor the status of the pin, either at the PP or at the drive and see if it changes with direction?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  8. #8
    Join Date
    Mar 2003
    Posts
    35538
    There are a couple checkboxes in General config that mat need to be changed. Something about rollover (don't have Mach on this PC)
    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)

  9. #9
    Join Date
    May 2011
    Posts
    92
    Under Ports/Pins>Motor Outputs>A axis, I changed Step Low Active to Disabled and it worked.

    Dont understand why it does this.

    G0 A45 CW
    G0 A-45 CCW

    I have cheat sheets w/ all G and M codes.
    and by modal groups.
    But is there any reference for definitions in understandable terms?

  10. #10
    Join Date
    May 2011
    Posts
    92
    Quote Originally Posted by ger21 View Post
    There are a couple checkboxes in General config that mat need to be changed. Something about rollover (don't have Mach on this PC)
    In Gen Config>Rotational there is Rot 360 rollover, Ang Short Rot on G0 and Rotational Soft Limits which is ckd by default.

Similar Threads

  1. 4th-Axis GCode Programming
    By twehr in forum G-Code Programing
    Replies: 10
    Last Post: 02-19-2023, 11:02 AM
  2. help with 5 axis gcode
    By ethank in forum Rhinocam
    Replies: 1
    Last Post: 09-25-2020, 08:05 PM
  3. Way to take gcode for one axis and mirror it for another axis?
    By genestapp in forum Uncategorised CAM Discussion
    Replies: 2
    Last Post: 10-09-2010, 04:14 PM
  4. 4th gcode axis problem
    By fabconv in forum Visual Mill
    Replies: 1
    Last Post: 08-29-2009, 01:39 PM
  5. What is the gcode to ref 1 axis home after
    By seanreit in forum Uncategorised MetalWorking Machines
    Replies: 6
    Last Post: 12-07-2008, 11:18 PM

Posting Permissions

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