Re: Guide pins on smd solder mask.. #pcbgcode


peterg1000
 

Finally I have tracked down the code in "pcb-gcode.ulp" that does the calculations for tool diameter compensation.  Note that tool diameter ends up being divided by 4  in hx and hy !!!!! Hence my problem. 

                        // Tool size compensation
                        dx -= tool_dia / 2; dy -= tool_dia / 2;                                      // My note  - divided by 2

                        // Carve out the pad
                        if (dx > 0 && dy > 0) {
                            int hx = dx / 2, hy = dy / 2;                                                //My note - divided  by ANOTHER 2 !!!!

I think if the last line is modified to be :-

                           int hx = dx , hy = dy 

then the resulting smd stencil cutout will be exactly as defined in Eagle.

Join pcbgcode@groups.io to automatically receive all group messages.