This website requires JavaScript.
優惠券 下載應用程式
寄往
說明中心
如何修復 Proteus 錯誤的八角形 Gerber 光圈微距

如何修復 Proteus 錯誤的八角形 Gerber 光圈微距

最近更新在 May 30, 2025

如何修復 Proteus 錯誤的八角形 Gerber 光圈

問題

如果在 Proteus 中使用八角形焊盤(例如那些倒角矩形焊盤),則某些版本的 Proteus 可能會為這些圖形元素匯出有缺陷的 Gerber 孔徑光圈。參見下圖。

圖1. 有缺陷的八角墊

此光圈由 Gerber 的外形(代碼 4)巨集製作,詳情請參考 "The Gerber Layer Format Specification".中的「4.5.1.6 Outline, Code 4」一節。

根據規範:

An outline primitive is an area defined by its outline or contour. The outline is a polygon, consisting of linear segments only,

defined by its start vertex and n subsequent vertices. The outline must be closed, i.e. the last vertex must be equal to the start vertex.

...

As the outline must be closed the last coordinates must be equal to the start coordinates.

因此,八角形焊盤應該有 9 個頂點,但某些版本的 Proteus 只輸出 8 個頂點。

Gerber 文件只不過是一些可供閱讀的純文字檔案。因此,讓我們在文字編輯器中開啟有問題的文件:

G04 PROTEUS RS274X GERBER FILE*

%FSLAX24Y24*%

%MOIN*%

...

%AMDIL007*4,1,8,-0.0300,0.0380,-0.0180,0.0500,0.0180,0.0500,0.0300,0.0380,0.0300,-0.0380,0.0180,-0.0500,-0.0180,-0.0500,-0.0300,-0.0380,0*% <1>

%ADD17DIL007*% <2>

...

1.這一長行定義了八邊形光圈微距,AM = Aperture Macro,DIL007是這個微距的名稱。


2. 這條線透過 DIL007 定義了一個孔徑 D17。


為了使內容更容易閱讀,我們可以斷行,像這樣:

%AMDIL007*

4,1,8,           <1>

-0.0300,0.0380,  <2>

-0.0180,0.0500,  <3>

0.0180,0.0500,   <4>

0.0300,0.0380,   <5>

0.0300,-0.0380,  <6>

0.0180,-0.0500,  <7>

-0.0180,-0.0500, <8>

-0.0300,-0.0380, <9>

0*%              <10>

4:輪廓宏; 1:曝光開啟; 8:輪廓的頂點數=座標對數減一。 ≥3 的整數。

1.Vertex 1

2.Vertex 2

3.Vertex 3

4.Vertex 4

5.Vertex 5

6.Vertex 6

7.Vertex 7

8.Vertex 8

9.Rotation angle.

現在,我們確定光圈微距是錯誤的。

如何修復

只需複製第一個頂點的座標(即「4,1,8」之後的行)並將其貼上到「旋轉角度」行(即0*%行)之前:

警告:請不要複製此處的內容並將其貼上到您的文件中,因為您的光圈可能有不同的尺寸。

%AMDIL007*

4,1,8,

-0.0300,0.0380,  <1>

-0.0180,0.0500,

0.0180,0.0500,

0.0300,0.0380,

0.0300,-0.0380,

0.0180,-0.0500,

-0.0180,-0.0500,

-0.0300,-0.0380,

-0.0300,0.0380, <2>

0*%

1.The 1st vertex.。

2.The 9th vertex.。第一和第九應該相同。

圖2. 八角形墊需要9個頂點

現在,修正包含此類孔徑光圈的所有層(例如,頂部/底部銅層和相應的阻焊層)。

圖3. 八角墊固定

在下訂單之前,強烈建議您在 Gerber 檢視器中檢查每一層,建議使用Gerberv