Generate top and bottom g-code files for milling

If we will mill into the bottom side, we must set the parameter for x axis mirroring. Following command generates appropriate g-code file for bottom (x-axis mirrored) side:

                  

./fpcconvert.sh -c examples/niveaDice/fpcconvert.conf -xm examples/niveaDice/niveaDice.fpc -fgcode -o examples/niveaDice/niveaDice.bot.ngc -lbottom                  

                            

If we have a double sided PCB, we should also generate the g-code file for top layer:


./fpcconvert.sh -c examples/niveaDice/fpcconvert.conf -m examples/niveaDice/niveaDice.fpc -fgcode -o examples/niveaDice/niveaDice.top.ngc -ltop


                            

Note: In this case we assumed the project as one-sided and there no copper area created on top layer. This leads to wrong result shown in Figure 2.6, “Top layer”. A way how to fix it, is to remove RESIDUAL_COPPER from MILL_ORDER:

                           
MILL_ORDER = BOARD NETS UNCONNECTED_PADS THERMAL_PADS THERMAL_VIAS TEXTS

                            

Figure 2.5. Bottom layer


Figure 2.6. Top layer