CAD/BOM file formats for the CAD/BOM import setting are defined in the ‘Define CAD Format’
step.
There are two tabs in the ‘Define CAD Format’ step as follows.
[CAD]: Defines the identification method of the record type present in the CAD file and its format.
[BOM]: Defines the identification method of the record type present in the BOM file and its format.
This becomes active only when the BOM file is specified in the <Setup Macro input> step.
The information to be displayed on the CAD and BOM tabs is determined by an input method (‘Positional’/‘Delimited’) in the <Setup Macro input> step. There are four input methods as follows.
• CAD tab when the delimiter-specified CAD file is used
• CAD tab when the position-specified CAD file is used
• BOM tab when the delimiter-specified BOM file is used
• BOM tab when the position-specified BOM file is used
CAD tab
CAD tab when the delimiter-specified CAD file is used CAD tab when the position-specified CAD file is used
6
Project050201S-21E01
1
2
7 8
3 4 5
6
Project050201S-22E01
1
2
7 8
3 4 5
6
5.2 Defining CAD Macro
Relationship of record types and field definition
Record Type: Defines ‘ID Method’ and relevant fields to define a record. If necessary, convert the fields. All the record types contained in the CAD file are displayed in a list.
Record types with ‘’ indicate that they have been identified by the macro.
Record Type Explanation Field Indispensable setting [Offset] Displays the position of the multi-block pattern (from
the second pattern onward) on a PCB and rotation direction.
X-coordinate ○
Y-coordinate ○
Placement surface – Reference number –
Rotation –
Revision code –
PCB name –
Version number –
Explanation – Pattern identification –
[Master bad mark] When there is a bad pattern on a multi-block PCB, a mark that indicates the bad pattern (components will not be placed) is called a bad mark.
Although such marks are checked on each pattern, using this item shortens the time by specifying one (representative) bad mark on a PCB. The XY coordinates take the PCB origin as reference.
X-coordinate ○
Y-coordinate ○
Placement surface –
Mark name –
Explanation – [Pattern bad mark(all
pattern)] When there is a bad pattern on a multi-block PCB, a mark that indicates the bad pattern (components will not be placed) is called a bad mark.
The XY coordinates take the pattern origin as
reference and explorer corresponding to offset value.
Reference number ○
X-coordinate ○
Y-coordinate ○
Placement surface –
Mark name –
Explanation – Pattern identification –
[Pattern bad
mark(Random specify)] When there is a bad pattern on a multi-block PCB, a mark that indicates the bad pattern (components will not be placed) is called a bad mark.
Although such marks are checked on each pattern, using this item shortens the time by specifying a bad mark in the desired position on a PCB. The XY coordinates take the PCB origin as reference.
Reference number ○
X-coordinate ○
Y-coordinate ○
Placement surface –
Mark name –
Explanation – Pattern identification –
[Pattern mark] Displays correction marks (alignment marks) on a PCB by pattern. Generally, each pattern has zero or two pattern marks. The XY coordinates take the PCB origin as reference.
X-coordinate ○
Y-coordinate ○
Placement surface –
Mark name –
Explanation – Pattern identification –
[PCB mark] Displays the mark position for correcting a PCB.
Generally, each CAD file has zero or two PCB marks.
The XY coordinates take the PCB origin as reference.
X-coordinate ○
Y-coordinate ○
Placement surface –
Mark name –
Explanation –
Record Type Explanation Field Indispensable setting [Placement point] Displays the component placement position or order.
The XY coordinates take the PCB origin as reference.
The "Placement order" field indicates simple priority (first/last) of the placement order.
( ‘5.2.1 CAD CAD Macro Editor’→’3. Setting the macro definition detail’→’■General Settings’ ) The "Priority order layer" field indicates the relative priority order of placement points (0: Not specified, 1 or higher number: Setting the larger value will place later.)
Component name ○
X-coordinate ○
Y-coordinate ○
Rotation ○
Placement surface – Reference number –
Explanation – Pattern identification –
Part description –
Shape code –
Insertion pitch –
Placement order –
Priority layer –
[Unused placement
point (not in use)] Displays the component placement point which will not be loaded. The XY coordinates take the PCB origin as reference.
Reference number ○
X-coordinate ○
Y-coordinate ○
Rotation ○
Placement surface –
Component name –
Application angle –
Explanation –
Insertion pitch –
Placement order –
[Placement point
recognition] Displays the positions of individual correction marks (alignment mark) for precision parts. Generally, each placement record has zero or two individual correction marks. The XY coordinates take the PCB origin as reference.
X-coordinate ○
Y-coordinate ○
Placement surface – Reference number –
Mark name –
Explanation – Pattern identification –
[PCB outer dimension] Specifies the PCB dimensions. The XY coordinates
take the PCB origin as reference. X-coordinate ○
Y-coordinate ○
X-coordinate 2 –
Y-coordinate 2 –
PCB thickness –
[PAD] Specifies the position and dimensions of the land on a
PCB. X-coordinate ○
Y-coordinate ○
X-direction size ○ Y-direction size ○ Placement surface – Reference number –
Layer –
Network ID –
Shape – Recognition required –
Rotation –
5.2 Defining CAD Macro
Record Type Explanation Field Indispensable setting [Hole] Specifies all the holes on a PCB other than for
transferring. X-coordinate ○
Y-coordinate ○
X-direction size ○ Y-direction size – Placement surface – Reference number –
Shape – [Trace segment] Specifies the pattern that connects the lands on a
PCB. X-coordinate ○
Y-coordinate ○
X-coordinate 2 ○
Y-coordinate 2 ○
PCB thickness ○
Layer –
Network ID –
Thickness – PCB warp detection
point Specifies the point for PCB warp detection. X-coordinate ○
Y-coordinate ○
Placement surface – Pattern warpage
measurement point
Specifies the position of the measurement point for
pattern warpage measurement. X-coordinate ○
Y-coordinate ○
Placement surface – Pattern reference
number –
PCB barcodes Indicates the PCB barcode position. The XY
coordinates take the PCB origin as reference. X-coordinate ○
Y-coordinate ○
Placement surface –
Mark name –
Pattern barcodes Indicates the pattern barcode position. The XY
coordinates take the PCB origin as reference. X-coordinate ○
Y-coordinate ○
Placement surface –
Mark name –
Pattern reference
number –
Support pin Indicates the support pin position. The XY coordinates
take the PCB origin as reference. X-coordinate ○
Y-coordinate ○
Placement surface – CAD comment The CAD file may contain data unnecessary for the
placement program. Those data are used to specify
items to be ignored by the CAD file. – –
Item Explanation
‘D Method’ The ID method function can determine the collective identification of record types in the CAD file. Each record should be identified during the conversion process. As a part of the CAD system, a check mark () is attached to the identified records. Selecting the ID method displays the field list and each input window under ‘ID Method.’
[Not Used] Indicates that the selected (highlighted) record types are not used by the CAD system. By default, [Not Used] is set.
[Character string] Identifies a character string as one record. Selecting [Character string]
opens a box to input a character string. Input a character string unique to the selected sample CAD file. The position of the character string can be anywhere in the record. For example, if ‘CF’ is displayed only on the mark record, it can also be used to identify the record type of placement point recognition.
[Field contents] Uses a specific field content to identify the record type. Selecting [Field contents] displays the boxes into which you will enter [Character string]
and [Row No.]. Input a character string unique to the selected sample CAD file, and specify [Row No.] of the record.
[Range] Displays all the record types by block. When [Range] is selected, [Start/End character] will be displayed under ‘ID Method.’ Input a unique character string, and specify the range of the records. The position of the character string can be anywhere in the record. If the starting and ending characters are not specified, the range will be from the beginning and ending of the file.
[Remaining] Identifies the highlighted record type as one of the record types other than the defined ones. Only one record is applicable per CAD file.
‘Total Records’ Displays the number of total records searched by the sample CAD file.
(For reading only)
‘Total Identified’ Displays the number of total records identified by the selected CAD sample file.
(For reading only)
‘Records Unidentified’ Displays the number of total records that are not recognized by the defined identification types.
(For reading only)
Checkbox
Item Explanation
‘Advance Field Definition’ Loads the CAD file information by using the formula against each field of the specified record type when referring the CAD file.
Button
Button Explanation
[Identify] Clicking this starts searching for the CAD file under the condition set by the ID method and displays the results in the sample file area in the lower part of the window.
By clicking [Identify] before defining the fields required for the CAD file record, you can display the target records only.
[Apply] Clicking this saves the changes of the record type definition. To save the record, all the essential fields need to be defined.
The essential fields are displayed with ‘’ in the field selection combo box.
5.2 Defining CAD Macro
Advanced field definition
In the ‘Advance Field Definition’ step, you can specify how to view the fields of the CAD file by setting a formula to each record field.
CAD tab
CAD tab when Advance Field Definition and the delimiter-specified CAD file are used
CAD tab when Advance Field Definition and the position-specified CAD file are used
1 Check off ‘Advance Field Definition.’
2 Click on each column.
The edit window opens.
Project050201S-23E01 Project050201S-24E01
Project050201S-25E01
1
2
3 Edit the formula.
4 Click [OK].
The formula is set.
Project050201S-28E01 Project050201S-27E01
3
4
5.2 Defining CAD Macro
Setting a formula when the position-specified CAD file is used
1 Check off ‘Advance Field Definition.’
2 Click on each column.
The edit window opens.
3 Edit the formula.
4 Click [OK].
The formula is set.
Project050201S-32E01 Project050201S-29E01
1
2
Project050201S-31E01
3
4
Operators and formulas that can be used on the edit window are as follows.
When you use a character string on the edit window, enclose it in “ ” (double quotation marks).
Operators and formulas Explanation
$n (n: 1,2,3…) Indicates the nth column.
Performs addition.
Performs subtraction.
Performs multiplication.
/ Performs division.
% Obtains a remainder.
# Joins together.
Checks whether the right side and left side are equal.
! Checks whether the right side and left side are not equal.
Checks whether the left side is smaller than the right side.
Checks whether the left side is larger than the right side.
Checks whether the left side is equal to or smaller than the right side.
Checks whether the left side is equal to or larger than the right side.
|| Takes the logical sum of the right and left sides.
&& Takes the logical product of the right and left sides.
rtrim (x) Deletes a space.
upper (x) Capitalizes a character string.
mid (x,y,z) Returns the character string of the length z from the xth row and yth column.
carry (x) Takes the record value in front of the target cell if it is blank or the value of the target cell if it has a value in it.
length (x) Returns the number of the character string length.
5.2 Defining CAD Macro
Defining the CAD format when the delimiter-specified CAD file is used
1 Choose the record type to define.
For ‘Record Type’ available for setting, see ‘5.2.1 CAD Macro Editor’ ‘2.
Defining the CAD format’ ‘ CAD tab’ ‘
Relationship of record types and field definition.’
You are recommended to define a placement point first.
The displayed field varies with the selected record type.
2 Choose the ID method to use.
For ‘ID Method’ available for use, see
‘5.2.1 CAD Macro Editor’ ‘2. Defining the CAD format’ ‘ CAD tab’ ‘ Relationship of record types and field definition.’
The displayed option varies with the selected ID method.
Set a value appropriate for the displayed option.
3 Click [Identify].
The CAD file is searched under the conditions set by the ID method, and the search results will be displayed.
4 Choose the field name from the dropdown menu of each column.
You should define all the essential fields (with
‘’ at the end) at least.
5 Click [Apply].
Project050201S-33E01
2 1 3
Project050201S-34E00
4
Project050201S-35E01
5
Example of CAD macro definition
This section describes an example of definition to extract placement points from a delimited CAD file.
Let’s assume that a record including the string ‘PLACMENT’ in the 2nd column in a delimited CAD file is one that defines a placement point.
1 Choose the definition target.
Choose [Placement] from ‘Record Type’.
2 Define the extraction conditions.
Choose [Field Contents] from ‘ID Method’.
a) Type ‘PLACMENT’ into ‘String’, and ‘2’ into
‘Column Ordinal’.
b) Clicking [Identity] displays only the records that meet the conditions so that the specified conditions (In this example, extract the lines including the character string ‘PLACMENT.’) can be verified.
Project050201S-36E03
1
Project050201S-37E02
2
a b
5.2 Defining CAD Macro
3 Define the field.
Define the field necessary to define placement points. To define placement points, all the fields below must be defined.
• Component name
• X coordinate
• Y coordinate
• Rotation
The fields below are options.
• Reference number
• Comments
• Pattern Designator
• Part Description
• Insertion Pitch
The field defined as [Part Description] is set to [Description] of a part during import. If
[Comment] is selected on the BOM tab, [Description] comes first before [Part description].
The field defined as [Insertion Pitch] is set to [Insertion Interval] of a part during import.
For the setting of insertion interval, see ’5.8.3 Adding Placement Points’ → ‘④ Insertion Pitch’.
The component name is stored in the 3rd column. According to it, define the component name.
Choose [Part Name] from the combo box in the 3rd column.
The 3rd column has been defined as [Part Name].
Project050201S-39E02
3
Project050201S-40E02
4 Repeat these procedures to define the other fields.
• X coordinate (5th column)
• Y coordinate (6th column)
• Rotation (7th column)
• Reference number (4th column)
• Placement surface (1st column)
5 Apply the definition.
Click [Apply] to save the definition.
Repeat the steps above, and define for each record type.
Project050201S-42E02 Project050201S-41E02
5
4
5.2 Defining CAD Macro
Defining the CAD format when the position-specified CAD file is used
1 Choose the record type to define.
For ‘Record Type’ available for setting, see ‘5.2.1 CAD Macro Editor’ ‘2. Defining the CAD format’ ‘ CAD tab’ ‘
Relationship of record types and field definition.’
You are recommended to define a placement point first.
The displayed field varies with the selected record type.
2 Choose the ID method to use.
For ‘ID Method’ available for use, see
‘5.2.1 CAD Macro Editor’ ‘2. Defining the CAD format’ ‘ CAD tab’ ‘ Relationship of record types and field definition.’
The displayed option varies with the selected ID method.
Set a value appropriate for the displayed option.
3 Click [Identify].
The CAD file is searched under the conditions set by the ID method, and the search results will be displayed.
The field list is displayed at the upper right of the window. The defined field names and their start and end positions are displayed here.
4 Select the data from the displayed CAD file, and select the field name shown on the menu.
You should define all the essential fields (with
‘’ at the end) at least.
5 Click [Apply].
Project050201S-43E01
2 1 3
Project050201S-44E00
4
5
Example of CAD macro definition
This section describes an example of definition to extract placement points from a positional CAD file.
Let’s assume that a record including the string ‘PLACMENT’ in the CAD file is one that defines a placement point.
1 Choose the definition target.
Choose [Placement] from ‘Record Type’.
2 Define the extraction conditions.
Choose [String] from ‘ID Method’.
a) Type ‘PLACMENT’ into ‘String’.
b) Pressing [Identify] displays only the records that meet the conditions so that the specified conditions (In this example, extract the lines including the character string ‘PLACMENT.’) can be verified.
Project050201S-46E01
1
Project050201S-47E01
2
b a
5.2 Defining CAD Macro
3 Define the field.
Define the field necessary to define the placement point. To define placement points, all the fields below must be defined.
• Component name
• X coordinate
• Y coordinate
• Rotation
The fields below are options.
• Placement surface
• Reference number
• Comment
• Pattern identification
•Part description
The field defined as [Part description] is set to [Description] of a part during import. If
[Comment] is selected on the BOM tab, [Description] comes first before [Part description].
The component names are stored in the field from 17th character to 36th character. According to them, define the component names.
a) Click 17th character and drag to 36th character.
b) Release the button so that the menu is displayed. Put a cursor on the component name, and click it.
c) The start and the end points of Field ‘Part Name’ are defined.
Project050201S-51E01
c
Project050201S-50E01
b
Project050201S-49E01
a
4 Repeat the same procedures to define the other fields.
• X coordinate (49th to 58th)
• Y coordinates (60th to 69th)
• Rotation (71st to 74th)
5 Apply the definition.
Press [Apply] to save the definition.
By repeating the procedures above, give a definition (to each record type separately).
Project050201S-53E01 Project050201S-52E01
5
4
5.2 Defining CAD Macro
BOM tab
BOM tab when the delimiter-specified BOM file is used BOM tab when the position-specified BOM file is used
Relationship of record types and field definition
Record Type: Define ‘ID Method’ and relevant fields to define a record. If necessary, convert the fields. All the record types contained in the BOM file are displayed in a list.
Record types with ‘’ indicate that they have been identified by the macro.
Record Type Explanation Field Indispensable setting [Bill of Materials] BOM file data showing component data.
The field defined as comment is set to [Description] of a part during import. If [Part description] has already been defined on the CAD tab, comment comes first.
Component name ○
Reference number -
Explanation -
Shape code -
Version 1 Marker - Version 2 Marker - Version 3 Marker - Version 4 Marker - Version 5 Marker -
[PCB Version] PCB revision number PCB version ○
Version 1 Marker - Version 2 Marker - Version 3 Marker - Version 4 Marker - Version 5 Marker - [Identifier List] BOM file data showing reference numbers. This is
used for BOM files that set component names to one or more reference numbers.
Reference number ○
Component name -
Explanation - Version 1 Marker -
Version 2 Marker - Version 3 Marker - Version 4 Marker - Version 5 Marker -
Project050201S-54E01
1
2
7 8
3 4 5
6
Project050201S-55E01
1
2
7 8
3 4 5
6
Record Type Explanation Field Indispensable setting [Identifier List 2] BOM file data showing reference numbers. This
is used for BOM files that set component names to one or more reference numbers.
Reference number ○
Component name -
Explanation -
Version 1 Marker -
Version 2 Marker -
Version 3 Marker -
Version 4 Marker -
Version 5 Marker -
[BOM comment] Comment on the BOM file. Up to six types of
comments can be defined. -
5.2 Defining CAD Macro
Item Explanation
‘ID Method’ The ID method function can determine the collective identification of record types in the CAD file. Each record should be identified during the conversion process. As a part of the CAD system, a check mark () is attached to the identified records. Selecting the ID method displays the field list and each input window under ‘ID Method.’
[Unused] Indicates that the selected (highlighted) record types are not used by the BOM system. By default, [Not Used] is set.
[Character string] Identifies a character string as one record. Selecting [Character string]
opens a box to input a character string. Input a character string unique to the selected sample BOM file. The position of the character string can be anywhere in the record. For example, if ‘CF’ is displayed only in the mark record, it is OK to use ‘CF’ for identification of the record type for
placement point recognition.
[Field contents] Uses a specific field content to identify the record type. Selecting [Field contents] opens a box to input [Character string] and [Column]. Input a character string unique to the selected sample CAD file, and specify [Row No.] of the record.
[Range] Displays all the record types by block. When [Range] is selected, [Start/End character] will be displayed under ‘ID Method.’ Input a unique character string, and specify the range of the records. The position of the character string can be anywhere in the record. If the starting and ending characters are not specified, the range will be from the beginning and ending of the file.
[Remaining] Identifies the highlighted record type as one of the record types other than the defined ones. Only one record is applicable per CAD file.
‘Total Records’ Displays the number of total records searched by the sample CAD file.
(For reading only)
‘Total Identified’ Displays the number of total records identified by the selected CAD sample file.
(For reading only)
‘Records Unidentified’ Displays the number of total records that are not recognized by the defined identification types.
(For reading only)
Checkbox
Item Explanation
‘Advance Field Definition’ Loads the CAD file information by using the formula against each field of the specified record type when referring the CAD file.
Button
Button Explanation
[Identify] Clicking this starts searching for the BOM file under the condition set by the ID method and displays the results in the sample file area in the lower part of the window. By clicking [Identify] before defining the fields required for the BOM file record, you can display the target records only.
[Apply] Clicking this saves the changes of the record type definition. To save the record, all the essential fields need to be defined. The essential fields are displayed with ‘’ in the field selection combo box.