The detail setting for CAD import is defined by the ‘Setup Macro Settings’ step.
There are following five tabs in the ‘Setup Macro Settings’ step.
• General Settings
• Manipulate
• BOM Settings
• Validation Settings
• Global Rotation
General Settings tab
The basic setting for CAD import is defined.
Items to be set
Item Explanation
‘XY Units’ Selects a unit type to be used by CAD files. ‘Custom’ enables you to define the coefficient that converts the unit used by each CAD system in millimeter.
Input the coefficient in the input box.
‘Designators’ Indicates T as top and B as bottom. When you want to specify other direction, input that direction in this field. For the CAD file that several designators are set, designators and delimited are additionally set.
Example
PCB top side: T,TOP,TopSide PCB bottom side: B,Bottom,BackSide Delimited:,
‘Rotation Direction’ Sets the component revolution direction (Clockwise/Anti-clockwise) of the CAD system to be used.
• ‘CCW’
• ‘CW’
Project050201S-77E02
5.2 Defining CAD Macro
Item Explanation
‘Undefined Parts’ In case components of the CAD data do not exist on the database, you can search the components from the selected library using specified criteria and copy the component data matched to the criteria.
There are following two criteria.
・Part Description: Searches using the component description of the CAD/BOM data.
・Shape Code: Searches using the shape code of the CAD/BOM data.
*If the definition exists in both the CAD file and BOM file, the BOM file has priority for search.
‘Priority
Designators’ Sets a designator to represent 'First'/'Last' of the simple priority order.
This setting is required only when simple priority order is used.
The designator set here is used in the "Placement order" field in the placement point record.
‘5.2.1 CAD Macro Editor’ → ’2. Defining the CAD format’ → ‘■CAD tab’.
Manipulate tab
By defining the fields on the operation tab, you can edit the data before creating a PCB file on the [Product Editor].
Items to be set
Item Explanation
‘Select a Side’ Select the side (surface or reverse side) of the PCB to be displayed and edited. Tick ‘Bottom same as top with mirror over Y’ when the following three conditions are met: 1. CAD data include the surface and reverse sides of a board. 2. The board is symmetric with respect to the Y axis. 3. Data about both sides is entered. With ‘Bottom same as top with mirror over Y’ selected, ‘Bottom side’ cannot be selected.
‘Step 1: XY Offset’ Input values suitable for all the record types to add to the XY coordinates. The XY coordinates will be changed accordingly.
These values are added in importing a CAD file. With production model (PCB) files, placement components will be moved instead of PCBs.
• Into the ‘X Offset Distance,’ enter the X-direction offset to be applied to the current board surface when capturing a CAD file.
• Into the ‘Y Offset Distance,’ enter the Y-direction offset to be applied to the current board surface when capturing a CAD file.
‘Step 2: Panel Offset’ The record type and XY coordinates will not be changed against the coordinate reference point (program reference point). These values are captured as PCB internal data when a CAD file is captured. With production model (PCB) files, whole PCBs will be moved.
• Into the ‘X Offset Distance,’ enter the X-direction offset to be applied to the current board surface when capturing a CAD file.
• Into the ‘Y Offset Distance,’ enter the Y-direction offset to be applied to the current board surface when capturing a CAD
Project050201S-78E00
5.2 Defining CAD Macro
Item Explanation
‘Step 3: Panel Rotation Offset’ Set this when the PCB direction in the CAD data is different from that in actual production. Select the automatic rotation direction of PCBs in importing a CAD file.
• ‘0’
PCBs will not be rotated in importing a CAD file.
• ‘90’
PCBs will be rotated by 90 counterclockwise in importing a CAD file.
• ‘180’
PCBs will be rotated counterclockwise by 180 in importing a CAD file.
• ‘270’
PCBs will be rotated counterclockwise by 270 in importing a CAD file.
‘Step 4: Coordinate and Angle
Reverse’ The coordinate direction may vary with the side
(surface/reverse) of double-sided PCBs on the CAD data. For the and directions of the XY coordinates on the
double-sided PCB, specify the same direction or mirror reverse for the PCB surface.
• ‘None’
PCBs will not be inverted automatically in importing a CAD file.
• ‘Over Y’
PCBs will automatically be inverted symmetrically over the Y-axis in importing a CAD file.
• ‘Over X’
PCBs will automatically be inverted symmetrically over the X-axis in importing a CAD file.
• ‘Both’
PCBs will automatically be inverted symmetrically over the X- and Y-axes in importing a CAD file.
• ‘Reverse of Rotation Angle’
After a CAD file is loaded, reverse an angle in the same way as reverse of coordinates.
‘Step 5: Convert panel to single
pattern’ When this field is checked off, multi-block PCBs will
automatically be converted to single-block PCBs in importing a CAD file. This option is valid only to PCBs with two or more offset records (multi-block PCBs).
Note that bad PCB marks cannot be checked for each pattern on the PCB when this option is selected.
Angle offset is carried out after ‘Step 5’ for the placement angle of a component whose entire angle offsets or CAD rotation is set.
BOM Settings tab
The CAD file and BOM (Bill of Materials) file are checked.
Items to be set
Item Explanation
‘ID String’ Specify a character string to be used in PCB modification identification.
‘Include’/‘Exclude’ Specify whether to include or exclude the ID string in PCB modification identification.
‘BOM Is Master’ Select this option to ignore components that are absent in a BOM file but present in a CAD file. When this is not checked off, such components are regarded as an error.
E.g.) In the sample files shown below, PARTNOx indicates the component name and Rx indicates the reference number.
CAD files R1 1.23 4.56 90
R2 4.12 3.57 270
R3 3.45 9.87 180
BOM files PARTNOX R1
PARTNOY R2
PARTNOZ R4
When ‘BOM Is Master’ is checked off, R1 and R2 are imported as PARTNOX and PARTNOY respectively. An error occurs for R4.
When ‘BOM Is Master’ is not checked off, R1 and R2 are imported as PARTNOX and PARTNOY respectively. R3 is imported without the component name.
Project050201S-74E00
5.2 Defining CAD Macro
Item Explanation
‘Multiple Designators’ Check this off when more than one reference number is set to the component name in BOM.
‘Designators wrap to next line’ Check this off when the reference number of a component is input in more than one line as shown below.
E.g.)
Component number Reference number
ERJ235GSK C100-135,C138,C217-248
C303-325,C327,C329
JDLXC43V45B R15-86,C90-96
‘Designator Separator’ This refers to the characters used to delimit the reference number. Input a value when the reference number is duplicated. Ensure that the value is different from the range characters.
Spaces shown on a BOM file are ignored in front and at the back of the reference-number delimiter.
E.g.)
PARTNOX R11,R12,R13,R14,R15,Q1,Q2,Q3 Or
PARTNOX R11,12,13,14,15,Q1,2,3
For files in this format, type ‘,’ as a separator for the reference number.
‘Range Character’ This refers to the characters used to specify the range of the reference number. Input a value when the reference number is duplicated. Ensure that the value is different from the range characters.
Example)
PARTNOX R11-15,Q1-3 Or
PARTNOX R11-5,Q1-3
For files in this format, type ‘-’ as a range character.
Validation Settings tab
Check contents used in importing a CAD file are defined on the check contents tab.
Items to be set
Item Explanation
‘Validation Settings’
‘Generate error for fiducial count mismatches’
Specified to display an error message when there are not two marks.
‘Generate error for missing part names’
Indicates that an error message appears for CAD files that are not registered in the component master database.
‘When duplicate designator is found’
‘Rename duplicate
designator’ Adds a 3-digit identification code at the end of the reference number when the reference number is duplicated.
=Note=
Ensure that the reference number is within twenty digits.
E.g.)
When there is one reference number:
R01
When there is more than one reference number:
R01-001 R01-002 • •
‘Generate error message (do not import)’
Displays an error message and does not import the data.
‘Allow duplicate designator’ Imports the data even if the reference number is duplicated.
Project050203S-04E02
5.2 Defining CAD Macro
Item Explanation
‘When component fiducial designator is blank’
‘Generate error message’ Displays the error message when the placement recognition data exists but the reference number is not specified.
‘Use designator from previous
placement’ Used when the reference number of the placement point recognition item in the CAD data is not specified.
‘Search for matching placements using coordinates’
Displays the error message when the placement point recognition is specified but the reference No. is not specified.
The specific reference number is determined by specifying the lead pitch of the part requiring the placement point recognition and the distance from the placement point recognition.
Global Rotation tab
The conversion method of the CAD data angle is set on the global rotation tab.
The unit of the input angle must be degree (°).
As for the unit other than degree (°) that is used in the CAD data, conversion of rotation angle must be defined.
Scale translation
The scale factor is set for the angle unit, if it is shown in other then degree (°). The angle after the data is loaded shall be the value shown in the CAD data which is multiplied by the scale factor. For example, if the angle unit is shown in radian, the input value shall be 57.2957.
Code translation
If the rotation angle is shown in code, code conversion must be defined. If UP is used instead of 0°
in the CAD data, UP is input in the Code field and 0 is input in the Rotation field in Translate Codes, and click the Add button.
(Example of codes)
UP = 180°, LEFT = 270°, RIGHT = 90°, DOWN = 0°
Select CAD System Name
If 0° of a component defined by the CAD system differs from 0° of the one (shape shown in the part editor) defined by the DGS, mount rotation angle must be converted in order to match 0° of the one in the DGS.
By selecting the conversion table here, you can import the data adding a certain offset rotation angle against the defined component.
For how to set offset rotation angle per component, see 5.8.12 CAD Rotation.
Full angle offset
If offset angle is set to all placement points, full angle offset is used.
You can set angle within a range of ±180°.
Project050201S-76E01
5.2 Defining CAD Macro
Items to be set
Item Explanation
‘Select CAD System Name’ Selects the tables for conversion of rotation angle per component.
‘Translate Codes’ Enables the selection boxes for code conversion.
‘Scale Factor’ Enables the selection boxes for a scale coefficient.
‘Scale’ Sets factor for conversion of the rotation unit to degree (°).
‘Code’ Input the code indicates ‘Rotation’ angle.
‘Rotation’ Input rotation indicates ‘Code’.
Code conversion list Displays the defined rotation angle code conversions in a list.
Button
Button Explanation
[Add] Adds rotation code conversion.
[Change] Changes the rotation code.
[Remove] Deletes the rotation code.