Gcode Turn A axis CCW


Results 1 to 10 of 10

Thread: Gcode Turn A axis CCW

  1. #1
    Registered
    Join Date
    May 2011
    Location
    USofA
    Posts
    92
    Downloads
    0
    Uploads
    0

    Default 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

    Similar Threads:


  2. #2
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default

    G0 A-45
    ??

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

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

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


  3. #3
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24172
    Downloads
    0
    Uploads
    0

    Default

    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
    Registered
    Join Date
    May 2011
    Location
    USofA
    Posts
    92
    Downloads
    0
    Uploads
    0

    Default

    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
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24172
    Downloads
    0
    Uploads
    0

    Default

    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
    Registered
    Join Date
    May 2011
    Location
    USofA
    Posts
    92
    Downloads
    0
    Uploads
    0

    Default

    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
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24172
    Downloads
    0
    Uploads
    0

    Default

    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
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default

    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
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

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

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


  9. #9
    Registered
    Join Date
    May 2011
    Location
    USofA
    Posts
    92
    Downloads
    0
    Uploads
    0

    Default

    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
    Registered
    Join Date
    May 2011
    Location
    USofA
    Posts
    92
    Downloads
    0
    Uploads
    0

    Default

    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.



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Gcode Turn A axis CCW

Gcode Turn A axis CCW