• No results found

File > Setup Access Code

In document CAM350 Ver.10 Macro Manual (Page 189-198)

saveaslibitem@ "Filename"

Saves either a CAP, a PART, or a SYMBOL to the current library.

saveaslib@ Mode, LibID, "Filename"

This saves the entire library.

Mode:

1 = part 2 = cap 7 = symbol LibID:

0 = system (name is ignored) 1 = external

SymSetType@ #

Sets the type for the symbol being saved:

1 = coupon 2 = title block 3 = pinning hole 4 = fiducial

saveaslibitem@ "Filename"

Saves a symbol to the current library.

Example SymSetType@ 1

saveaslibitem@ "new coupon"

back@

File > Setup

Access Code

There are no macro commands for this feature.

Colors

There are no macro commands for this feature.

Drill Machine

Expdrl_ToolFile@ "filename"

Includes the file in the tool definition area.

Expdrl_TrailerFile@ "filename"

Includes the file before closing M02.

Expdrl_generate_Tools@ #

Includes the CAM350 description of the tools. 1 = Yes, 0 = No.

Expdrl_generate_Header@ #

Includes the CAM350 header information.

nc_exp_drill_detect@ #

Sets DETECT,ON directive status:

0=do not include 1=include

nc_exp_drill_atc@ #

Sets ATC,ON directive status:

0=do not include 1=include

nc_exp_drilltool_infeed@ # Adds tool in-feed rate:

0=do not include 1=include

nc_exp_drilltool_retract@ # Adds tool retract speed:

0=do not include 1=include

nc_exp_drilltool_RPMs@ #

Adds spindle spin rate:

0=do not include 1=include

nc_exp_drilltool_MaxHits@ #

Adds maximum tool hits:

0=do not include 1=include

nc_exp_drill_version@ #

Adds the VER value (1-8) that tells the machine how to interpret the coordinate base of the file.

nc_exp_drill_t00@ 1

Adds the T00 command at the end of the drill file:

1=append

0=do not append

Import_End_of_Block@ #, # and Export_End_of_Block@ #, #

This sets up the end of block character for the various formats.

The first # is the machine type:

0=photoplotter 1=drill machine 2=mill machine

The second # is the ASCII value for the desired end of block character.

For example, 42=*, 37=$, and 10=carriage return. The default is 42.

Import_XYmodal@ #, # and Export_XYmodal@ #, # This sets the mode as modal or nonmodal.

The first # is the machine type:

0=photoplotter 1=drill machine 2=mill machine

The second # is modal on/off (0=off, 1=on). The default is ON.

setup_fmtype@ 1,5

Sets the output Format:

First #:

0 = photoplotter 1 = drill machine 2 = mill machine

Second #:

5 = Excellon

6 = Sieb & Meyer 1000 7 = Sieb & Meyer 3000 Example

expdrl_generate_Header@ 0 nc_exp_drill_detect@ 0 nc_exp_drill_atc@ 0 export_XYmodal@ 1,0 nc_exp_drill_t00@ 1 expdrl_generate_Tools@ 0 setup_fmtype@ 1,5

File Extensions

setup_fext@ Format%,Ext$

Sets the default file extension to use for a particular format of file.

Format% is defined as follows (all numeric codes must begin with a 10; i.e. 1000 = Design Files):

00 = Design files

10 = Custom aperture library files 11 = Part library files

12 = IPC files 13 = Aperture files 14 = ECAM design files 15 = Polygon pattern files 16 = ECAM library files 17 = NC Mill tool table files 18 = NC Drill tool table files 19 = Drill and Mill header files 41 = NC Mill tab files

42 = NC Tool Table files (contains mill and/or drill) 43 = Part to Part files

Ext$ is the new extension to use; (i.e. "txt").

file_setup_save@

Saves current Preference settings to the default database (CAM350.CAM or CAM350.CAM).

Example

setup_fext@ 1019, "hdr"

file_setup_save@

Film Box

setfilmbox@ 0.0000,20000.0000,24000.0000,0.0000

Sets the size of the film box in inches. The values are not grid coordinates--they are based on the lower left X and Y values of the film box, which are always 0.

The first value is the lower left X coordinate (always 0), second value is the upper right Y coordinate, third is the upper right X coodinate, and fourth is the lower left Y coordinate (always 0).

setfilmboxorigin@ #

Defines which area of the filmbox is located on the origin.

1 = Lower left corner.

2 = Upper left corner.

3 = Center of film box.

4 = Upper right corner.

5 = Lower right corner.

set_filmboxorigin@ 0.0000,0.0000

Sets the origin of the film box in inches. The values are grid coordinates.

Mill Machine

Expmill_ToolFile@ "filename"

Includes the file in the tool definition area.

Expmill_TrailerFile@ "filename"

Includes the file before closing M02.

Expmill_generate_Tools@ #

Includes the CAM350 description of the tools. 1 = Yes, 0 = No.

Expmill_generate_Header@ #

Includes the CAM350 header information. 1 = Yes, 0 = No.

nc_exp_mill_detect@ #

Sets DETECT,ON directive status:

0=do not include 1=include

nc_exp_mill_atc@ #

Sets ATC,ON directive status:

0=do not include 1=include

nc_exp_milltool_infeed@ #

Adds tool in-feed rate:

0=do not include 1=include

nc_exp_milltool_retract@ # Adds tool retract speed:

0=do not include 1=include

nc_exp_milltool_RPMs@ #

Adds spindle spin rate:

0=do not include 1=include

nc_exp_mill_version@ 1

