Need Help! Simple G-Code Question


Results 1 to 8 of 8

Thread: Simple G-Code Question

  1. #1
    Registered
    Join Date
    Jun 2017
    Location
    United States
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Simple G-Code Question

    Hi Guys,

    Can anyone please take the tim eto provide me with a G-Gode snippet that will allow mt to rotate my 4th axis 90 degrees?

    My plan is to take the txt file and insert this code a tthe end then copy and paste it 4 times so that the txt file will perfrom the act of cuting the pocket rotate and repeat 4 times.

    Similar Threads:


  2. #2
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-Code Question

    G01 A90.0
    G01 A180.0
    G01 A270.0



  3. #3
    Registered
    Join Date
    Jun 2017
    Location
    United States
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-Code Question

    So would i add the a90 then pate the original filethen add a180 then paste the file again and so on?



  4. #4
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-Code Question

    That's all there is to it. Be sure to retract the Z before you turn the 4th.



  5. #5
    Registered
    Join Date
    Jun 2017
    Location
    United States
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-Code Question

    if my thought is correct it would return to the home position before rotating. THanks

    - - - Updated - - -

    and shouldnt it be G0 A90 not just a90 right?



  6. #6
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-Code Question

    G0 A90.0 would be a rapid move, should work fine.



  7. #7
    Member
    Join Date
    Jun 2010
    Location
    Australia
    Posts
    4256
    Downloads
    4
    Uploads
    0

    Default Re: Simple G-Code Question

    if my thought is correct it would return to the home position before rotating.
    Why should it?
    When you execute
    g01 x1 y1
    g01 x-1 y1
    you most certainly do NOT expect an RTZ in between them! Same applies to the A, B & C axes.
    In other words, the CNC SW will do EXACTLY what your program says.

    Granted, if your program is wrong, the machine will still try to execute it! This can be exciting.

    Cheers
    Roger



  8. #8
    Member handlewanker's Avatar
    Join Date
    Sep 2006
    Location
    Australia
    Posts
    6463
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-Code Question

    LOL....."this can be exciting"...... dear Rog.....this has made my day.
    Ian.



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

Simple G-Code Question

Simple G-Code Question