Results 1 to 8 of 8

Thread: Sample 4th axis Program please....

  1. #1
    Registered
    Join Date
    Oct 2007
    Location
    usa
    Posts
    113
    Downloads
    0
    Uploads
    0

    Sample 4th axis Program please....

    can someone post a sample 4th axis Program feeding x and rotating the A axis

    I went into the wizards and it is only for Straight cuts on gears

    Never played with 4th axis programming and want to try to figure it out


    Thanks


  2. #2
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    1
    Downloads
    0
    Uploads
    0
    Hello Bullseye,

    To program a fourth axis (rotary) is very simple. Say you want to move 10 inches in X and 720 degrees in A, you would simply program"

    G1 X10 A720 F30

    That's it. In this example, the G1 programs a linear move (interpolated) at 30 inches a minute along the interpolated path. The X moves 10" at the same time the rotary is moving 720 degrees (2 full revolutions) and they both end at the same time.

    If you programmed a G0 instead of a G1, they would move in rapid (non-interpolated) and they would not end at the same time.

    You could program a coordinated three axis move (let's say, X10" Z-3" and A3600 degrees) as follows: G1 X10 Z-3 A3600 F20. In this case it will feed to the right in X as it is feeding down in Z and rotating in A.

    To go the opposite way in A, simply say -3600 instead of 3600.

    Regards,
    Bob66


  3. #3
    Registered
    Join Date
    Jun 2003
    Posts
    2,044
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by BOB66 View Post
    Hello Bullseye,

    To program a fourth axis (rotary) is very simple. Say you want to move 10 inches in X and 720 degrees in A, you would simply program"

    G1 X10 A720 F30

    That's it. In this example, the G1 programs a linear move (interpolated) at 30 inches a minute along the interpolated path. The X moves 10" at the same time the rotary is moving 720 degrees (2 full revolutions) and they both end at the same time.

    If you programmed a G0 instead of a G1, they would move in rapid (non-interpolated) and they would not end at the same time.Sorry to disagree, but a G0 is an interpolated move as long as it is done on a controller capable of interpolated moves. The only difference between a G1 and a G0 is the programmed speed.

    You could program a coordinated three axis move (let's say, X10" Z-3" and A3600 degrees) as follows: G1 X10 Z-3 A3600 F20. In this case it will feed to the right in X as it is feeding down in Z and rotating in A.

    To go the opposite way in A, simply say -3600 instead of 3600.

    Regards,
    Bob66
    The balance of your info is correct.

    Mike
    No greater love can a man have than this, that he give his life for a friend.


  4. #4
    Registered
    Join Date
    Oct 2007
    Location
    usa
    Posts
    113
    Downloads
    0
    Uploads
    0
    OK..Thats simple enough.......Thanks Guys


  • #5
    Registered
    Join Date
    Nov 2009
    Location
    Viet Nam
    Posts
    16
    Downloads
    0
    Uploads
    0

    example for you



  • #6
    Registered
    Join Date
    Nov 2009
    Location
    Viet Nam
    Posts
    16
    Downloads
    0
    Uploads
    0

    about A degrees

    Quote Originally Posted by BOB66 View Post
    Hello Bullseye,

    To program a fourth axis (rotary) is very simple. Say you want to move 10 inches in X and 720 degrees in A, you would simply program"

    G1 X10 A720 F30

    That's it. In this example, the G1 programs a linear move (interpolated) at 30 inches a minute along the interpolated path. The X moves 10" at the same time the rotary is moving 720 degrees (2 full revolutions) and they both end at the same time.

    If you programmed a G0 instead of a G1, they would move in rapid (non-interpolated) and they would not end at the same time.

    You could program a coordinated three axis move (let's say, X10" Z-3" and A3600 degrees) as follows: G1 X10 Z-3 A3600 F20. In this case it will feed to the right in X as it is feeding down in Z and rotating in A.

    To go the opposite way in A, simply say -3600 instead of 3600.

    Regards,
    Bob66
    The A degrees in program must from -360 to 360 degrees,if it over alam will happen.good look!


  • #7
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,306
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by NguyenViet View Post
    The A degrees in program must from -360 to 360 degrees,if it over alam will happen.good look!
    Mach3 allows rotations greater than 360°, so:

    G1 A700 is allowable
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  • #8
    Registered
    Join Date
    Jan 2009
    Location
    USA
    Posts
    114
    Downloads
    0
    Uploads
    0
    How about:

    http://www.cncwrapper.com

    Twenty bucks and saves me a lot of time.

    Fatboy


  • Similar Threads

    1. Need IEI-ISO sample program for Mazatrol 640 T
      By turkaygeyik in forum Mazak, Mitsubishi, Mazatrol
      Replies: 0
      Last Post: 05-29-2007, 10:03 AM
    2. Sample Nisshinbo g-code program
      By ehab in forum General CNC (Mill and Lathe) Control Software (NC)
      Replies: 1
      Last Post: 09-16-2006, 06:20 PM
    3. Replies: 0
      Last Post: 02-03-2006, 06:58 AM
    4. Need Sample Waterjet / Plasma G Code Program
      By BlueChip in forum General Waterjet
      Replies: 2
      Last Post: 01-13-2006, 09:04 PM
    5. I need sample G code program
      By bunalmis in forum G-Code Programing
      Replies: 1
      Last Post: 08-24-2004, 04:50 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.