• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. PCB Design
  3. Generating Gerber RS274X In 2:3 Format & Gerber File Syntax...

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 166
  • Views 6876
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Generating Gerber RS274X In 2:3 Format & Gerber File Syntax Issue.

excellon1
excellon1 over 7 years ago

Hi, I have a couple of issues with exporting gerber data from Orcad/Allegro PCB Editor (16.6) & (17.2)

My first issue pertains to exporting the gerber files in a standard 2:3 Format. I work in mils and trying many combinations of database accuracy I have found no
way to export in 2:3 positional format. I am wondering if it is even possible ?

Looking in the help file 2:3 does appear to be supported.

I keep getting a dialog box popping up saying. ( For Raster Artwork Formats Accuracy must be at least one greater than the database accuracy)

If my database accuracy is set to 0,1,2 etc I can export without issue using a 2:5 Format but not 2:3

My second issue pertains to the actual syntax of the generated Gerber file. I have a commercial CNC mill that I use for quick RF Proto type boards. Basically
the software used with the mill converts the Gerber data to G-Code. That mill software works without issue with many different cad packages that create
Gerber files including Altiumn, P-Cad, Mentor etc. It also works with Gerber editors such as cam350 etc. Using the native RS274X data exported from Orcad
PCB editor results in un-usable data.

In checking the Gerber export syntax from Orcad/Allegro I have isolated the issue. Here are the details.
Opening the Gerber file in a text editor shows the following after the GO4 statements in the Header of the file.

G04 ================== end FILE IDENTIFICATION RECORD ====================*
%FSLAX25Y25*MOIN*%    <<<<<<< Issue I with this line

The first line ( %FSLAX25Y25*MOIN*% ) indicates that the format of the Gerber file is 2:5 and that the units are in inch.

In looking at the Gerber specification and other Gerber output from various cad packages It looks like Cadence has combined this line into one. Normally it should read like this.
Or should I say the other tools I have put the info out like this.

%FSLAX25Y25*%
%MOIN*%

As you can see there are two separate lines. One indicating the Format & one indicating the Units. If I edit the cadence gerber file to look like this then my CNC package has
no issues reading the data.

My question. Is there a template fle available that I can edit so that cadence puts out RS274X gerber in the above syntax ? just like other cad tools.

Thanks Paul.

  • Cancel
Parents
  • Dale Peterson
    Dale Peterson over 7 years ago

    The correct setting for outputting artwork will need to be 3:4 if your design parameters are set to Mils accuracy 0. Not 2:3.  My explanation--- 

    1mil =.001

    10Mils =.010in

    100Mils =.100in

    1000mils = 1.000in

    10000mils=10.000in

    Please note the how many numbers are before and after the decimal for 10.000 in. There are 2 leading and 3 trailing. Thus, the artwork output needs 3:4 to cover all graphics in your design up to 99 inches. And down to 1mil.

    If you set your accuracy down to 1. Then you need 3:5 to cover .0001 in.

    I hope this makes sense to you.  

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • excellon1
    excellon1 over 7 years ago in reply to Dale Peterson

    Hi Dale, i guess what is confusing is that the database "actual design" resolution can be set. I use mils so it defaults to 1. In my gerber settings I use 3:5 and that works. I am curious though. If the
    database is set to 1 does that mean that the minimum supported resolution will ultimately be 1 mill for the gerbers assuming 3:5. What about if something is on a sub 1 mil grid like 1/2 a mil, I wonder if there would be a rounding error ?

    I have seen some designs done in allegro where the design is still done in mils but the accuracy is set to 2. and others where it is set to 3. I guess my question is what is best 1 ,2 or 3 with respect to
    database accuracy. It seems like for the gerber output the database accuracy is the determining factor for leading integers....

    Thanks

    Paul. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Dale Peterson
    Dale Peterson over 7 years ago in reply to excellon1

    Your 3/5 setting works because 5 is one greater than the resolution you have set (1) meaning 1mil = .0010. My chart which represents only 0 meaning 1mil= .001 database resolution. your setting would work for me too. Remember the artwork setting requirement is to have setting 1 higher than your resolution (at a minimum). You could set it to 6, 7 of 8. However, that;s a big over kill.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Dale Peterson
    Dale Peterson over 7 years ago in reply to excellon1

    Your 3/5 setting works because 5 is one greater than the resolution you have set (1) meaning 1mil = .0010. My chart which represents only 0 meaning 1mil= .001 database resolution. your setting would work for me too. Remember the artwork setting requirement is to have setting 1 higher than your resolution (at a minimum). You could set it to 6, 7 of 8. However, that;s a big over kill.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • excellon1
    excellon1 over 7 years ago in reply to Dale Peterson

    Hi Dale, good info that..

    Thanks

    Paul.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information