Line Grinder
Gerber Plot to Isolation Milling GCode Software

Configuring Eagle

 

How to use Eagle to Create Gerber Plots for the LineGrinder Software

The Line Grinder software converts the Gerber plots of PCB circuits into GCode which can then be used to create isolation milled circuit boards. The Eagle software (freeware for smaller PCB boards) is one product which can be used to create the PCB designs suitable for isolation milling. There are a number of things you need to know in order to configure Eagle so that it will save Gerber plot files in a format which the Line Grinder can read.

The following is a step-by-step tutorial using the demo2_inch.brd Eagle PCB design sample which is installed with the Line Grinder software in the Examples - Eagle sub folder. Click on any of the images to make them larger.

1) Start Eagle and open the demo2_inch.brd Design

The image below shows the demo2_inch.brd PCB design sample open in the Eagle software.

The Eagle Software

2) Place the First Reference Pin Pad

One of the hardest problems to solve when creating isolation milled circuits is how to align the top and bottom copper layers. Line Grinder resolves this issue by requiring pads of a specific size called Reference Pin pads to be added to the PCB. You determine the size you use and tell the Line Grinder software (in the Isolation Cut File Managers) what that size is. Often the Reference Pin Pads are co-incident with the mounting holes of the PCB. If you do not want these pads on your board (as in the example below) - no problem. Just put them outside the border.

