585,575 active members*
3,512 visitors online*
Register for free
Login
Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2013
    Posts
    27

    Error with PCBGCODE drill file

    Hello everyone!

    I have a strange problem with PCBGCODE and LINUXCNC. When I generate a drill file with eagle and PCBGCODE, everything seems fine. But when I go to run it in LINUXCNC it spits out "Need tool prepared -Txx- for toolchange"

    Now what the heck could that mean???

    I created a drill rack file for pcbgcode:
    T01 0.3mm 0.000mm 0.350mm 1.5in
    T02 0.4mm 0.351mm 0.450mm 1.5in
    T03 0.5mm 0.451mm 0.550mm 1.5in
    T04 0.6mm 0.551mm 0.650mm 1.5in
    T05 0.7mm 0.651mm 0.750mm 1.5in
    T06 0.8mm 0.751mm 0.850mm 1.5in
    T07 0.9mm 0.851mm 0.950mm 1.5in
    T08 1.0mm 0.951mm 1.050mm 1.5in
    T09 1.1mm 1.051mm 1.150mm 1.5in
    T10 1.2mm 1.151mm 100.00mm 1.5in

    And my tool table file for LINUXCNC:
    T1 P1 Z0 D.3 ;.3mm PCB Drill Bit
    T2 P2 Z0 D.4 ;.4mm PCB Drill Bit
    T3 P3 D.5 ;.5mm PCB Drill Bit
    T4 P4 D.6 ;.6mm PCB Drill Bit
    T5 P5 D.7 ;.7mm PCB Drill Bit
    T6 P6 D.8 ;.8mm PCB Drill Bit
    T7 P7 D.9 ;.9mm PCB Drill Bit
    T8 P8 D1 ;1mm PCB Drill Bit
    T9 P9 D1.1 ;1.1mm PCB Drill Bit
    T10 P10 D1.2 ;1.2mm PCB Drill Bit

    I am reluctant to use the "simple drill code" because I don't want to miss out on any features PCBGCODE has to offer.

    What could be happening? Thanks in advance!

  2. #2
    Join Date
    Jul 2013
    Posts
    27

    Re: Error with PCBGCODE drill file

    I thought it might help if I posed my gcode:

    (Z Axis Settings)
    ( High Up Down Drill)
    (2.0000 0.5000 -0.0600 -2.0000 )
    ( Tool| Size | Min Sub | Max Sub | Count )
    ( T01 | 0.600mm 0.0236in | 0.0000in | 0.0000in | 0 )
    ( T02 | 0.610mm 0.0240in | 0.0000in | 0.0000in | 0 )
    ( T03 | 0.813mm 0.0320in | 0.0000in | 0.0000in | 0 )
    ( T04 | 1.016mm 0.0400in | 0.0000in | 0.0000in | 0 )
    ( T05 | 3.175mm 0.1250in | 0.0000in | 0.0000in | 0 )
    G21
    (Absolute Coordinates)
    G90
    S12000
    G00 Z2.0000
    G00 X0.0000 Y0.0000
    M03
    G04 P1.000000
    M05
    G00 Z25.4000
    M06 T01 (0.6000 )
    G01 Z0.0000 F100.00
    M06
    G00 Z0.5000
    M03
    G04 P1.000000
    G82 X0.0000 Y36.8300 Z-2.0000 F100.00 R0.5000 P0.250000
    G82 X82.5500 Y36.8300
    M05
    G00 Z25.4000
    G00 X0.0000 Y0.0000
    M06 T02 (0.6096 )
    G01 Z0.0000 F100.00
    M06
    G00 Z0.5000
    M03
    G04 P1.000000
    G82 X30.4800 Y17.7800 Z-2.0000 F100.00 R0.5000 P0.250000
    G82 X35.5600 Y24.1300
    G82 X48.2600 Y44.4500
    M05
    G00 Z25.4000
    G00 X0.0000 Y0.0000
    M06 T03 (0.8128 )
    G01 Z0.0000 F100.00
    M06
    G00 Z0.5000
    M03
    G04 P1.000000
    G82 X6.3500 Y7.6200 Z-2.0000 F100.00 R0.5000 P0.250000
    G82 X8.8900 Y7.6200
    G82 X11.4300 Y7.6200
    G82 X15.2400 Y7.6200
    G82 X17.7800 Y7.6200
    G82 X17.7800 Y15.2400
    G82 X15.2400 Y15.2400
    G82 X11.4300 Y15.2400
    G82 X8.8900 Y15.2400
    G82 X6.3500 Y15.2400
    M05
    G00 Z25.4000
    G00 X0.0000 Y0.0000
    M06 T04 (1.0160 )
    G01 Z0.0000 F100.00
    M06
    G00 Z0.5000
    M03
    G04 P1.000000
    G82 X5.0800 Y19.0500 Z-2.0000 F100.00 R0.5000 P0.250000
    G82 X5.0800 Y21.5900
    G82 X5.0800 Y24.1300
    G82 X5.0800 Y26.6700
    G82 X15.2400 Y25.4000
    G82 X15.2400 Y27.9400
    G82 X15.2400 Y30.4800
    G82 X15.2400 Y33.0200
    G82 X20.3200 Y33.0200
    G82 X20.3200 Y30.4800
    G82 X20.3200 Y27.9400
    G82 X20.3200 Y25.4000
    G82 X27.9400 Y25.4000
    G82 X27.9400 Y22.8600
    G82 X27.9400 Y27.9400
    G82 X27.9400 Y30.4800
    G82 X27.9400 Y33.0200
    G82 X27.9400 Y35.5600
    G82 X27.9400 Y38.1000
    G82 X27.9400 Y40.6400
    G82 X27.9400 Y43.1800
    G82 X27.9400 Y45.7200
    G82 X27.9400 Y48.2600
    G82 X27.9400 Y50.8000
    G82 X41.9100 Y55.8800
    G82 X44.4500 Y55.8800
    G82 X46.9900 Y55.8800
    G82 X49.5300 Y55.8800
    G82 X52.0700 Y55.8800
    G82 X52.0700 Y60.9600
    G82 X49.5300 Y60.9600
    G82 X46.9900 Y60.9600
    G82 X44.4500 Y60.9600
    G82 X41.9100 Y60.9600
    G82 X43.1800 Y50.8000
    G82 X43.1800 Y48.2600
    G82 X43.1800 Y45.7200
    G82 X43.1800 Y43.1800
    G82 X43.1800 Y40.6400
    G82 X43.1800 Y38.1000
    G82 X43.1800 Y35.5600
    G82 X43.1800 Y33.0200
    G82 X43.1800 Y30.4800
    G82 X43.1800 Y27.9400
    G82 X43.1800 Y25.4000
    G82 X43.1800 Y22.8600
    G82 X40.6400 Y22.8600
    G82 X38.1000 Y22.8600
    G82 X38.1000 Y8.8900
    G82 X35.5600 Y8.8900
    G82 X40.6400 Y8.8900
    G82 X43.1800 Y8.8900
    G82 X45.7200 Y8.8900
    G82 X48.2600 Y8.8900
    G82 X50.8000 Y8.8900
    G82 X54.6100 Y22.8600
    G82 X57.1500 Y22.8600
    G82 X59.6900 Y22.8600
    G82 X62.2300 Y22.8600
    G82 X64.7700 Y22.8600
    G82 X67.3100 Y22.8600
    G82 X69.8500 Y22.8600
    G82 X72.3900 Y22.8600
    G82 X74.9300 Y22.8600
    G82 X77.4700 Y22.8600
    G82 X77.4700 Y15.2400
    G82 X74.9300 Y15.2400
    G82 X72.3900 Y15.2400
    G82 X72.3900 Y8.8900
    G82 X74.9300 Y8.8900
    G82 X77.4700 Y8.8900
    G82 X72.3900 Y40.6400
    G82 X69.8500 Y40.6400
    G82 X60.9600 Y40.6400
    G82 X58.4200 Y40.6400
    G82 X58.4200 Y59.6900
    G82 X60.9600 Y59.6900
    G82 X69.8500 Y59.6900
    G82 X72.3900 Y59.6900
    G82 X10.1600 Y49.5300
    G82 X7.6200 Y49.5300
    G82 X5.0800 Y49.5300
    G82 X5.0800 Y41.9100
    G82 X7.6200 Y41.9100
    G82 X10.1600 Y41.9100
    M05
    G00 Z25.4000
    G00 X0.0000 Y0.0000
    M06 T05 (3.1750 )
    G01 Z0.0000 F100.00
    M06
    G00 Z0.5000
    M03
    G04 P1.000000
    G82 X7.6200 Y35.5600 Z-2.0000 F100.00 R0.5000 P0.250000
    G82 X54.6100 Y35.5600
    G82 X77.4700 Y35.5600
    G82 X42.5450 Y67.3100
    G82 X42.5450 Y3.8100
    T01
    G00 Z2.0000
    M05
    M02

  3. #3
    Join Date
    Mar 2004
    Posts
    1661

    Re: Error with PCBGCODE drill file

    Shouldn't the tool command be issued earlier? I think you should move it:

    G90
    M06 T01 (0.6000 )
    S12000
    G00 Z2.0000
    G00 X0.0000 Y0.0000
    M03
    G04 P1.000000
    M05
    G00 Z25.4000
    M06 T01 (0.6000 )

  4. #4
    Join Date
    Jul 2013
    Posts
    27

    Re: Error with PCBGCODE drill file

    G00 Z2.0000
    G00 X0.0000 Y0.0000
    M03
    G04 P1.000000
    M05
    G00 Z25.4000
    M06 T01 (0.6000 )
    G01 Z0.0000 F100.00

    Looks to me like it's ok. It moves z to 2mm (my clearance height), then it bring it to the home position, then spindle on (why???), then a dwell to let it spin up, then spindle stop, then z up to 25.4mm, then the tool change. It all makes sense to me, asides from the spindle on for no reason. What is it that you see in the code that makes you think it should be higher up? Thanks for the reply BTW, im so confused...

  5. #5
    Join Date
    Mar 2004
    Posts
    1661

    Re: Error with PCBGCODE drill file

    I was guessing that you've had a command that needed a tool and I didn't check for one. Like said, guessing.
    But after some googling - it is actually the top hit in the search for "linuxcnc Need tool prepared" - I think I know your problem. Your post processor is making several M06 without a T-parameter. Remove those lines or adjust them to correct settings.

    For reference, this thread is the first hit by Google.
    http://www.linuxcnc.org/hardy/index....or-toolchangeq

  6. #6
    Join Date
    Jul 2013
    Posts
    27

    Re: Error with PCBGCODE drill file

    I had seen that post but I assumed that since there was an initial M06 WITH a T parameter that the rest would work. I'll try removing all the M06s without the T param and let you know how it goes. Thanks!

  7. #7
    Join Date
    Mar 2004
    Posts
    1661

    Re: Error with PCBGCODE drill file

    And know?

Similar Threads

  1. need help with eagle to pcbgcode output
    By bizzz3 in forum PCB milling
    Replies: 4
    Last Post: 11-04-2014, 01:59 PM
  2. Any way of scaling an NC drill file
    By Beefy in forum PCB milling
    Replies: 1
    Last Post: 10-29-2014, 04:13 AM
  3. How to make a drill file?
    By TigerPilot in forum PCB milling
    Replies: 0
    Last Post: 10-31-2008, 04:34 AM
  4. NEW pcb drill hole file conversion TO G code
    By NASR1 in forum Mach Mill
    Replies: 0
    Last Post: 02-24-2008, 05:58 PM
  5. EaglePCB Drill file
    By TigerPilot in forum G-Code Programing
    Replies: 2
    Last Post: 04-27-2005, 11:39 PM

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
  •