Adds the VER value (1-8) that tells the machine how to interpret the coordinate base of the file.

nc_exp_mill_t00@ 1

Adds the T00 command at the end of the drill file:

1=append

0=do not append

Import_End_of_Block@ #, # and Export_End_of_Block@ #, # This sets up the end of block character for the various formats.

The first # is the machine type:

0=photoplotter 1=drill machine 2=mill machine

The second # is the ASCII value for the desired end of block character.

For example, 42=*, 37=$, and 10=carriage return. The default is 42.

Import_XYmodal@ #, # and Export_XYmodal@ #, #

This sets the mode as modal or nonmodal.

The first # is the machine type:

0=photoplotter 1=drill machine 2=mill machine

The second # is modal on/off (0=off, 1=on). The default is ON.

setup_fmtype@ 2,5

Sets the output Format:

First #:

0 = photoplotter 1 = drill machine 2 = mill machine

Second #:

5 = Excellon

6 = Sieb & Meyer 1000 7 = Sieb & Meyer 3000

Example

expmill_generate_Header@ 0 export_XYmodal@ 2,0

nc_exp_mill_t00@ 1

expmill_generate_Tools@ 0 setup_fmtype@ 2,5

Paths

setup_path@ Code#,Path$

Alters the path from which files are opened, imported, or exported.

Code# specifies the file type the path is being changed for, as follows (note the code always begins with a 100 - i.e. 1000 = Aperture Files):

1 = Aperture files

2 = ARL (aperture rule) files 3 = Import from here

4 = Export to here 5 = Macro files

6 = Custom aperture library files 7 = Part library files

8 = Symbol library files 9 = CAD files

Path$ is the name of the directory path

Photoplotter

import_end_of_block@ 0,37 export_end_of_block@ 0,37

These commands set up the end of block character for the various formats.

The first # is the machine type:

0=photoplotter 1=drill machine 2=mill machine

The second # is the ASCII value for the desired end of block character.

For example, 42=*, 37=$, and 10=carriage return. The default is 42.

import_photo_expose@ 0 export_photo_expose@ 0

These commands set the default photo expose mode, if the G55 code does not exist. Default is off.

1 = on 0 = off

import_quadrant_arc@ 1

This sets the assumed interpolated arc type if no G74/G75 is present. This value only has an effect on files where the arc type is not explicitly defined. Default is Quad.

0=full arcs are assumed 1=quad arcs are assumed

export_include_cr@ 1

This controls whether the exported Gerber file will contain a Carriage Return (CR) at the end of each line.

1 = on (include CR's) 0 = off (no CR's)

import_ignore_same_arc_end@ 0

This determines whether incoming arcs that have the same coordinate for both the start and end points are read in as a circle or ignored.

0 = off (accept as circle) 1 = on (ignore the arc)

Default is off (considered a circle).

export_include_hdr_comments@ 1

Sets whether database and date comments should appear in the header.

1 = Include 0 = exclude

set_plotsteprepeat@ 1

Determines if step & repeat codes will be exported to photoplotter:

1 = yes 0 = no

import_XYmodal@ 0,1 export_XYmodal@ 0,1

These commands set the mode as modal or nonmodal, for import and export.

The first # is the machine type:

0=photoplotter 1=drill machine 2=mill machine

The second # is modal on/off (0=off, 1=on). The default is ON.

import_default_polarity@ -1

Sets the polarity of the imported plotter files.

0 = clear 1 = dark

-1 = no change

setup_fmtype@ 0,0

First # specifies output device:

0 = photoplotter 1 = drill machine 2 = mill machine

Second # specifies output format:

0 = 274 1 = 274X 2 = Fire 9xxx 3 = Barco DPF 4 = Reserved 5 = Excellon

6 = Sieb & Meyer 1000 7 = Sieb & Meyer 3000

Example

import_end_of_block@ 0,97 export_end_of_block@ 0,98 export_photo_expose@ 1 import_photo_expose@ 1 import_quadrant_arc@ 0 export_include_cr@ 0

import_ignore_same_arc_end@ 1 export_include_hdr_comments@ 0 set_plotsteprepeat@ 0

import_XYmodal@ 0,0 export_XYmodal@ 0,0

import_default_polarity@ -1 setup_fmtype@ 0,1

Preferences

set_undostat@ 0

Turns Undo on or off.

0 = off 1 = on

set_ipc_cr@ 0

Adds carriage return linefeeds to exported IPC files.

0 = no CR added 1 = CR is added

set_refreshfonts@ 1

Determines whether a database uses the old font definitions it contains, or loads new font definitions each time its loaded:

0 = use old fonts 1 = load new fonts

backup_stat@ 1

Specifies if a backup of the current database should be saved automatically.

0 = off 1 = on

backup_intrvl@ #

Sets the time interval to save to backup.

# is in minutes

settexteditor@ "editor"

Sets a different text editor instead of the Windows Notepad. The entire path must be included unless the path is included in the system path. "Editor" will be called, followed by the file name.

explode_FillCustPoly@ 1

Determines how custom apertures will be exploded using the Edit > Change > Explode > Custom command:

0 = explode custom to polygons 1 = explode custom to intrinsics precise_arcs_approximation@ 0

Determines how accurate arcs are approximated by segments in commands such as Add Polygon and Draw to Raster.

0 = faster performance, less accurate arc approximation 1 = more accurate arc approximation

Save Defaults

file_setup_save@

Saves current Preference settings to the default database (CAM350.CAM or CAM350.CAM).

File > Test Point Attribs

In document CAM350 Ver.10 Macro Manual (Page 189-198)

Related documents