Hello Guest it is October 18, 2019, 10:54:12 PM

Author Topic: Mach3 path over-run  (Read 1957 times)

0 Members and 1 Guest are viewing this topic.

Mach3 path over-run
« on: March 16, 2010, 12:56:41 AM »
I am a newbie, and am trying to write a g-code program to cut holes in plastic boxes. One such rectangular hole looks like this:

% start with the LCD hole now
g0 x 1.000 y 1.2068
% entry move to the lower left corner
g42 g0 x 0.7340 y 1.2068
% down into the plastic
g1 z -0.125             
g1 y 2.6240
g1 x 4.9060
g1 y 1.2068
g1 x 1.0000
g1 x 0.7340
% clear the plastic
g0 z 0.1000
Executing this one line at a time does exactly what I expect till I get to the last G1 line, where instead of stopping at 0.7340, it continues to 0.38 something. I have another square hole where it does the same thing on the last cut.

I am doing this with offsets set, and a 0.125" cutter defined.

Why is it over-running? What do I need to do to make it stop? Is this because I am pulling the cutter out before the G40?

Bruce Sherry

Offline Graham Waterworth

  • *
  •  1,889 1,889
  • Yorkshire Dales, England
    • View Profile
Re: Mach3 path over-run
« Reply #1 on: March 16, 2010, 06:07:22 PM »
you need to do a feed/lead out line into open space within your rectangle.

Search the forum and manual for lead in and/or lead out

« Last Edit: March 16, 2010, 06:09:02 PM by Graham Waterworth »
Without engineers the world stops
Re: Mach3 path over-run
« Reply #2 on: March 16, 2010, 11:13:44 PM »
Thanks Graham!

Somehow I don't see it in the manual, but I did find it in the forum.

Bruce Sherry