Drilling a slot in EasyEADE-Excellon causes key-error?

Issue #381 resolved
Mark Schuurman created an issue

Looking for a solution to the error 'File "D:\1.DEV\FlatCAM_beta\camlib.py", line 2616, in create_data_array' (like issue #370 and #277) I was asked to create my own issue so that my project could be shared.

I suspect this error is thrown when the Excellon tries to create GCode for a slot. Funny thing is: there is no slot on the board, afaik.

In my project, deselecting the first tool (drill bit 0.8mm; 10 slots) in the toolList while creating the drill job, everything works fine. When selecting this tool however, the error is invoked.

Comments (5)

  1. Marius Stanciu

    Hi,

    All the items associated with the Tool Diameter = 0.8mm are defined as slots. See the excerpt from the Excellon file:

    ;Layer: Drill PTH
    ;EasyEDA v6.3.22, 2020-02-26T16:04:40+01:00
    ;f39d333dd86d4bc1b528282db9d90847,d4e27280151540779fdad9f6cefd7e39,10
    ;Gerber Generator version 0.2
    M48
    METRIC,LZ,000.000
    ;Holesize 1 = 0.800 METRIC
    T01C0.800
    ;Holesize 2 = 0.901 METRIC
    T02C0.901
    ;Holesize 3 = 0.915 METRIC
    T03C0.915
    ;Holesize 4 = 1.000 METRIC
    T04C1.000
    ;Holesize 5 = 1.101 METRIC
    T05C1.101
    ;Holesize 6 = 1.200 METRIC
    T06C1.200
    ;Holesize 7 = 1.301 METRIC
    T07C1.301
    ;Holesize 8 = 1.701 METRIC
    T08C1.701
    %
    G05
    G90
    T01
    X+070106Y+058293G85X+070101Y+058293
    X+024259Y+027559G85X+024254Y+027559
    X+037213Y+057023G85X+037208Y+057023
    X+036197Y+019304G85X+036192Y+019304
    X+020322Y+042291G85X+020317Y+042291
    X+003431Y+011303G85X+003426Y+011303
    X+082044Y+058166G85X+082039Y+058166
    X+074424Y+058166G85X+074419Y+058166
    X+065915Y+058166G85X+065910Y+058166
    X+058295Y+058166G85X+058290Y+058166
    

    As it can be seen, all the ‘holes’ associated with tool T01 (which has a defined diameter of 0.800mm) have the G85 command in the middle which signifies that those are actually slots and not drills, which mean that those are to be milled not drilled.

    In any case, I solved the issue.
    The problem was manifesting for a tool that have no drills but only slots.

  2. Mark Schuurman reporter

    Well, that’s pretty fast! Thnx s lot!

    Do I have to reinstall FlatCam to enjoy this fix?

  3. Marius Stanciu

    No Mark, you’ll either wait for the release for the version 8.992 or you could modify the footprints in the EasyEda so they will be actual drill holes and not slots.

  4. Mark Schuurman reporter

    Excellent, Sir!

    I have deleted the strings “G85…” on each line, reloaded the Excellon and created the drill CNCjob easy as usual. U rock!

  5. Log in to comment