MeanderBolt wrote:Hey Scott, what "G-Code Style" do you choose on your PCB-GCode? I am looking at all these options and my brain just returns (???). I am just about to run my first board. I am going to also be trying the auto leveling in ChiliPeppr. BTW, thanks for all these settings. I will add this to the global pcb thread I started last week.
I just have one pad I have to figure out. It is all smd and I have one pad I need to get connected to ground, but it is mostly surrounded. I could use a jumper, but I am still trying to solve it (without having to run a ridiculous line all the way around the thing. Heh.
I made my own G-Code style (shapeoko.pp) file. It belongs in \pcb-gcode\profiles\ directory
If I'm making a single sided PCB and want to avoid a long trace, in Eagle I'll make a trace on the top, but in reality trace will be a jumper wire. When I do this I like to make sure my top trace is a single straight wire. Also, I make the vias for this trace bigger then the default, so it's more like a normal solder pad. To make the via bigger click on the info tool, then click on the via to see it's settings. I like to use round shape, and I manually set the drill diameter and OD. I usually make the drill about 0.039, but this will actually just be whatever drill you use in the shapeoko. I make the OD about 0.076.
I also made my own drill file (shapeoko.drl). What this does is tell pcb-gcode to combine a range of drill sizes into one size. If you don't, then your shapeoko will go through a drill change move for every drill size. A drill change move is where the shapeoko goes to 0,0 position so you can change the drill. This is fine if you really want to change the drill, but if I have one hole that 0.039 and another that's 0.041, I'm going to use the same drill. I do want mounting holes to be separate because they are a much bigger drill. Here's how I have my drill file setup:
tool drill_size minimum maximum length
T01 0.0240in 0.0000in 0.0240in 1.5in
T02 0.0620in 0.0241in 0.0999in 1.5in
T03 0.1250in 0.1000in 0.1500in 1.5in
The drill file belongs in \pcb-gcode\settings\ directory
There's another file I modified that also goes in \settings\ directory. It's called user-gcode.h. The lets me customize some of the g-code output. The main thing I do is use it to set my work coordinates. I have my machine setup so work coordinates G55 are used for any bottom etching, milling, etc. And work coordinate G56 is used for the top. In my setup I register the PCB on the left-front edges (from shapeoko's perspective). When I flip it over to do the other side, it still registers the left front sides, but from the PCBs point of view, the edge that was on the left is now on the right. So basically I have to shift the work coordinate system the width of the PCB. I don't know if I'm explaining this very well. Work coordinates can be a bit confusing at first, but once you get the hang of them, they are a big benefit
Another feature I HIGHLY recommend is get a touch plate to automatically set your z-height above the PCB. This has saved me a lot of time fiddling with the height.
To use the touch plate, I jog so the bit is close, then issue this command:
G20 G38.2 Z-2 F0.118
This will make the z-axis feed down slowly until it touches the plate. Then to zero the z-axis, I issue this command
G20 G92 Z0.7874
My touch plate is 0.7875 inches high (20 mm)
Then I manually jog the z-axis up a bit and remove the touch plate.
I hope this helps. I zipped all 3 files mentioned and attached them