587,446 active members*
2,954 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Mach Software (ArtSoft software) > Mach Mill > Is it possible to reuse G-code at different orientations?
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2013
    Posts
    608

    Is it possible to reuse G-code at different orientations?

    Guys not sure if this is the right place to post this but I use Mach 3 for my machine.

    I have a small rectangular shape that I need to pocket on different places on a part (which is not big deal, just Zero at the new location every time) but I also have the need to rotate it 90 and 45 deg at times.
    Other than making code for each variation, is there way to do it from one G-code file? - I don't think so is there?

    Thanks

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    Re: Is it possible to reuse G-code at different orientations?

    You can use G68 to rotate the coordinate system.
    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
    Jul 2013
    Posts
    608
    Quote Originally Posted by ger21 View Post
    You can use G68 to rotate the coordinate system.
    Thank you. I will look in to that.

  4. #4
    Join Date
    Jul 2013
    Posts
    608

    Re: Is it possible to reuse G-code at different orientations?

    So what I found is that the syntax is:
    G68 X0 Y0 R (angle).

    The question is, where does that line go And does it need to be terminated?

    It seems I would need to just edit my code every time. Good tip but I can't get it to work.

    My X and Y dros turn red and g code disappears from the preview rather than just rotating. Do I need to reference/ zero the axis when i do this?

  5. #5
    Join Date
    Mar 2003
    Posts
    35538

    Re: Is it possible to reuse G-code at different orientations?

    The Red DRO's tell you that the rotation is in effect.
    Try regen the toolpath to see the effect.

    You place the line when or where you want to rotate the g-code.

    The X and Y coordinates in the G68 line are the center of the rotation.

    To disable the rotation, use G68 R0.


    Whether or not you need to re-zero depends on exactly what you're doing, where your pocket is programmed at, and where you want it.

    In order to use this, you'll need a very good understanding of g-code, and exactly how this works.

    Your other option is as you said, make separate code for each different thing you need.
    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)

Similar Threads

  1. Replies: 51
    Last Post: 09-16-2020, 01:28 AM
  2. corel.hpgl > sheetcam.tap > pronterface.g-code > slic3r.g.code> ramps 1.4 > H-BOT
    By thesignworks in forum Uncategorised CAM Discussion
    Replies: 0
    Last Post: 05-25-2014, 02:11 PM
  3. X4+ Axes Orientations & Travel Directions
    By damoreng in forum Syil Products
    Replies: 7
    Last Post: 06-25-2009, 05:43 AM
  4. Saving code for easy reuse somehow?
    By facegarden in forum Mastercam
    Replies: 9
    Last Post: 04-24-2009, 01:46 AM
  5. Reuse the waste oil
    By beruren in forum Environmental / Alternate Energy
    Replies: 0
    Last Post: 03-04-2009, 03:58 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
  •