Line Grinder
Gerber Plot to Isolation Milling GCode Software

What You Really Need To Know

 

All PCB Design Software Outputs Multiple Files for One Circuit Board

PCB Design software maintain the border, trace and pad information (and more) in multiple layers. These layers when written out as Gerber or Excellon plots, manifest themselves as separate files. Each file contains different information regarding the PCB and each will require different processing. For example, the file containing the bottom copper trace information needs to be converted to Isolation GCode but the file which details the PCB border needs to be converted to Edge Milling GCode in order to cut out the PCB from the larger material. Usually these files have the same leading part of the filename and a slightly different terminating part. The filename is used by the Line Grinder software to figure out how to process that file.

You need add or configure pads called Reference Pins on your PCB Design

Reference Pins are pads of a pre-determined size that you place on the PCB board before you save it as a Gerber plot. Line Grinder finds these pads (and it can tell they are for the Reference Pins because you define them to be that specific size) and uses them to align the top and bottom layers. This makes the pads for the board components line up when you drill through from top to bottom. If you board already has mounting holes in it you can just define those as Reference Pin pads. If you do not wish to have holes in your PCB, you can define Reference Pin pads which are not on the board. There are a few simple rules regarding acceptable Reference Pin pads: the pads must be of a specific (user defined) size and no other pads on the PCB should be of that size; the Reference Pin pads should be arranged in a rectangular formation which is parallel to the X and Y axis; all Reference Pin Pads must all be equal distances from the PCB border.

File Managers Contain the Conversion Information

The Line Grinder software reads Gerber and Excellon files and converts them to GCode. This conversion process necessarily requires a lot of configurable parameters. These parameters are stored internally in an object called a File Manager. File Managers are created and configured on the Settings tab of the Main form.

A File Manager is Found by Matching File Name Patterns

The method of operation is to attempt to find a matching File Manager as soon as a Gerber or Excellon file is opened. The search for the File Manager is conducted solely on filename similarity. In other words, if you have a File Manager tagged with a file name pattern of Bottom Copper.gbr and open a file called MyPCB_Test5 - Bottom Copper.gbr then that File Manager will be used to process the file contents.

It is Up To You to Create the File Managers

If a File Manager cannot be found, then you will get an message box telling you that you need to create one. In short, no File Manager, then no GCode. It is easy to create a new File Manager. Just press the Add button on the Settings tab.

A File Manager Determines the Type of GCode Created

File Managers, besides providing the configuration information for the conversion to GCode, also dictate what sort of conversion happens to the file. In other words, if the File Manager Bottom Copper.gbr mentioned above was configured to produce Isolation GCode then you get Isolation GCode output. If it is configured to produce then that is what you get. The options displayed with each File Manager are specific to the type of output it will produce. You specify the type of output (called the OperationMode) when you create the File Manager.

New Tabs Appear in the Line Grinder Display When There is Content to Fill Them

For both Gerber and Excellon files, a new tab with the file content appears once the file is opened. In order to simplify the user interface, the unused tabs are hidden until you do something that will fill them with content. For example, if you open an Excellon file you can see the Excellon file contents, if ou convert a Gerber plot to Isolation GCode you will get a new tab displaying the GCode content.

The Plot View Tab can be Used to Display the Gerber Plot

Once you have opened the Gerber file, you can view it using the graphical display on the Plot View tab. The name of the active File Manager for that Gerber file will be listed on the bottom right hand corner of the Plot View tab. Excellon files cannot be viewed graphically mostly because the plotting engine for it hasn't been written yet.

Converting To GCode is Simple: Just Press the Button

Assuming you have set up the File Manager correctly the conversion process is simple. Just press the Convert to GCode button and the process is started. The length of time the conversion process takes depends on the size of the PCB board and the speed of the PC. Larger boards take longer, even if they are relatively empty of traces - that's just the way the algorithm works.

The Plot View Tab can be Used to Display the GCode Plot

After conversion, the GCode output will appear in one or more newly created tabs. At this time you can also view the GCode plot using the options on the Plot View tab. This view can be magnified and scrolled to show you what the PCB should look like when the GCode is run.

Carefully Inspect the GCode Plot. Inappropriate Settings can Generate Invalid GCode

You will need to look very carefully at the GCode plot in order to ensure you are happy with what has been generated. It is possible, if the File Manager settings are inappropriate or incorrect to generate GCode in which the PCB traces are not electrically isolated. For example, if you configure the width of the isolation milling bit (IsoCutWidth) to be 0.01 inches in the File Manager and the Gerber file actually contains two objects 0.005 inches apart then the milling bit cannot "get between them" to remove the copper and they will be left electrically connected. Be aware that this version of Line Grinder cannot detect such occurences and no error message will be reported. It is up to you to thoroughly check the GCode plot output and the actual routed board in order to ensure the traces are electrically correct.

Saving the GCode is Simple: Just Press the Button

Once the file has been converted to GCode, the appropriate Save and Save As buttons on the right hand side of the Main Form will become active. Just press these to save the GCode file. The default name for the GCode file will be determined by the settings in the active File Manager.

In summary the process is: Configure the File Managers, Open the File, Create the GCode and Save the GCode. Of course, there is a bit more to it than that, and there are practical matters to consider - but the concept is simple.

You May Wish to Generate Drill GCode

Most PCB software will output a drill file in the Excellon format. This file will, when run on an appropriate machine, drill the holes for the pads and vias on the circuit board. The Line Grinder software can read an Excellon file and generate appropriate Drilling GCode for this purpose. Since these drilling operations will necessarily drive the drill through the bottom of the PCB, the PCB being milled is usually fixed to a "throw away" piece of wood rather than directly to the bed of the mill.

It is Possible to Generate Bed Flattening GCode

The drilling operations (for the Reference Pins and Excellon Files) necessarily drive a cutting tool through the bottom of the PCB. For this reason, the PCB being milled is usually fixed to a "throw away" piece of wood rather than directly to the bed of the mill. Since this wood is unlikely to be perfectly flat with respect to the toolhead it is advisable to mill it flat before fixing the blank PCB to it. The Line Grinder software can generate appropriate Bed Flattening GCode for this purpose.