Documentation

Gerber: Difference between revisions

 
(71 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|cellpadding=15
{|cellpadding=15
|[[Image:gerberrs274d.png|alt="Gerber rs 274 d"]]<br>[[Image:gerberrs274x.png|alt="Gerber rs 274 x"]]||See also:<br>
|[[Image:gerberrs274d.png|alt="Gerber rs 274 d"]]<br>[[Image:gerberrs274x.png|alt="Gerber rs 274 x"]]||
[[Gerber Special]]<br>
[[Drill Output]]<br>
[[Problems with the import of X-Gerber]]<br>
[//server.ibfriedrich.com/download/xgerber/target3001_xgerber.zip Sample Gerber files] of a [//server.ibfriedrich.com/download/xgerber/PIC_3D_four_layer.T3001 sample project]<br>
|}
|}


== General ==
== General ==


Creating Gerber data in TARGET 3001! is a matter of seconds. The specialty of this Gerber driver is that Extended '''Gerber (RS-274-X)''' is generated but nevertheless those data can be read by "standardGerber machines too because only the old Gerber commands  '''(RS-274-D)''' are used. Gerber aperture data are generated, superfluous for CAM factories working with Extended Gerber but necessary for CAM factories working with standard Gerber( RS-274-D). An additional info text file is generated plain talking what is wanted from the manufacturer.<br><br>
If you want to order the layout of a PCB project from an industrial manufacturing company, you will be asked for data in '''Gerber''' format. This means the so-called extended Gerber (RS274X), or XGerber, which is what TARGET generates. The old standard Gerber (RS274D), which is no longer a standard at all, is obsolete now and should no longer be used. The difference between the two is that Gerber RS274D needs an extra file for the aperture information. All aperture information is automatically built in to XGerber. Old Gerber machines that expect Gerber RS274D can still read the Gerber data from TARGET nevertheless. Creating Gerber data in TARGET 3001! is a matter of seconds.<br><br>TARGET is ready for GerberX2 and GerberX3.<br><br>




== Creation of Gerber data from TARGET 3001! ==
== Creation of Gerber data from TARGET 3001! ==
   
   
After you had finished your layout/routing work, please use the [[Menu File]] / [[Input/Output Formats]] / [[Production]] / "(X-)Gerber and drill output PCBout" The following dialog opens:<br><br>
After you had finished your layout/routing work, please use the [[Menu File]] / [[Input/Output Formats]] / [[Production]] / "(X-)Gerber and drill output PCBout", or simply use functional key '''[F11]''' or in the layout view press this icon from the toolbar at the top<br><br>[[image:cambutton.jpg]]<br><br>


For the following explanations we use the demo project '''pic_3d.T3001'''<br>


The following dialog opens:<br><br>


[[Image:e_GerberAndDrillOutput.jpg|none|The Create TARGET 3001! CAM-Data dialog]]Image: The Create TARGET 3001! CAM-Data dialog<br><br>
[[Image:GerberAndDrillOutput_e.jpg|none|The Create TARGET 3001! CAM-Data dialog]]Image: The Create TARGET 3001! CAM-Data dialog<br><br>


The list shows the Gerber files going to be created (see extensions in brackets) which will be sufficient to manufacture your board.  The number and kind of Gerber data depend on the complexity of your project. TARGET recognizes it and puts the expected files to this list. The ones of which you tick or untick the boxes will be generated. Choose a destination directory for saving the files. Now press the '''Start''' button. That is all.<br><br>


If you are a PCB manufacturer, please find a set of [//server.ibfriedrich.com/download/xgerber/target3001_xgerber.zip sample Gerbers] to check their matching with your production processes. These Gerbers are based on this project: [//server.ibfriedrich.com/download/xgerber/PIC_3D_four_layer.T3001 sample project]<br><br>
The XGerber data are generated to the desired directory. That's what they show up for this example:<br><br><br>


[[Image:Gerberdaten_def.jpg|none|These Gerbers are created from the Pic_3D.T3001 example file]]Image: These Gerbers are created from the Pic_3D.T3001 example file<br><br><br>


The list shows the Gerber files going to be created (see extensions in brackets) which will be sufficient to manufacture your board.  The number and kind of Gerber data depend on the complexity of your project. TARGET recognizes it and puts the expected files to this list. Choose a directory for saving the files (in the dialog bottom left). With button '''Special>>''' set further specifications if necessary. What's behind this button please see in detail here: [[Gerber Special]].  An option to set Gerber X2 please find there as well.<br>


Now press the '''Start''' button.<br><br>
Hand out those files to your PCB manufacturer. The *.zip file provided contains them all. The *.info file can be opened by any text editor and informs your PCB manufacturer in clear words which Gerber files are given regarding this special project. So he can check whether all files had arrived at him. For the project file in our example, the *.info file looks like this:
[[Image:GerberpicInfo.jpg|none|Contents of the Gerber-Info file]]Image: Contents of the Gerber-Info file based on the project shown<br><br>


'''Selection of Gerber data''' <br><br>


[[image:gerberdataselection.jpg|Selection of data when creating Gerbers]]<br>Image: Data selection when creating Gerbers<br><br>
The "Selection" option refers to the ability to design multiple sub layouts within one project. You can give this name and output its Gerber data separately. At this point, select the name of the sub-layout whose Gerber data you want to create. Read more about it here: [[Multiple PCBs within one project]]<br><br>


[[Image:e_GerberAndDrillOutput2.jpg|none|Special settings can be done]]Image: The Create TARGET 3001! CAM-Data dialog opened for Special settings<br><br>


=== Extension Special ===


[[Image:e_GerberAndDrillOutput2.jpg|none|Special settings can be done]]Image: The Create TARGET 3001! CAM-Data dialog opened for Special settings<br><br>


Now the XGerber data are generated to the desired directory. That's what they look like for this example:<br><br><br>
With button '''Special>>''' set further specifications if necessary. If your pcb house should ask Gerber files with different extensions from you please press the [[Gerber_Special|Special>>]] button. This will extend the Gerber dialog and at the bottom to the right give opportunity to choose different extensions (button "Standard").<br><br>
 
Follow the link for detailed information.<br><br>
 
 
[[Image:Gerberdaten.jpg|none|These Gerbers are created from the Pic_3D.T3001 example file]]Image: These Gerbers are created from the Pic_3D.T3001 example file<br><br><br>
 
 
 
Hand out those files to your PCB manufacturer. The *.info file can be opened by any text editor and informs your PCB manufacturer in clear words which Gerber files are given regarding this special project. So he can check whether all files had arrived at him. For the project file in our example, the *.info file looks like this:
 
[[Image:e_gerberinfo.jpg|none|Contents of the Gerber-Info file]]Image: Contents of the Gerber-Info file based on the project shown<br><br>




_____________________________________________________________<br>
=== Important technical note for PCB manufacturers ===
'''Important technical note for PCB manufacturers:'''<br>


from version 17.4.0.23 the order of the copper layers is numbered from top to bottom:<br><br>
from version 17.4.0.23 the order of the copper layers is numbered from top to bottom:<br><br>
Line 69: Line 60:
In earlier versions copper layers were counted from bottom to top.<br><br>
In earlier versions copper layers were counted from bottom to top.<br><br>


_____________________________________________________________


<br><br>
=== Sample project ===
 
please have a look here:<br>
[//server.ibfriedrich.com/download/xgerber/target3001_xgerber.zip Sample Gerber files] of a [//server.ibfriedrich.com/download/xgerber/PIC_3D_four_layer.T3001 sample project]<br>
 
 
=== Gerber X2 ===
 
 
[[image: Logo_gerberx2.jpg|Image property: Ucamco|none]]<br>
 
 
TARGET can automatically provide Gerber X2 information: check the box in the '''[[Gerber Special|Special>>]]''' section of the Gerber dialogue.
 
 
[[image:gerberx2_gerberx3_e.jpg|none]]<br><br>
 
 
The Gerber files then give information about their content (e.g. copper bottom). All elements "know" which signal and/or component they belong to. This is very useful for e-testing.<br><br>
 


If your pcb  house should ask Gerber files with different extensions from you please press the [[Gerber_Special|Special>>]] button. This will extend the Gerber dialog and at the bottom to the right give opportunity to choose different extensions (button "Standard").<br><br>
[[image: GerberX2_e.jpg|none]] Header information of layer "Copper bottom": With Gerber X2 (left), without Gerber X2 (right).<br><br><br>


== Selection of Gerber data ==
[[image: GerberX2_def.jpg|none]]Additional Gerber information: With Gerber X2 (left), without Gerber X2 (right).<br><br><br>


[[image:gerberdataselection.jpg|Selection of data when creating Gerbers]]<br>Image: Data selection when creating Gerbers<br><br>
=== Gerber X3 ===
The "Selection" option refers to the ability to design multiple sub layouts within one project. You can give this name and output its Gerber data separately. At this point, select the name of the sub-layout whose Gerber data you want to create. Read more about it here: [[Multiple PCBs within one project]]<br><br>


[[Image: Logo_gerberx3.jpg|Imageproperty: Ucamco|none]]<br>


Also the Gerber X3 output feature is on board. Tick the box to have them generated (see diolog at Gerber X2 information). Gerber-X3 data additionally provide information for production, testing, ordering and (automatic) assembly. The Gerber-X3 format is free, open documented and easy to understand. It consists of two additional files '''*.X3B''' and '''*.X3T''' for assembly '''B'''ottom and '''T'''op. These are always included to the output. If not needed, ignore!


Component information are those being entered in the symbol change dialogue to the new Order No. button: Distributor and Order Number Double-click on the handle cross of a symbol in the sectoral plan to open the dialogue:<br><br>


== Read in of Gerber data to TARGET 3001! (Gerber viewer?) ==
[[Image:oder_no_button.jpg|none]]Image: Distributor and order number on file<br><br>
In the Gerber data both Gerber X3-Files appear.


[[Image:Gerberx3_files_def.jpg|none]]Image: Gerber X3 files <br><br>


Please note: '''TARGET 3001! is not a Gerber viewer!''' The Gerber import is able to read files containing XGerber (RS-274-X) and Excellon data from various other CAD packages with the aim of importing them layer by layer into a TARGET project.


If you want to check your Gerbers by a Gerber viewer, have a look at the free tool ''GerberLogix''
[[Image:gerberx3_1.jpg|none]]Image: Gerber X3 information related to IC1 being positioned on Top Layer.<br><br>


[[Image:GL_Logo150.jpg|GerberLogix|link=https://www.easylogix.de/products_detail.php?prog_id=1]]
== Read in of Gerber data to TARGET 3001! (Gerber viewer?) ==
<ul>
<li>[http://www.gerber-viewer.com/ online]</li>
<li>[https://www.easylogix.de/products_detail.php?change=eng&prog_id=1#check_permissions_exe Download]</li>
</ul>


<br><hr><br>
[[Image:gerbv_logo.jpg|gerbv|link=https://sourceforge.net/projects/gerbv/files/gerbv/]]<br>
As an alternative [https://sourceforge.net/projects/gerbv/files/gerbv/ Gerbv] might be welcome. You can download this viewer at sourceforge for free. Ther is no installation needed. the exe file runs instantly.<br><br>


<br><hr><br>The Gerber viewer [[GC-Prevue]] is not free anymore.<br><br><br>
Please note: '''TARGET 3001! is not a Gerber viewer!''' The Gerber import is able to read files containing XGerber (RS-274-X) and Excellon data from various other CAD packages with the aim of importing them layer by layer into a TARGET project.<br><br>
There is a wide range of excellent Gerber viewers on the web:<br>


<ul>
<li>[https://gerber-viewer.ucamco.com/ Ucamco]</li>
<li>[https://www.easylogix.de/products_detail.php?prog_id=1 EasyLogix]</li>
<li>[https://www.gerber-viewer.com/ PCBInvestigator]</li>
<li>[https://sourceforge.net/projects/gerbv/files/gerbv/ GerbV]</li>
<li>[https://www.graphicode.com/GC-Prevue GC-Prevue (not free any longer)]</li>
</ul>
<br><br>




Line 149: Line 163:




The opening dialog for Xgerber-import please find in TARGET 3001! [[Menu File]] / [[Input/Output Formats]] / [[File transfer/Documentation]] / Read XGerber and Excellon files.<br><br>
The opening dialog for Xgerber-import please find in TARGET 3001! [[Menu File]] / [[Input/Output Formats]] / [[File transfer/Documentation|Data exchange/Documentation]] / Read XGerber and Excellon files.<br><br>




An XGerber file-name is overtaken to a line of the dialog and "noted" for conversion...<br><br>
An XGerber file-name is overtaken to a line of the dialog and "noted" for conversion...<br><br>
[[Image:e_ReadXGerberExcellon.jpg|700px]]<br><br>
[[Image:XgerberImp_e.jpg|none]]Image: This is the XGerber import dialog!<br><br>
 




Button (1.) opens the Windows Browser for the selection of one of your given Gerber files which you select from your folder. Now enter which kind of data (2.) the file contains. Afterwards define by (3.), to which layer in TARGET 3001! the data shall be transferred (e. g. layer "2, copper bottom", "24, drillholes"... ). Now see the file already listed in the first dialog line (4.). Now click on "New line". TARGET 3001! now is ready for reception of a new file to a new line (=layer) and you start with 1. again to pick the next data file.<br><br>
Button (1.) opens your Windows browser for the selection of one of your given Gerber files which you select from your folder. Now enter which kind of data (2.) the file contains. Afterwards define by (3.), to which layer in TARGET 3001! the data shall be transferred (e. g. layer "2, copper bottom", "24, drillholes"... ). Now see the file already listed in the first dialog line (4.). Now click on "New line". TARGET 3001! now is ready for reception of a new file to a new line (=layer) and you start with 1. again to pick the next data file.<br><br>




EXCELLON Data you import the same way.<br>
EXCELLON data (most often used to define drill holes) you import the same way.<br>


If you click button: "File contains Excellon" in the box "File format", you'll get the option "Excellon Factor". So you can take influence on the drill data. How big the factor needs to be set is a question of trial and error. Press "Start" to convert the selected files.<br><br>
If you click button: "File contains Excellon" in the box "File format", you'll get the option "Excellon Factor". So you can take influence on the drill data. How big the factor needs to be set is a question of trial and error. The same with "Gerber factor" if you had ticked the XGerber file format. Press "Start" to convert the selected files.<br><br>




Line 188: Line 201:
A "T" is followed by the number of the tool e.g. 1...17. After the "C" please find the tool diameter in mm. The dot separates the decimals. The initial file started with "G90" . M72 switches back to imperial unit (inch), which is the standard setting in EXCELLON.<br>
A "T" is followed by the number of the tool e.g. 1...17. After the "C" please find the tool diameter in mm. The dot separates the decimals. The initial file started with "G90" . M72 switches back to imperial unit (inch), which is the standard setting in EXCELLON.<br>


=== Read Gerber (RS274D) and Excellon files using the TARGET 3001! "XGerber import" dialog (recommended) ===
=== Optimization after import ===


When importing multiple copper layers and the drill holes, all graphic elements become their own "solder pads". For example, a plated-through solder pad becomes an SMD solder pad on top and one on the bottom and a mounting hole. Also an element for the solder resist on top and the solder resist on the bottom is created. This makes 5 "solder pads" which are actually together only one real solder pad.<br><br>
With SMD pads it is the same. It results in the SMD pad on the copper and in the solder resist and solder paste. That makes three instead of one.<br><br>
Often rectangular solder pads also come in as two smaller rectangular solder pads and an additional 4 discs in the corners that represent the roundings.<br><br>
TARGET as of V32 recognizes these constellations and optimizes them:<br><br>
[[image:GerberOptimizationEN.jpg]]<br>Soldering point optimization<br><br>
After the XGerber import the optimization is called automatically. You can also call the menu item manually: "File / Input-Output Formats / Data exchange / Gerber and Excellon import / Combine solder pads and drill holes"<br><br>


XGerber (RS274X) carries all aperture information in its genuine layout file. In case you are using the older standard Gerber files (RS274D) for reading in, you must have (identify) the aperture file delivered and need to have it interpreted by TARGET 3001!. Those aperture files do not have a standardized structure at all. Neither the file extensions nor the information within the file itself. Fortunately at least all files (Gerber-, aperture, drill- and drill tool files) are bare text files easily to be read by normal text editors. First open the import dialog in [[Menu File]]/Input-/Output formats/File transfer/Documentation/Read in XGerber and Excellon files...
=== Problems with the import of X-Gerber ===


 
Please have a look here:<br>
[[Image:gerber_e_1.jpg|none]]<br>
[[Problems with the import of X-Gerber]]<br><br>
 
 
Now you read in each of your images line by line to a separate layer. Define which file you want to read in first and say to which layer in TARGET you want to import it. The answer to the question which of your file contains which information needs some experience and some testing. Sometimes there is a descriptive info-file. Copper top often is denoted by TOP or T within the file name, copper bottom often is denoted by BOT or B.
 
 
 
[[Image:gerber_e_2.jpg|700px]]<br>
 
 
 
Search for your Gerber data within your directories ("Read file", top right). In this example we choose/destinate layer 2, copper bottom.




=== Read Gerber (RS274D) and Excellon files using the TARGET 3001! "XGerber import" dialog (recommended) ===


[[Image:gerber_e_3.jpg|700px]]<br>


XGerber (RS274X) carries all aperture information in its genuine layout file. In case you are using the older standard Gerber files (RS274D) for reading in, you must have (identify) the aperture file delivered and need to have it interpreted by TARGET 3001!. Those aperture files do not have a standardized structure at all. Neither the file extensions nor the information within the file itself. Fortunately at least all files (Gerber-, aperture, drill- and drill tool files) are bare text files easily to be read by normal text editors. First open the import dialog in [[Menu File]]/Input-/Output formats/Data exchange/documentation/Read XGerber and Excellon files...<br><br>


[[Image:gerber_e_1.jpg|none]]Image: Importing Gerber data using the XGerber import<br><br>




Now you read in each of your images line by line to a separate layer. Define which file you want to read in first and say to which layer in TARGET you want to import it. The answer to the question which of your file contains which information needs some experience and some testing. Sometimes there is a descriptive info-file. Copper top often is denoted by TOP or T within the file name, copper bottom often is denoted by BOT or B.<br><br>


We do the same with the file...


[[Image:XgerberImp_e.jpg|none]]Image: Same dialog as above.<br><br>




Search for your Gerber data within your directories ("Read file", top right). In this example we choose/destinate layer 2, copper bottom.<br><br>


[[Image:gerber_e_4.jpg|none]]<br>


[[Image:gerber_e_3.jpg|none]]<br><br>




We do the same with the next file...<br><br>


..which keeps data for copper top. Import it to layer 16, Copper top.


[[Image:gerber_e_4.jpg|none]]<br><br>




...which contains data for copper top. Import it to layer 16, Copper top.<br><br>


[[Image:gerber_e_5.jpg|700px]]<br>


[[Image:gerber_e_5.jpg|none]]<br><br>




If you press the START button, you get asked whether you want to search for an aperture file which defines the so called "D codes" because by now D codes are not sufficiently defined yet. D codes care for size and shape of the apertures which get moved in front of exposure to light. Gerber data control those moves. The aperture file is a kind of description of the exposure tools, Gerber files say what is to be done with them.
If you press the START button, you get asked whether you want to search for an aperture file which defines the so called "D codes" because at this time D codes are not sufficiently defined yet. D codes care for size and shape of the apertures which get moved in front of exposure to light. Gerber data control those moves. The aperture file is a kind of description of the exposure tools while Gerber files say what is to be done with them.<br><br>




[[Image:gerber_e_6.jpg|none]]<br><br>




[[Image:gerber_e_6.jpg|none]]<br>


Press button "Yes" and search and select from your file set the one which keeps the aperture information.<br><br>




Press button "Yes" and search and select from your file set the one which keeps the aperture information.
[[Image:gerber_e_7.jpg|none]]<br><br>






[[Image:gerber_e_7.jpg|none]]<br>
Aperture files often can be identified by an A or APR (aperture) or WHL (Wheel=aperture wheel) in the file name.<br><br>




Aperture files often can be identified by an A or APR (aperture) or WHL (Wheel=aperture wheel) in the file name


[[Image:gerber_e_8.jpg|none]]<br><br>


[[Image:gerber_e_8.jpg|none]]<br>




After you have selected an appropriate file a dialog opens allowing the interpretation of the aperture data. Aperture data often consist of a header and eventually of an appendix. Both can be deleted. Only those lines are of interest which contain D codes  D10,D11,D12...  
After you have selected an appropriate file a dialog opens allowing the interpretation of the aperture data. Aperture data often consist of a header and eventually of an appendix. Both can be deleted. Only those lines are of interest which contain D codes  D10,D11,D12... <br><br>




[[Image:gerber_e_9.jpg|none]]<br><br>


[[Image:gerber_e_9.jpg|none]]<br>


The structure of D codes is not defined. The image only shows an example. Look at a D code line and now interpret it column by column. The button Automatic helps finding a preselection. In our example the first parameter defines the d code, the second the shape of the aperture (ROUND or SQUARE), the third parameter defines width and diameter of an aperture.  Because we don't have a fourth parameter  "Height"we set it "3. Parameter" too. In which scale your your gerbers come across please set in the last box. If the sequence of your parameters match, please press button "Use apertures". Now see your copper bottom and copper top layout in TARGET 3001!.<br><br>




The structure of D codes is not defined. The image only shows an example. Look at a D code line and now interpret it column by column. The button Automatic helps finding a preselection. In our example the first parameter defines the d code, the second the shape of the aperture (ROUND or SQUARE), the third parameter defines width and diameter of an aperture.  Because we don't have a fourth parameter  "Height"we set it "3. Parameter" too. In which scale your your gerbers come across please set in the last box. If the sequence of your parameters match, please press button "Use apertures". Now see your copper bottom and copper top layout in TARGET 3001!.
[[Image:gerber_e_10.jpg|none]]<br>


[[Image:gerber_e_10.jpg|none]]<br><br><br>


=== Read Gerber (RS274D) and Excellon files using the "Gerber import" dialog (outdated but still working) ===
=== Read Gerber (RS274D) and Excellon files using the "Gerber import" dialog (outdated but still working) ===


Using this tool (File/Input/Output Formats/File transfer/Documentations/Read Gerber and Excellon files) you can view the '''Gerber (RS274D)''' data of your project before producing a PCB. The Gerber data are directly read into a TARGET project. By selecting the PCB layers set visible, the corresponding views can be seen and checked with the TARGET project in separated windows besides each other. Additionally you can import Gerber data from other layout CAD  packages and edit those within TARGET. For to read in other formats please pass a detailed description of aperture and drilling list and sample aperture and drilling files out of your system to us. We can create a new tar3001.exe for you quickly free of charge.<br>
Using this tool (File/Input/Output Formats/File transfer/Documentations/Read Gerber and Excellon files) you can view the '''Gerber (RS274D)''' data of your project before producing a PCB. The Gerber data are directly read into a TARGET project. By selecting the PCB layers set visible, the corresponding views can be seen and checked with the TARGET project in separated windows besides each other. Additionally you can import Gerber data from other layout CAD  packages and edit those within TARGET.<br><br>
 
 
 
[[Image:e_Gerber_Einlesen.jpg|none]]<br>
 


[[Image:e_Gerber_Einlesen.jpg|none]]<br><br>


*Open a new project "PCB without schematic"<br>
*Open a new project "PCB without schematic"
*Click on  "Read Gerber & Excellon files" in menu File/Input/Output Formats/File transfer/Documentations/...<br>
*Click on  "Read Gerber & Excellon files" in menu File/Input/Output Formats/File transfer/Documentations/...
*Choose your standard directory which contains the Gerber data desired<br>
*Choose your standard directory which contains the Gerber data desired
*Choose the corresponding  aperture and drilling list.<br>
*Choose the corresponding  aperture and drilling list
*Click on "load layer configuration", if you want to use the existing layer configurations of the TARGET directory, or if you already edited an individual configuration. Here you have the opportunity to open "Gerber configurations" (edited by the Gerber Out function) or "GerberIn Configurations" (edited by "GerberIn")<br>
*Click on "load layer configuration", if you want to use the existing layer configurations of the TARGET directory, or if you already edited an individual configuration. Here you have the opportunity to open "Gerber configurations" (edited by the Gerber Out function) or "GerberIn Configurations" (edited by "GerberIn")
*Now the dialog opens "Load Configuration". You may enter a new name for the configuration files. Those are saved in ASCII format. *All TARGET supplied configuration files have stars in their file names (e.g. *.BOT for copper bottom). Thus enter an expressive file name regarding to your Gerber file.<br>
*Now the dialog opens "Load Configuration". You may enter a new name for the configuration files. Those are saved in ASCII format
*If you cannot use one of the proposed configurations, edit a new one on your own. Drop information which layer (e.g. copper bottom) is to be found in which file (e.g. TESTFILE.BOT)<br>
*All TARGET supplied configuration files have stars in their file names (e.g. *.BOT for copper bottom). Thus enter an expressive file name regarding to your Gerber file.
*Click on New Entry, for to define further layers, e.g. drill_file *.DRL.<br>
*If you cannot use one of the proposed configurations, edit a new one on your own. Drop information which layer (e.g. copper bottom) is to be found in which file (e.g. TESTFILE.BOT)
*If all settings are made, enter "START".<br><br>
*Click on New Entry, for to define further layers, e.g. drill_file *.DRL
*If all settings are made, enter "START"<br><br>


REMARK: Gerber data concerning the layer "solder stop" should be read in from another layer than "Solder Stop Bottom", because TARGET recognizes the pads of the Solder Stop Layer automatically by activating them in the normal layer dialog. Gerber data of the solder stop layer with topping of the vias are ignored then or dominated by those "recognized".<br><br>
REMARK: Gerber data concerning the layer "solder stop" should be read in from another layer than "Solder Stop Bottom", because TARGET recognizes the pads of the Solder Stop Layer automatically by activating them in the normal layer dialog. Gerber data of the solder stop layer with topping of the vias are ignored then or dominated by those "recognized".<br><br>

Latest revision as of 10:42, 26 July 2023

"Gerber rs 274 d"
"Gerber rs 274 x"

General

If you want to order the layout of a PCB project from an industrial manufacturing company, you will be asked for data in Gerber format. This means the so-called extended Gerber (RS274X), or XGerber, which is what TARGET generates. The old standard Gerber (RS274D), which is no longer a standard at all, is obsolete now and should no longer be used. The difference between the two is that Gerber RS274D needs an extra file for the aperture information. All aperture information is automatically built in to XGerber. Old Gerber machines that expect Gerber RS274D can still read the Gerber data from TARGET nevertheless. Creating Gerber data in TARGET 3001! is a matter of seconds.

TARGET is ready for GerberX2 and GerberX3.


Creation of Gerber data from TARGET 3001!

After you had finished your layout/routing work, please use the Menu File / Input/Output Formats / Production / "(X-)Gerber and drill output PCBout", or simply use functional key [F11] or in the layout view press this icon from the toolbar at the top



For the following explanations we use the demo project pic_3d.T3001

The following dialog opens:

The Create TARGET 3001! CAM-Data dialog
The Create TARGET 3001! CAM-Data dialog

Image: The Create TARGET 3001! CAM-Data dialog

The list shows the Gerber files going to be created (see extensions in brackets) which will be sufficient to manufacture your board. The number and kind of Gerber data depend on the complexity of your project. TARGET recognizes it and puts the expected files to this list. The ones of which you tick or untick the boxes will be generated. Choose a destination directory for saving the files. Now press the Start button. That is all.

The XGerber data are generated to the desired directory. That's what they show up for this example:


These Gerbers are created from the Pic_3D.T3001 example file
These Gerbers are created from the Pic_3D.T3001 example file

Image: These Gerbers are created from the Pic_3D.T3001 example file



Hand out those files to your PCB manufacturer. The *.zip file provided contains them all. The *.info file can be opened by any text editor and informs your PCB manufacturer in clear words which Gerber files are given regarding this special project. So he can check whether all files had arrived at him. For the project file in our example, the *.info file looks like this:

Contents of the Gerber-Info file
Contents of the Gerber-Info file

Image: Contents of the Gerber-Info file based on the project shown

Selection of Gerber data

Selection of data when creating Gerbers
Image: Data selection when creating Gerbers

The "Selection" option refers to the ability to design multiple sub layouts within one project. You can give this name and output its Gerber data separately. At this point, select the name of the sub-layout whose Gerber data you want to create. Read more about it here: Multiple PCBs within one project


Extension Special

Special settings can be done
Special settings can be done

Image: The Create TARGET 3001! CAM-Data dialog opened for Special settings

With button Special>> set further specifications if necessary. If your pcb house should ask Gerber files with different extensions from you please press the Special>> button. This will extend the Gerber dialog and at the bottom to the right give opportunity to choose different extensions (button "Standard").

Follow the link for detailed information.


Important technical note for PCB manufacturers

from version 17.4.0.23 the order of the copper layers is numbered from top to bottom:

double sided:
L1 = Top
L2 = Bottom

or

n-times multilayer:
L1 = Top
L2, L3, L4, L5... = inner layers, counted from top to bottom
Ln = Bottom

In earlier versions copper layers were counted from bottom to top.


Sample project

please have a look here:
Sample Gerber files of a sample project


Gerber X2

Image property: Ucamco
Image property: Ucamco



TARGET can automatically provide Gerber X2 information: check the box in the Special>> section of the Gerber dialogue.





The Gerber files then give information about their content (e.g. copper bottom). All elements "know" which signal and/or component they belong to. This is very useful for e-testing.


Header information of layer "Copper bottom": With Gerber X2 (left), without Gerber X2 (right).


Additional Gerber information: With Gerber X2 (left), without Gerber X2 (right).


Gerber X3

Imageproperty: Ucamco
Imageproperty: Ucamco


Also the Gerber X3 output feature is on board. Tick the box to have them generated (see diolog at Gerber X2 information). Gerber-X3 data additionally provide information for production, testing, ordering and (automatic) assembly. The Gerber-X3 format is free, open documented and easy to understand. It consists of two additional files *.X3B and *.X3T for assembly Bottom and Top. These are always included to the output. If not needed, ignore!

Component information are those being entered in the symbol change dialogue to the new Order No. button: Distributor and Order Number Double-click on the handle cross of a symbol in the sectoral plan to open the dialogue:

Image: Distributor and order number on file

In the Gerber data both Gerber X3-Files appear.

Image: Gerber X3 files


Image: Gerber X3 information related to IC1 being positioned on Top Layer.

Read in of Gerber data to TARGET 3001! (Gerber viewer?)

Please note: TARGET 3001! is not a Gerber viewer! The Gerber import is able to read files containing XGerber (RS-274-X) and Excellon data from various other CAD packages with the aim of importing them layer by layer into a TARGET project.

There is a wide range of excellent Gerber viewers on the web:




Read XGerber and Excellon files

An X-Gerber file is a textfile which may have the following syntax:

%FSLAX23Y23*%
%MOIN*%
%ADD10R,0.053X0.016*%
%ADD11R,0.030X0.030*%
%ADD12R,0.050X0.060*%
%ADD13R,0.049X0.047*%
%ADD14R,0.057X0.022*%
%ADD15C,0.010*%
%ADD16C,0.047*%
G36*
X4135Y3005D02*
X2575D01*
Y3445D01*
X2758D01*
X2759Y3440D01*
X2756Y3439D01*
X2749Y3433D01*
...


An Excellon File (for the drills) also is a text file and for example looks like this:

M48
INCH,LZ
T1F00S00C0.028
T2F00S00C0.035
%
T01
X03325Y0311
X03031Y03115
X02773Y0311
Y03409
...
T02
X03031Y03414
X03325Y03409
...
M30

In case your data look completely different, it's likely that you don't have XGerber or EXCELLON-data.


The opening dialog for Xgerber-import please find in TARGET 3001! Menu File / Input/Output Formats / Data exchange/Documentation / Read XGerber and Excellon files.


An XGerber file-name is overtaken to a line of the dialog and "noted" for conversion...

Image: This is the XGerber import dialog!


Button (1.) opens your Windows browser for the selection of one of your given Gerber files which you select from your folder. Now enter which kind of data (2.) the file contains. Afterwards define by (3.), to which layer in TARGET 3001! the data shall be transferred (e. g. layer "2, copper bottom", "24, drillholes"... ). Now see the file already listed in the first dialog line (4.). Now click on "New line". TARGET 3001! now is ready for reception of a new file to a new line (=layer) and you start with 1. again to pick the next data file.


EXCELLON data (most often used to define drill holes) you import the same way.

If you click button: "File contains Excellon" in the box "File format", you'll get the option "Excellon Factor". So you can take influence on the drill data. How big the factor needs to be set is a question of trial and error. The same with "Gerber factor" if you had ticked the XGerber file format. Press "Start" to convert the selected files.





If your Excellon-File doesn't give Information on the diameters of the drilling tools, but you know the diameters, you can simply precede the Excellon syntax with a simple text:

M71
T1C0.6
T2C0.8
...
T17C3.2
G90
M72
T1
X00224Y03282
X00324Y03282
X00424Y03282
X00424Y03487
...

M71 switches over to "mm". A "T" is followed by the number of the tool e.g. 1...17. After the "C" please find the tool diameter in mm. The dot separates the decimals. The initial file started with "G90" . M72 switches back to imperial unit (inch), which is the standard setting in EXCELLON.

Optimization after import

When importing multiple copper layers and the drill holes, all graphic elements become their own "solder pads". For example, a plated-through solder pad becomes an SMD solder pad on top and one on the bottom and a mounting hole. Also an element for the solder resist on top and the solder resist on the bottom is created. This makes 5 "solder pads" which are actually together only one real solder pad.

With SMD pads it is the same. It results in the SMD pad on the copper and in the solder resist and solder paste. That makes three instead of one.

Often rectangular solder pads also come in as two smaller rectangular solder pads and an additional 4 discs in the corners that represent the roundings.

TARGET as of V32 recognizes these constellations and optimizes them:


Soldering point optimization

After the XGerber import the optimization is called automatically. You can also call the menu item manually: "File / Input-Output Formats / Data exchange / Gerber and Excellon import / Combine solder pads and drill holes"

Problems with the import of X-Gerber

Please have a look here:
Problems with the import of X-Gerber


Read Gerber (RS274D) and Excellon files using the TARGET 3001! "XGerber import" dialog (recommended)

XGerber (RS274X) carries all aperture information in its genuine layout file. In case you are using the older standard Gerber files (RS274D) for reading in, you must have (identify) the aperture file delivered and need to have it interpreted by TARGET 3001!. Those aperture files do not have a standardized structure at all. Neither the file extensions nor the information within the file itself. Fortunately at least all files (Gerber-, aperture, drill- and drill tool files) are bare text files easily to be read by normal text editors. First open the import dialog in Menu File/Input-/Output formats/Data exchange/documentation/Read XGerber and Excellon files...

Image: Importing Gerber data using the XGerber import


Now you read in each of your images line by line to a separate layer. Define which file you want to read in first and say to which layer in TARGET you want to import it. The answer to the question which of your file contains which information needs some experience and some testing. Sometimes there is a descriptive info-file. Copper top often is denoted by TOP or T within the file name, copper bottom often is denoted by BOT or B.


Image: Same dialog as above.


Search for your Gerber data within your directories ("Read file", top right). In this example we choose/destinate layer 2, copper bottom.





We do the same with the next file...





...which contains data for copper top. Import it to layer 16, Copper top.





If you press the START button, you get asked whether you want to search for an aperture file which defines the so called "D codes" because at this time D codes are not sufficiently defined yet. D codes care for size and shape of the apertures which get moved in front of exposure to light. Gerber data control those moves. The aperture file is a kind of description of the exposure tools while Gerber files say what is to be done with them.





Press button "Yes" and search and select from your file set the one which keeps the aperture information.





Aperture files often can be identified by an A or APR (aperture) or WHL (Wheel=aperture wheel) in the file name.





After you have selected an appropriate file a dialog opens allowing the interpretation of the aperture data. Aperture data often consist of a header and eventually of an appendix. Both can be deleted. Only those lines are of interest which contain D codes D10,D11,D12...





The structure of D codes is not defined. The image only shows an example. Look at a D code line and now interpret it column by column. The button Automatic helps finding a preselection. In our example the first parameter defines the d code, the second the shape of the aperture (ROUND or SQUARE), the third parameter defines width and diameter of an aperture. Because we don't have a fourth parameter "Height"we set it "3. Parameter" too. In which scale your your gerbers come across please set in the last box. If the sequence of your parameters match, please press button "Use apertures". Now see your copper bottom and copper top layout in TARGET 3001!.





Read Gerber (RS274D) and Excellon files using the "Gerber import" dialog (outdated but still working)

Using this tool (File/Input/Output Formats/File transfer/Documentations/Read Gerber and Excellon files) you can view the Gerber (RS274D) data of your project before producing a PCB. The Gerber data are directly read into a TARGET project. By selecting the PCB layers set visible, the corresponding views can be seen and checked with the TARGET project in separated windows besides each other. Additionally you can import Gerber data from other layout CAD packages and edit those within TARGET.



  • Open a new project "PCB without schematic"
  • Click on "Read Gerber & Excellon files" in menu File/Input/Output Formats/File transfer/Documentations/...
  • Choose your standard directory which contains the Gerber data desired
  • Choose the corresponding aperture and drilling list
  • Click on "load layer configuration", if you want to use the existing layer configurations of the TARGET directory, or if you already edited an individual configuration. Here you have the opportunity to open "Gerber configurations" (edited by the Gerber Out function) or "GerberIn Configurations" (edited by "GerberIn")
  • Now the dialog opens "Load Configuration". You may enter a new name for the configuration files. Those are saved in ASCII format
  • All TARGET supplied configuration files have stars in their file names (e.g. *.BOT for copper bottom). Thus enter an expressive file name regarding to your Gerber file.
  • If you cannot use one of the proposed configurations, edit a new one on your own. Drop information which layer (e.g. copper bottom) is to be found in which file (e.g. TESTFILE.BOT)
  • Click on New Entry, for to define further layers, e.g. drill_file *.DRL
  • If all settings are made, enter "START"

REMARK: Gerber data concerning the layer "solder stop" should be read in from another layer than "Solder Stop Bottom", because TARGET recognizes the pads of the Solder Stop Layer automatically by activating them in the normal layer dialog. Gerber data of the solder stop layer with topping of the vias are ignored then or dominated by those "recognized".

If the external CAD format you need concerning the aperture and drilling list not is offered by TARGET, please describe it to us (evtl. using an example - file). We add all formats you drop to us into the list as we estimate it reasonable.

What's the difference between Gerber and G-Code?

G-Code and Gerber are similar but describe different things: Gerber describes the drawing of a PCB layer. A command in Gerber mostly results in a piece of a track or in a pad. G-Code mostly is used for controlling milling machines. A command in G-Code normally results in a movement of the milling bit.

Regarding isolation milling, moving the milling tool inside tracks and pads would destroy them. The movement has to be outside along the tracks and pads to create isolation channels all around. TARGET 3001! is able to compute the G-Code for PCBs, regarding the milling bit diameter and the track widths. Because TARGET 3001! can also import Gerber files, it can be used as a universal Gerber-to-G-Code converter.


G-Code can be created in TARGET 3001! by the menu option:






This menu entry opens the following dialog where you can opt for G-code as output format.