Skip to content

Holes for THT elements are not drilled in milldrill.ngc #728

@tomasz90

Description

@tomasz90

Description of bug:

What did you try (include command-line arguments):

  1. I created project in easyeda that includes tht elements
  2. Having pcb2gcode config I generated gcodes

What happened:

Holes for tht elements are not drilled (I dont want to drill them on the back side, all on the front)

What did you expect to happen:

Holes for tht components are drilled in milldrill.ngc

pcb2gcode version (run pcb2gcode --version to see this):

2.5.0
Git commit:
Boost: 108800
Gerbv: 2.10.0
Geos: Not installed

Gerber_ant-cnc-probe_PCB_ant-cnc-probe_2025-08-14.zip

Config:

# Pcb2GCode 

# General settings
metric=true                                         # Use mm to read the following values (feeds/speeds/etc.), not imperial inches
metricoutput=true                                   # Same, but for the output
zero-start=true                                     # Start from 0,0,0
zsafe=1                                             # Safety height
zchange=10                                          # Height to change a tool - don't over-do it to avoid crushing your Z axis
software=custom                                     # We're not using Mach or LinuxCNC
mirror-axis=0                                       # Mirror the design to X. Required for the back side
#preamble=/Users/tomasz/pcb2gcode/preamble.ngc      # Gcode preamble file, inserted at the very beginning (here run spindle)
#postamble=/Users/tomasz/pcb2gcode/postamble.ngc    # Gcode postamble file, inserted at the very end (here stop spindle)
front=Gerber_TopLayer.GTL
back=Gerber_BottomLayer.GBL
outline=Gerber_BoardOutlineLayer.GKO
drill=Drill_NPTH_Through.DRL

# Milling - Trace engraving
zwork=-0.035mm           # Depth of engraving - did  quite a lot of testing and it seems 0.07 is quite consistent
mill-feed=60            # How fast to go, in mm/min (was 100, but scratching and vibrating)
mill-speed=70          # How fast to rotate the spindle in RPM
mill-diameters=0.2mm   # Caluclated by pcb_mill_calc.py - 0.30mm for 0.2mm 60 degree endmill
isolation-width=0.40mm  # Space between traces - I recommend higher than 0.5mm to be MUCH easier to sold and avoid bridges
milling-overlap=20%     # How much should the passes to create the isolation width overlap - 20% is good

# Drilling
milldrill=true
onedrill=true
zdrill=-1.5                         # Depth to drill a hole, +0.1mm than the board thickness to have clean holes
zmilldrill=-1.5                     # Same but for milldrill
drill-side=front                    # Drill the board from the (front/back/auto) side
drill-feed=5                        # Lower Z during drilling at 25mm/s - don't go much higher, CNCs don't like drilling
drill-speed=70                      # How fast to rotate the spindle in RPM
drills-available=0.9mm          # Available drill diameters - You "should" have all the diameters smaller than your milldrill bit, if you don't have one it will be rounded to the colsest one you have (0.3mm,0.4mm,0.5mm,0.6mm,0.7mm,0.8mm,0.9mm)
milldrill-diameter=0.9mm            # Diameter of the milldrill endmill - I suggest 1mm as you have much less toolchanges and it lasts quite long
min-milldrill-hole-diameter=0.9mm   # Minimum diameter to milldrill - should be the same with your milldrill diameter

# Outline
zcut=-1.5               # Depth of cut for the outline
cut-side=front          # Cut the board from the (front/back)
cut-feed=30             # How fast to cut the board in mm/min
cut-vertfeed=15         # How fast to plunge into the board - don't go much higher (25)
cut-speed=10000         # How fast to run the spindle in RPM
cut-infeed=0.85         # Do the cutting in multiple passes, 0.85mm each - maybe this isn't needed
cutter-diameter=0.9mm   # Diameter of the cutter - use the milldrill bit
bridges=4               # Width of each tab to avoid flying PCBs after the outline is done
bridgesnum=2            # Number of tabs
zbridges=-1.2           # Z height while cutting tabs, -1.2 will result in 0.4mm tabs - 0.4mm is ok

# GRBL shenanigans
nog64=true              # G64 is not supported by GRBL
nog81=true              # https://github.com/gnea/grbl/issues/290
nog91-1=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions