584,833 active members*
5,647 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2014
    Posts
    3

    inserting a return to zero in G code

    Does anyone know how to insert a return to zero in the G code. I want to do this so I can have my router drill a few holes and then return to zero so I can put screws through the holes to hold the piece and then continue with the job where it left off. I am using cut2d. Thanks

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    Re: inserting a return to zero in G code

    There's no wau to do it in Cut2D, at least not in a single g-code program. I'd save one program to drill the holes, and another to do the cutting.
    Run the first program, screw the part down, and run the second program.
    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)

  3. #3
    Join Date
    Jan 2005
    Posts
    15362

    Re: inserting a return to zero in G code

    AutoPilotOn

    G0Z0.
    G53X0Y0.

    G0Z0.
    G91G28X0Y0 ( if you use a G91 your next line would have to have a G90 in it to cancel it, or the G91 will stay active )

    Once you know what works for you, you could have your post processor changed for you

    There are many ways to do it, you will have to try some to see what works best for you
    Mactec54

  4. #4
    Join Date
    May 2014
    Posts
    3

    Re: inserting a return to zero in G code

    Thanks

  5. #5
    Join Date
    Jun 2010
    Posts
    4252

    Re: inserting a return to zero in G code

    On the surface of it, I would suggest you edit the program in Notepad. At the relevant point in the program, insert:

    g0 Zsomewhere up high out of the way
    g0 x0 y0
    m1 (Insert screws) %/\/\/\ the machine should stop here and issue the prompt

    Can't immediately see why that would not work - but then, I do that all the time.

    Cheers
    Roger

Similar Threads

  1. Inserting a reference plane
    By Darth Yoda in forum Mastercam
    Replies: 1
    Last Post: 07-03-2014, 05:35 PM
  2. inserting custom code
    By beartrax in forum Mastercam
    Replies: 3
    Last Post: 08-29-2008, 04:53 PM
  3. Stop inserting M3
    By Big John T in forum SheetCam
    Replies: 1
    Last Post: 05-11-2008, 09:35 PM
  4. TCC v3 - keeps inserting G28 - why
    By phil burman in forum Uncategorised CAM Discussion
    Replies: 1
    Last Post: 06-26-2006, 05:29 AM

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
  •