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

0 Members and 1 Guest are viewing this topic.

Offline brucesherry

  • Holding
  • Posts: 2
    • View Profile
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

  • Administrator
  • *
  • Posts: 1,845
  • West Yorkshire, England
    • View Profile
    • Autovalues Engineering
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 »
G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England

Offline brucesherry

  • Holding
  • Posts: 2
    • View Profile
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