Skip to content

Commit

Permalink
test: Add drills larger than the min-milldrill-hole-diameter
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Sep 10, 2022
1 parent 2805c12 commit 727f8b2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 36 deletions.
41 changes: 10 additions & 31 deletions testing/gerbv_example/milldrilldiatest_units/expected/drill.ngc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
( pcb2gcode 2.4.0 )
( Software-independent Gcode )

( This file uses 4 drill bit sizes. )
( Bit sizes: [0.4mm] [0.6mm] [0.8mm] [1mm] )
( This file uses 2 drill bit sizes. )
( Bit sizes: [0.45mm] [0.6mm] )

G94 (Millimeters per minute feed rate.)
G21 (Units == Millimeters.)
Expand All @@ -14,7 +14,7 @@ G00 Z10.00000 (Retract)
T1
M5 (Spindle stop.)
G04 P1.00000
(MSG, Change tool bit to drill size 0.4mm)
(MSG, Change tool bit to drill size 0.45mm)
M6 (Tool change.)
M0 (Temporary machine stop.)
M3 (Spindle on clockwise.)
Expand All @@ -36,35 +36,14 @@ M3 (Spindle on clockwise.)
G0 Z1.50000
G04 P1.00000

G81 R1.50000 Z-1.75000 F100.00000 X120.00000 Y-95.08000
G80

G00 Z10.00000 (Retract)
T4
M5 (Spindle stop.)
G04 P1.00000
(MSG, Change tool bit to drill size 0.8mm)
M6 (Tool change.)
M0 (Temporary machine stop.)
M3 (Spindle on clockwise.)
G0 Z1.50000
G04 P1.00000

G81 R1.50000 Z-1.75000 F100.00000 X120.00000 Y-97.62000
G80

G00 Z10.00000 (Retract)
T5
M5 (Spindle stop.)
G04 P1.00000
(MSG, Change tool bit to drill size 1mm)
M6 (Tool change.)
M0 (Temporary machine stop.)
M3 (Spindle on clockwise.)
G0 Z1.50000
G04 P1.00000

G81 R1.50000 Z-1.75000 F100.00000 X120.00000 Y-100.16000
X120.00000 Y-97.62000
X120.00000 Y-95.08000
X130.16000 Y-90.00000
X130.16000 Y-92.54000
X130.16000 Y-95.08000
X130.16000 Y-97.62000
X130.16000 Y-100.16000
G80

G00 Z10.000 ( All done -- retract )
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion testing/gerbv_example/milldrilldiatest_units/millproject
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ cutter-diameter=2.0
zcut=-1.6500
min-milldrill-hole-diameter=1.2
milldrill-diameter=1.0mm
drills-available=0.4,0.6,0.8,1.0,1.2
drills-available=0.45,0.6

0 comments on commit 727f8b2

Please sign in to comment.