586,110 active members*
3,281 visitors online*
Register for free
Login
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2007
    Posts
    113

    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
    Join Date
    Dec 2007
    Posts
    1
    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
    Join Date
    Jun 2003
    Posts
    2103
    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
    Join Date
    Oct 2007
    Posts
    113
    OK..Thats simple enough.......Thanks Guys

  5. #5
    Join Date
    Nov 2009
    Posts
    16

    example for you


  6. #6
    Join Date
    Nov 2009
    Posts
    16

    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. #7
    Join Date
    Mar 2003
    Posts
    35538
    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

    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)

  8. #8
    Join Date
    Jan 2009
    Posts
    114
    How about:

    http://www.cncwrapper.com

    Twenty bucks and saves me a lot of time.

    Fatboy

Similar Threads

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

Posting Permissions

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