586,313 active members*
3,395 visitors online*
Register for free
Login
IndustryArena Forum > OpenSource CNC Design Center > Coding > Need help with simple G code
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    15

    Need help with simple G code

    I'm learning G code and have come across a problem that I cannot solve.
    I am cutting a simple profile on my home made turning machine.
    I'm cutting a tube with a flange on the end of it.
    My tool goes from home to the small OD then goes along to the flange, goes up and across the larger OD. It then goes back to the far end of the small OD to part it off then up bigger than the large OD and down to the other side of the flange to part off then return to home.
    Problem is I want to offset the tool width when coming back to the flange for parting off but it will not acknowledge the offset.
    I'm using the G41 D1 code with my #1 tool referenced.
    I use Flashcut.
    Here's a copy of my code to look at.
    Any help would be appreciated.
    Thanks

    N100 G00 G91 (set highspeed, incremental)
    N110 M06 T1
    N120 X-0.5 (Move half of Initial Travel distance along X)
    N130 Y-3.277 (Move Y to within 0.5" of cutting diameter [CHANGE OD HERE])
    N140 G01 F20 Y-0.5 (Change to low speed, begin cutting in to Initial Diameter)
    N150 X-0.5 (Move again half of Initial Travel distance along X to shank end of ferrule)
    N150 X-3.862 (Cut straight section of OD)
    N170 G00 Y0.386 (cut vertical segment)
    N180 G01 (return to slow after rapid feed out)
    N190 X-0.387 (Cut straight section of OD)
    N200 X-0.25 (Cut straight section of OD)
    N210 G00 Y0.25 (Move to 0.25" larger than largest OD)
    N220 X4.499 (Move to X position of cutoff at Shank end)
    N230 Y-0.706 (Move quickly to within .200" of cutoff)
    N240 G01 F3 Y-0.200 (Finish cutoff slowly)
    N250 G04 X1 (Pause at cutoff for manual clean)
    N260 G00 Y0.906 (Move to 0.25" larger than largest OD)
    N262 G41 D1
    N270 X-4.249
    N280 Y-0.200 (Move quickly to within .200" of cutoff)
    N290 G01 F3 Y-0.706 (Finish cutoff slowly)
    N300 G04 X1 (Pause at cutoff for manual clean)
    N310 G00 Y0.906 (Move to 0.25" larger than largest OD)
    N320 G90 X0.0 Y0.0 (Return to Home on Completion)
    N325 G40
    N330 G27 (Find limit switches)
    N340 M30 (End Program)

  2. #2
    Join Date
    Apr 2006
    Posts
    15
    bump

  3. #3
    Join Date
    May 2005
    Posts
    1662
    Quote Originally Posted by Step by Step View Post
    bump
    Post the question in the 'G-code programming' forum and it will probably be answered. The g-code gurus aren't looking here.

    Would like to help but I'm a mill guy.

    edit/ Noticed you have already posted there. Sorry for the interuption.
    Anyone who says "It only goes together one way" has no imagination.

Similar Threads

  1. simple python g-code generators
    By Dan Falck in forum OpenSource Software
    Replies: 0
    Last Post: 11-26-2007, 11:37 PM
  2. simple start up code needed
    By jrick in forum Community Club House
    Replies: 0
    Last Post: 02-08-2007, 07:05 AM
  3. Simple G-Code program?
    By N4NV in forum G-Code Programing
    Replies: 10
    Last Post: 03-25-2006, 01:35 AM
  4. Simple G-code commands...
    By WilliamD in forum G-Code Programing
    Replies: 5
    Last Post: 01-12-2006, 07:27 PM
  5. Perhaps a bug in simple one line code??
    By thuffner3 in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 3
    Last Post: 02-03-2004, 03:21 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
  •