Panelised Board does not contain Outline

Report bugs here
Post Reply
Message
Author
fastbike
Posts: 61
Joined: 06 Mar 2021, 06:42

Panelised Board does not contain Outline

#1 Post by fastbike » 31 May 2023, 00:07

I've posted an investigation into the difficulties I've had with v scored panelised boards being processed by JLCPCB.
See viewtopic.php?p=33618#p33604

In short the Gerber x2 zip file contains a non standard file name for the v scoring, and it appears that this v score layer should also contain the board outline.
Ardent hobbyist

fastbike
Posts: 61
Joined: 06 Mar 2021, 06:42

Re: Panelised Board does not contain Outline

#2 Post by fastbike » 01 Jun 2023, 17:44

I then tried validating the board using the Gerber Viewer at UCamCo
https://gerber-viewer.ucamco.com/

Using the standard GerberX2 zip file exported by DipTrace gave the following errors:

Code: Select all

 BoardOutline.gbr
 Standard attribute '%TF.FileFunction,Profile' is invalid, continuing. "(at line 5)"
 File type Gerber X2. 
NB: add the NP argument to the Profile attribute removed this error.

Code: Select all

 V-Scoring.gbr
 Standard attribute '%TF.FileFunction,V-Scoring' is invalid, continuing. "(at line 5)"
 Non-standard .FileFunction attribute value V-Scoring, interpreted as extra layer "(at line 32)"
 File type Gerber X2. 
To fix this I exported the GerberX2 file, opened the zip and made the following edits:
Open the V-Scoring.gbr file and copy the lines between %LPD*% and M02*, e.g. the v scoring lines

Code: Select all

X0Y10500000D2*
D10*
Y-1500000D1*
X3900000Y10500000D2*
Y-1500000D1*
X3600000Y10500000D2*
Y-1500000D1*
X7500000Y10500000D2*
Y-1500000D1*
X-1500000Y0D2*
X9000000D1*
X-1500000Y3100000D2*
X9000000D1*
X-1500000Y2800000D2*
X9000000D1*
X-1500000Y6200000D2*
X9000000D1*
X-1500000Y5900000D2*
X9000000D1*
X-1500000Y9000000D2*
X9000000D1*
Then open the BoardOutline.gbr file and paste the copied lines just after the %LPD*% command

Code: Select all

%LPD*%
X0Y10500000D2*
D10*
Y-1500000D1*
X3900000Y10500000D2*
Y-1500000D1*
X3600000Y10500000D2*
Y-1500000D1*
X7500000Y10500000D2*
Y-1500000D1*
X-1500000Y0D2*
X9000000D1*
X-1500000Y3100000D2*
X9000000D1*
X-1500000Y2800000D2*
X9000000D1*
X-1500000Y6200000D2*
X9000000D1*
X-1500000Y5900000D2*
X9000000D1*
X-1500000Y9000000D2*
X9000000D1*

X-1500000Y10500000D2*
D10*
X9000000D1*
Y-1500000D1*
X-1500000D1*
Y10500000D1*
M02*
Also alter the File Attribute line to read

Code: Select all

%TF.FileFunction,Profile,NP*%
Finally delete the V-Scoring.gbr file from the zip.
Upload the modified zip file into the Gerber viewer and check the board layout layer.
Screenshot 2023-06-02 at 16-40-59 Reference Gerber Viewer by the developer of the Gerber Format.png
Screenshot 2023-06-02 at 16-40-59 Reference Gerber Viewer by the developer of the Gerber Format.png (20.43 KiB) Viewed 1343 times
Then upload the modified zip file to JLCPCB and check it has been processed correctly
Screenshot 2023-06-02 at 16-42-09 PCB Order & Online PCB Quote & PCB Assembly Quote - JLCPCB.png
Screenshot 2023-06-02 at 16-42-09 PCB Order & Online PCB Quote & PCB Assembly Quote - JLCPCB.png (155.09 KiB) Viewed 1343 times
The size has been corrected interpreted (before mods it was missing the edge rails)
Ardent hobbyist

fastbike
Posts: 61
Joined: 06 Mar 2021, 06:42

Re: Panelised Board does not contain Outline

#3 Post by fastbike » 02 Jun 2023, 12:54

I've created a simple utility to fix the board - it addresses the issues above. It can be downloaded from GitHub (written in Delphi, source code included)
https://github.com/fastbike/GerberFix
Ardent hobbyist

Post Reply