The following steps will now place the first Reference Pin pad. Since we do not want to have any mounting holes drilled on this board we will place the Reference Pin pads outside the PCB border.

  • Click on the Pad Icon The Eagle Pad Icon
  • Click on a point below and to the left of the bottom-left corner to drop a new pad there.
  • Press the Stop Icon to stop Eagle wanting to drop additional pads.
  • Now we have to change the size of the pad. Right click with the mouse on the pad to bring up the context menu and select the Properties option.
  • Change the Diameter option on the properties panel to 0.100. This number is arbitrary and can be another value if you wish. It serves to enable the Line Grinder software to distinctly identify the Reference Pin Pads. No other pads on the board should be this size.
  • The image below shows the bottom left Reference Pin pad once it has been sized and positioned. Note that it is centered over a grid dot. This will make it easy to place the other Reference Pin Pads an identical distance from the border.

    Set the First Reference Pin Pad

    3) Place the Other Reference Pin Pads

    The main thing about the Reference Pin pads is that they must be of a known unique size, they must be in a rectangular formation and they must be the same distance from the board edges. They can be inside or outside the board - but it is critical that they are equidistant from the edges. You must have at least two Reference Pin Pads. If the IsoFlipMode in your Isolation Cut File Manager is Flip_X then the Reference Pin pads must be on the same line parallel to the X axis. Similarly if the IsoFlipMode in your Isolation Cut File Manager is Flip_Y then the Reference Pin pads must be on the same line parallel to the Y axis. In general it is easier to just put four Reference Pin Pads on the PCB - each equidistant from a border corner.

    Note the easy way to create the rest of the Reference Pin pads is just to copy the first pad placed in the step above and then paste it into the design where needed. Once dropped in place, you can easily drag the pad about to get the position right.

    The image below shows the PCB with four Reference Pin pads placed. Click on the image to enlarge it and note that the pads are equidistant from the border edges and are in a strict rectangular formation.

    Set All Reference Pin Pads

    4) Adjust the eagle.def File

    Now that the Reference Pin pads have been placed on the PCB, it is time to save the design as Gerber and Excellon files. These files are what the Line Grinder software will read in order to produce the Isolation Milling GCode (and other useful GCode as well). Before we do that we have to adjust a few settings in the section of the eagle.def file which controls the codes emitted to the Gerber plot files. If we do not do this Eagle will include lines of code in the Gerber output which the Line Grinder software will not be able to process. The steps below describe the proceedure.

  • Open the eagle.def file in any text editor. The eagle.def file can be found in the bin directory just below your Eagle software installation.
  • Save a copy of the eagle.def file so you can recover from any changes if you need to do so.
  • Find the section in the eagle.def file entitled [GERBER_RS274X]. This will be the the name of the Gerber Output Device we will choose in later steps.
  • We need to remove the line starting AMOC8 and the line below it. We do this by placing semi-colons in the appropriate places. The image below shows the adjusted lines. Note particularly, that a semi-colon is required to terminate the line above the AMOC8 string.
  • The line starting with the text ;Octagon needs to be uncommented (remove the semi-colon) and the line below it starting with the text Octagon needs to be commented out by adding a semi-colon in front of it.
  • The image below shows the eagle.def file after the adjustments have been made. Note carefully the placement of the semi-colons - the appropriate areas have been highlighted in red.

    eagle.def File Adjustment

    5) Open the Gerber Output Form And Set the Output Device

    Now that eagle.def file has been adjusted, it is time to save the design as Gerber and Excellon files. These files are what the Line Grinder software will read in order to produce the Isolation Milling GCode (and other useful GCode as well). Click on the File menu item at the top of the screen and then choose the CAM Processor ... sub item. Set the Device option to GERBER_RS274X. This will invoke the output using the settings adjusted in the eagle.def file in the step above. The Gerber Output Form is seen in the image below.

    Gerber Output Form

    6) Save the Plot Outputs

    Eagle does not seem to have a method of automating the output of the Gerber files or saving the configurations. This means that each plot must be saved individually and the appropriate file name specified for it when the output is saved. The discusson below illustrates this process for the traces and pads associated with the Bottom Copper layer.

  • Set the File field to a name of your choice. It is best to apply a consistent file extension here so that the appropriate File Manager in the Line Grinder software gets associated with it. For a bottom copper layer, a name of demo2 Bottom.gbr would be appropriate. An Isolation Cut File Manager can be set up with a FilenamePattern which will cause it to trigger on the trailing Bottom.gbr part of the filename and generate the appropriate isolation cut GCode when that file is opened.
  • The layers associated with this plot output will need to be individually chosen. For a bottom copper layer only layers Bottom, Pads and Vias (layers 16, 17 and 18) will need to be selected in the panel on the right hand side. This is shown in the image below. Be sure to scroll down and unselect any layers at the bottom of the list.
  • Press the Process Job button to create the Gerber Output.
  • The image below show the Eagle CAM Proceesor output form just before the bottom copper Gerber code is saved..

    Gerber Output Form Configured

    7) Output the Remaining Gerber and Excellon Plots

    As mentioned above, the other plots (top copper, board outline) will need to be output. This can be done using the methodology described in step 6. Appropriate values for these layers are:

    Top Copper Layer
    For a top copper layer only layers Top, Pads and Vias (layers 1, 17 and 18) will need to be selected in the panel on the right hand side. A suitable file name would be demo2 Top.gbr.
    PCB Border Layer
    For a PCB border only the Milling Layer (layer 46) will need to be selected in the panel on the right hand side. A suitable file name would be demo2 Outline.gbr.
    Drilling Layer
    For drill file output set the Device to EXCELLON rather than GERBER_RS274X. For Excellon output only layers Drills and Holes (layers 45 and 46) will need to be selected in the panel on the right hand side. A suitable file name would be demo2 Drill.gbr.

    8) Process the Gerber and Excellon Files in the Line Grinder Software

    At this point, the files are ready to be read by the Line Grinder software. Once the Line Grinder software is started you will need to create some File Managers - and configure them to settings suitable for your purposes. There is a button on the Settings Tab entitled Add Managers for Eagle that can be used to create a useful set of File Managers to get started with. You will need to adjust the settings as appropriate.

    Note that the default setting for the Reference Pin pads is 0.125 inch and the above discussion sets the pins to a value of 0.100 inch. Using the default settings, the Line Grinder software will not be able to find the Reference Pins, and will return an error message when the file is opened. Change the ReferencePinPadDiameter setting in the IsolationCut File Managers for the Top and Bottom Copper layers to a value of 0.100 to fix this problem.

    The image below shows the demo2 Top.gbr file after conversion to Isolation GCode in the Line Grinder software.

    Line Grinder Displaying Isolation GCode