585,753 active members*
3,826 visitors online*
Register for free
Login
Results 1 to 8 of 8
  1. #1

    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.

  2. #2
    Join Date
    Dec 2013
    Posts
    5717

    Re: Simple G-Code Question

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

  3. #3

    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
    Join Date
    Dec 2013
    Posts
    5717

    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

    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
    Join Date
    Dec 2013
    Posts
    5717

    Re: Simple G-Code Question

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

  7. #7
    Join Date
    Jun 2010
    Posts
    4256

    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
    Join Date
    Sep 2006
    Posts
    6463

    Re: Simple G-Code Question

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

Similar Threads

  1. Need simple G-Code (CNC) $
    By CrashDeftones88 in forum RFQ (Request for Quote)
    Replies: 1
    Last Post: 07-14-2016, 02:16 PM
  2. simple G code help
    By Deltabox in forum G-Code Programing
    Replies: 22
    Last Post: 06-11-2012, 04:46 PM
  3. Need (hopefully simple)G code Help
    By inventor30 in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 2
    Last Post: 11-12-2010, 12:32 PM
  4. Need help with simple G code
    By Step by Step in forum Coding
    Replies: 2
    Last Post: 10-25-2008, 02:49 AM
  5. Simple Question Simple Answer ?
    By p3t3rv in forum Stepper Motors / Drives
    Replies: 6
    Last Post: 02-16-2006, 04:00 PM

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
  •