Kaorin/cnc.sh

38 lines
1.3 KiB
Bash
Raw Normal View History

2024-07-22 11:10:59 +03:00
#!/bin/sh
2024-07-24 23:03:14 +03:00
/usr/bin/pcb2gcode --voronoi=1 --onedrill --nom6 \
2024-12-13 23:09:42 +02:00
--nog64 \
2024-07-22 11:10:59 +03:00
--back *-B_Cu.gbl \
--front *-F_Cu.gtl \
--drill *-PTH.drl \
2024-07-24 23:03:14 +03:00
--outline *-Edge_Cuts.gm1 \
2024-07-22 11:10:59 +03:00
--metric --metricoutput --optimise --onedrill \
2024-12-13 23:09:42 +02:00
--zsafe 5 --zchange 5 --zcut -1.6 --cutter-diameter .7 --zdrill -1.65 \
--drill-feed 50 --drill-speed 24000 --offset 0.0 --mill-feed 100 --mill-speed 24000 --cut-feed 100 \
2024-07-24 23:03:14 +03:00
--cut-speed 24000 --zwork -0.04 --cut-infeed 2 --fill-outline=true \
2024-07-22 11:10:59 +03:00
--basename pcb \
2024-07-24 23:03:14 +03:00
--vectorial
#--preamble /home/giver/Focus/pcb/pcb2metalab/preamble.ngc \
#--postamble /home/giver/Focus/pcb/pcb2metalab/postamble.ngc \
2024-07-22 11:10:59 +03:00
2024-12-13 23:09:42 +02:00
/usr/bin/pcb2gcode --milldrill-diameter .7 --nom6 --min-milldrill-hole-diameter=3mm \
--nog64 \
--front *-F_Adhesive.gta \
2024-07-22 11:10:59 +03:00
--drill *-NPTH.drl \
--outline *-Edge_Cuts.gm1 \
--metric --metricoutput --optimise --onedrill \
2024-12-13 23:09:42 +02:00
--zwork -0.02 --zsafe 3 --zchange 5 --zcut -1.6 --cutter-diameter .85 --zdrill -1.8 \
--drill-feed 50 --drill-speed 24000 --offset 0.5 --mill-feed 50 --mill-speed 24000 --cut-feed 100 \
2024-07-24 23:03:14 +03:00
--cut-speed 24000 --cut-infeed 2 \
2024-12-13 23:09:42 +02:00
--basename pcbm --nog81 1 \
2024-07-24 23:03:14 +03:00
--vectorial --bridges=0.5000
#--preamble /home/giver/Focus/pcb/pcb2metalab/preamble.ngc \
#--postamble /home/giver/Focus/pcb/pcb2metalab/postamble.ngc \
for a in *ngc; do
sed "/M[025].*/d" < $a > $a.tap
done
rm *svg *ngc