Hello Guest it is May 11, 2025, 05:25:40 AM

Author Topic: G41/42 question  (Read 9330 times)

0 Members and 1 Guest are viewing this topic.

Offline OCNC

*
  •  23 23
G41/42 question
« on: February 12, 2011, 06:26:47 PM »
I'm trying to generate a g-code program that zig-zags.  In order to keep the tool on the correct side of the cut I need to change the cutter offset at the end of each x axis motion.  The change from G41 to G42 and back again seems like it might be happening at maximum rapid speed.  What speed is used for the cutter compensation move and is there any strategy that applies to making a smooth transition between G41 and G42?
Thanks.

Chris

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: G41/42 question
« Reply #1 on: February 12, 2011, 09:44:22 PM »
You can't change from G41 to G42 without first canceling whichever is in effect with a G40.

The best way is to probably do the offsets in CAD and not use G41/G42
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline OCNC

*
  •  23 23
Re: G41/42 question
« Reply #2 on: February 12, 2011, 10:58:56 PM »
Thanks Ger,

I was hoping to keep the CAD side of it as simple as possible.  I drew the centerline paths in Rhino and used Rhinoscript to generate the g-code.  I failed to use the G40 word before changing the compensation so I'll have to try inserting that tomorrow to see what the effect is.  It was suggested to me on the cnczone g-code forum that I would have to use leadins with the cutter compensation change so if that is in fact a necessity it may make changing the CAD the easier solution.

Chris

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: G41/42 question
« Reply #3 on: February 13, 2011, 08:45:18 AM »
Yes, a lead in move is required, as that is where the comp is applied.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline OCNC

*
  •  23 23
Re: G41/42 question
« Reply #4 on: February 13, 2011, 10:04:22 AM »
Is there any particular preferred path for the leadin move?

Chris

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: G41/42 question
« Reply #5 on: February 13, 2011, 10:10:45 AM »
Probably depends on the application, but it should be a G0 or G1 move, and not an arc.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html