Hello Guest it is March 18, 2024, 11:20:49 PM

Author Topic: Machine moving before Drill bits are fully retracted  (Read 4862 times)

0 Members and 1 Guest are viewing this topic.

Machine moving before Drill bits are fully retracted
« on: June 03, 2010, 05:51:11 PM »
I am running Mach 3 / Camtronics Controller on a Shopmaster Patriot. I ran the following G-Code to drill two 1/2" deep  holes 2.75 inches apart, then counterbore these holes .187 deep with a larger bit. I choose a .125 pecking step and a rapid plane of 0.100.

The program located the first hole and started the pecking, but the table started moving before the drill retracted from the workpiece and before the first hole was completed to depth of 1/2".  This of course snapped the bit.

Can anyone tell if there is a problem with my code?


N01 G20 G40 G49 G54 G80 G90 G91.1
;N02 G53 Z0.

(JOB 1  HOLE  RANDOM POINT PATTERN)
(FEATURE DRILL HOLE)

;N03 T1 M6
N04 S504 M03
N05 G00 G90 G54 X.5 Y1.625
;N06 G43 H1 Z.1 M08
N07 G81 G98 X.5 Y1.625 Z-.068 R.1 F1.0084
N08 Y4.375
N09 G80
N10 G80

(JOB 2  HOLE  RANDOM POINT PATTERN)
(FEATURE DRILL HOLE)

N11 S504
N12 G00 X.5 Y4.375
N13 G81 G98 X.5 Y4.375 Z-.08 R.1 F1.0084
N14 Y1.625
N15 G80
N16 G80
N17 M09
N18 M05
;N19 G53 Z0.
;N20 G53 X0. Y0.
N21 M00

(JOB 1  HOLE  RANDOM POINT PATTERN)
(FEATURE DRILL HOLE)

;N22 T2 M6
N23 S1291 M03
N24 G00 G90 G54 X.5 Y1.625
;N25 G43 H2 Z.1 M08
N26 G83 G98 X.5 Y1.625 Z-.6409 R.1 Q.068 F3.8759
N27 Y4.375
N28 G80
N29 G80

(JOB 2  HOLE  RANDOM POINT PATTERN)
(FEATURE DRILL HOLE)

N30 S1036
N31 G00 X.5 Y4.375
N32 G81 G98 X.5 Y4.375 Z-.3379 R.1 F3.1099
N33 Y1.625
N34 G80
N35 G80
N36 M09
N37 M05
;N38 G53 Z0.
;N39 G53 X0. Y0.
N40 M00

(JOB 2  HOLE  RANDOM POINT PATTERN)
(FEATURE DRILL HOLE)

;N41 T2 M6
N42 S397 M03
N43 G00 G90 G54 X.5 Y4.375
;N44 G43 H2 Z.1 M08
N45 G81 G98 X.5 Y4.375 Z-.0422 R.1 F1.1918
N46 Y1.625
N47 G80
N48 G80
N49 M09
N50 M05
;N51 G53 Z0.
;N52 G53 Y0.

(END OF PROGRAM)

N53 M30
%
« Last Edit: June 03, 2010, 05:52:53 PM by Cincinnati »

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Machine moving before Drill bits are fully retracted
« Reply #1 on: June 03, 2010, 06:38:43 PM »
Semms to run fine here, can you attach your xml and I will test it with that.
Hood
Re: Machine moving before Drill bits are fully retracted
« Reply #2 on: June 03, 2010, 10:34:47 PM »
what is xml & how/where do I get it?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Machine moving before Drill bits are fully retracted
« Reply #3 on: June 04, 2010, 02:28:49 AM »
XML is the config file, it is in the main Mach 3 folder on your drive. It will be called Mach3Mill.xml if you are using the standard mill profile, if you have a custom profile it will have the name of your custom profile .xml
To attach to the forum use the additional options button on the reply page to browse to the xml.
You will also likely have to copy and rename it before you upload as the forum only accepts a file name once so suggest you copy and change the name to Cincinnatii.xml

Hood
Re: Machine moving before Drill bits are fully retracted
« Reply #4 on: June 04, 2010, 03:28:38 AM »
hi,

I had problems with the tool length offsets if I had :-
 
T01 M06 G43 L1 ( all on one line)
It would randonly apply or not apply the correct TLO

I always now write:-
T01 M06
G43 L1

i.e. on 2 separate lines (or nothing elese on that line).
Not saying that is the cause but might be worth a try?

ATB
Derek
You can "chop it off" but can't "chop it on"
Re: Machine moving before Drill bits are fully retracted
« Reply #5 on: June 07, 2010, 02:45:44 PM »
Derek,

My tool Change codes are at N03, N22, and N41. What do you suggest I modify? I am not making the correlation to your situation.
Re: Machine moving before Drill bits are fully retracted
« Reply #6 on: June 07, 2010, 03:18:20 PM »
Here's my Mach3Mill.xml file.  Does this explain why I had an interference while moving the drill?

Cincinnati
Re: Machine moving before Drill bits are fully retracted
« Reply #7 on: June 07, 2010, 03:43:53 PM »
Derek,

My tool Change codes are at N03, N22, and N41. What do you suggest I modify? I am not making the correlation to your situation.
Hi Cinc'
I'm no  expert but I would write:-

N03 T1 M6  (call new tool)
N06 G43 H1 (apply TLO)
Z.1 M08  (now move)
N04 S504 M03
N05 G00 G90 G54 X.5 Y1.625
N07 G81 G98 X.5 Y1.625 Z-.068 R.1 F1.0084
N08 Y4.375
N09 G80
N10 G80


I noticed that with the tool change call and TLO call on one line, I would get ranodm TLO's.
Separating the two calls gave reliable results - I tested this by putting the Tool and TLO calls back on one line and the problems returned.This was repeatable.

It might be that any other command in the TLO call line ( N06 G43 H1 Z.1 M08 ) would cause the same problem??? - just an idea for you to try.

ATB
Derek
You can "chop it off" but can't "chop it on"

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Machine moving before Drill bits are fully retracted
« Reply #8 on: June 07, 2010, 04:01:05 PM »
 Does it always do it or was it just a one off?
Seems to run fine here with your xml so not sure what to suggest but Derek's idea may be worth a try.

Hood