📄 eagle.def
字号:
; Device definitions for EAGLE version 4.16:
;
; [NAME] device name (as in command line option "-d" or menu)
; @NAME inherits data from [NAME] (max. nesting level is 10!)
; Type basic device type (must immediately follow [NAME]):
;
; PenPlotter pen plotter
; PhotoPlotter photoplotter
; DrillStation drill station
; Generic generic device (used for e.g. PostScript)
; Calcomp Calcomp pen plotter
; CalcompE CalComp electrostatic plotter
;
; Common parameters for all types of devices:
;
; Long long name (description) of device
; Init string to initialize device before printing
; Reset string to reset device after printing
; ResX/Y resolution in X/Y direction (dots or steps per inch, default = 1000)
; CorrectX/Y used to correct hardware tolerances (default = 1.0)
; OffsetX/Y defines an offset from the machine's origin (default = 0.0)
; Width page width (inch) (default = 8.0)
; Height page height (inch) (default = 12.0)
; Output name of the output file or port
; Color.NN color number to use for layer NN, e.g.
; Color.120 = 3 ; will use color '3' for layer '120'
;
; Parameters for drawing devices (PenPlotter, PhotoPlotter):
;
; Draw draw a line to (x, y)
; Move move the pen to (x, y)
; PenDown lower the pen
; PenUp lift the pen
;
; Parameters for pen plotters (PenPlotter):
;
; PenArcCxCyAd draw an arc from CP with center (Cx, Cy) and angle Ad
; PenCircleCxCyRxCxCyRx draw a circle at (Cx, Cy) with radius Rx
; PenCircleCxCyRxRy draw a circle at (Cx, Cy) with radius Rx and Ry
; PenCircleRxCxCy draw a circle at (Cx, Cy) with radius Rx
; PenCircleRxn draw a circle at CP with radius Rx (negtive!)
; PenCircleRxRx draw a circle ar CP with radius Rx
; PenSelect select pen
; PenSpeed string to set pen speed
; PenDiameter pen diameter (mm)
; PenVelocity pen velocity (device dependent value)
;
; Parameters for drill stations (DrillStation):
;
; DrillSize string for drill size definition in output file
; AutoDrill string for automatic drill generation
; FirstDrill number of the first drill to use with AutoDrill
; BeginData string to mark the beginning of the actual drill data
; Select string to select a tool
; Divide divides coordinates (default = 1.0)
; Drill string to drill a hole at (x, y) [with tool]
; Info string that is copied into the drill info file
; Rack name of the drill rack file
;
; Parameters for photo plotters (PhotoPlotter):
;
; AutoAperture string for automatic aperture generation
; Aperture string to select an aperture
; Flash string to flash an aperture
; Info string that is copied into the photo plotter info file
; Wheel name of the aperture wheel file name
; FirstAperture number of the first aperture to use with AutoAperture
; ToleranceDrawM negative draw tolerance
; ToleranceDrawP positive draw tolerance
; ToleranceFlashM negative flash tolerance
; ToleranceFlashP positive flash tolerance
; EmulateApertures turns aperture emulation on (YES) or off (NO)
; EmulateAnnulus turns annulus emulation on (YES) or off (NO)
; EmulateThermal turns thermal emulation on (YES) or off (NO)
; Circle defines embedded circle aperture
; Rectangle defines embedded rectangle aperture
; Octagon defines embedded octagon aperture
; Oval defines embedded oval aperture
; Annulus defines embedded annulus aperture
; Thermal defines embedded thermal aperture
; MaxApertureSize maximum physical aperture size (inch)
;
; Parameters for DrillStation and PhotoPlotter;
;
; Units the units used in *.GPI and *.DRI files
; valid units are Inch, MM and Auto[default] (automatically
; chooses the unit with the least decimal digits)
; Decimals the number of decimals to use when Units is set to Inch
; or MM (default = 4). Values are rounded to this number of
; decimals.
;
; Parameters for generic devices:
;
; Header1 header string used for PostScript
; Header2 header string used for PostScript
; Header3 header string used for PostScript
; StartPage string that starts a new page
; EndPage string that ends a page
; ArcCxCyRWSaEaC string that draws an arc at (Cx, Cy) with Radius, Width, Start angle, End angle and line Cap
; Bar string that draws a bar
; Circle string that draws a circle
; Line string that draws a line
; Octagon string that draws an octagon
; Pie string that draws a pie
; Hole string that draws a hole
; HwArcX1Y1CxCyA string that draws an arc with hardware coordinates
; HwArc string that draws an arc with hardware coordinates
; HwCircle string that draws a circle with hardware coordinates
; HwColor string that sets the color
; HwLine string that draws a line with hardware coordinates
; HwPie string that draws a pie with hardware coordinates
; HwPoly1 string that start a polygon with hardware coordinates
; HwPoly2 string that draws a polygon edge with hardware coordinates
; HwPoly3 string that ends a polygon with hardware coordinates
; HwStartPage string that starts a page
; HwWidth string that sets line width with hardware units
; MaxHwWidth maximum hardware line width
;
; Strings have to be enclosed in double quotes ("...").
; If a double quote has to be part of the string, it must be escaped with
; a backslash, e.g. "abc\"def".
; If a backslash has to appear in the string, it has to be doubled,
; e.g. "abc\\def" would result in abc\def.
; Non-printable characters inside strings are written as "\xhh" with 2
; hex digits, e.g. "\x1B" would mean ESCape; the digits may be upper- or
; lowercase, but it has to be exactly two of them!
; The following characters have special meanings when escaped with
; a backslash:
;
; \0 NUL integer 0 \x00
; \a BEL alert \x07
; \b BS backspace \x08
; \f FF form feed \x0C
; \n NL (LF) newline \x0D\x0A
; \r CR carriage return \x0D
; \t HT horizontal tab \x09
; \v VT vertical tab \x0B
; \xhh hh hex number \xhh
;
; If a string parameter is too long to fit into one line it can be continued
; on the next line by escaping the end of line with a backslash, e.g.
; Parameter = "A very long string " \
; "which takes several " \ some comment
; "lines.\n"
; Note that the backslash terminates the line, so everything after the '\'
; character is discarded (this may be used for additional comments).
[HPPJETXL300C]
@HPGL2
Long = "HP PaintJet XL300 (150 dpi, 16.8M colors)"
; The HP PaintJet XL300 can print up to 16.8M colors. However, these are
; always created by mixing the basic colors cyan, magenta, and yellow.
; Thus non-basic colors (especially light tones) will appear rastered when
; closely viewed.
;
; The default INIT string of the HPGL2 driver sets the printer up for
;
; 'NP14' 14 pens
; 'CR0,15,0,15,0,15' a color range from 0 to 15 for each bacic color,
; which results in a maximum of 4096 different colors
; 'MC1' transparent printing (overlapping colors mix!)
; 'PC 1,15, 0,15' pen 1: magenta
; 'PC 2, 0,15,15' pen 2: cyan
; 'PC 3, 0, 0,15' pen 3: blue
; 'PC 4,15,15, 0' pen 4: yellow
; 'PC 5,15, 0, 0' pen 5: red
; 'PC 6, 0,15, 0' pen 6: green
; 'PC 7, 0, 0, 0' pen 7: black
; 'PC 8,15,12,15' pen 8: light magenta
; 'PC 9,12,15,15' pen 9: light cyan
; 'PC10,12,12,15' pen 10: light blue
; 'PC11,15,15,12' pen 11: light yellow
; 'PC12,15,12, 0' pen 12: light red
; 'PC13,12,15, 0' pen 13: light green
; 'PC14,11,11,11' pen 14: grey
;
; You can modify the colors by changing the 'PCn,r,g,b' commands, where
;
; n = pen number
; r = red component
; g = green component
; b = blue component
;
; Note that although the printer has cyan, magenta and yellow as basic
; colors, the 'PC' commands use RGB (red-green-blue) values, according to
; the NTSC specification!
[DESIGNJET220]
@HPGL2
Long = "HP DesignJet 220, HPGL2-Mode"
Init = "\x1B%%1BIN;IP0,0,100,100SC0,100,0,100"\
"WU1MC1NP14CR0,15,0,15,0,15"\
"PC1,15,0,15PC2,0,15,15PC3,0,0,15PC4,15,15,0"\
"PC5,15,0,0PC6,0,15,0PC7,0,0,0PC8,15,12,15"\
"PC9,12,15,15PC10,12,12,15PC11,15,15,12PC12,15,12,0"\
"PC13,12,15,0PC14,11,11,11"\
"PA;\n"
Reset = "PG;\x1B%%0A\f"
HwColor = "SP%u" ; (Pen-Number) precede this line with ';' for b/w
;Use the following as first line of the Init string for A3 sized paper:
;Init = "\x1B&l27A\x1B%%-1BIN;IP0,0,100,100SC0,100,0,100"\
[DESIGNJET650]
Type = Generic
Long = "HP DesigJet 650C, HPGL2"
Init = "\x1B%%-12345X@@PJL ENTER LANGUAGE = HPGL2\n"\
"\x1B%%-1BBIN;IP0,0,100,100SC0,100,0,100"\
"WU1MC1NP14CR0,15,0,15,0,15"\
"PC1,15,0,15PC2,0,15,15PC3,0,0,15PC4,15,15,0"\
"PC5,15,0,0PC6,0,15,0PC7,0,0,0PC8,15,12,15"\
"PC9,12,15,15PC10,12,12,15PC11,15,15,12PC12,15,12,0"\
"PC13,12,15,0PC14,11,11,11"\
"PA;\n"
Reset = "PUSP0PG;"
ResX = 1016
ResY = 1016
HwArcX1Y1CxCyA = "PU%d,%dPDAA%d,%d,%d\n" ; (x1, y1, xc, yc, ArcAngle)
HwColor = "SP%u" ; (Pen-Number)
HwLine = "PU%d,%dPD%d,%d\n"
HwPoly1 = "PU%d,%dPM0PA%d,%d" ; first edge
HwPoly2 = ",%d,%d" ; other points
HwPoly3 = "PM2FP;\n" ; end of polygon
HwWidth = "PW%u" ; (Pen-Width)
MaxHwWidth = 5
[HPGL]
Type = PenPlotter
Long = "HP-GL plotter"
Init = "IN; IP 0,0,100,100; SC 0,100,0,100;\n"
Reset = "PU; SP 0; PA 0,0;\n"
Width = 16
Height = 11
ResX = 1016
ResY = 1016
PenSelect = "SP %u;\n" ;; Pens numbered 1..n
PenSpeed = "VS %1.0f;\n"
PenUp = "PU;\n"
PenDown = "PD;\n"
Move = "PA %d,%d;\n"
Draw = "PA %d,%d;\n"
PenCircleCxCyRxRy = "AA %d,%d,360;\n" ; (assumes CP is left?!)
PenArcCxCyAd = "AA %d,%d,%1.2f;\n" ; (assumes CP is at start of arc)
; Cx/y Center X/Y (long)
; Rx/y Radius X/Y (long)
; Ad Angle in degrees (double)
[HPGLX]
@HPGL
Long = "HP-GL plotter (serial, with Xon/Xoff handshake)"
Init = "\x1B.I;;17:\x1B.N;19:"\
"IN; IP 0,0,100,100; SC 0,100,0,100;\n"
[SPL10]
@HPGL
Long = "Sekonic SPL 10 plotter"
[CX6000]
Type = PenPlotter
Long = "C.Itoh CX6000 plotter"
Init = ""
Reset = "M0,0\n"
Width = 16
Height = 11
ResX = 254
ResY = 254
PenSelect = "C%u\n" ;; Pens numbered 0..n-1
Move = "M%d,%d\n"
Draw = "D%d,%d\n"
[DXY800]
Type = PenPlotter
Long = "Roland DXY-800 plotter"
Init = ""
Reset = "J0\nH\n"
Width = 16
Height = 11
ResX = 254
ResY = 254
PenSelect = "J %u\n"
Move = "M %d,%d\n"
Draw = "D %d,%d\n"
PenCircleRxRx = "E %d,180,360\nE %d,0,180\n"
[DPX2200]
@HPGL
Long = "Roland DPX-2200 plotter"
[ADCOMP]
Type = PenPlotter
Long = "ADCOMP X 100 plotter"
Init = ""
Reset = "M0,0\n"
Width = 16
Height = 11
ResX = 254
ResY = 254
PenSelect = "C%u\n" ;; Pens numbered 1..n
Move = "M%d,%d\n"
Draw = "D%d,%d\n"
PenCircleCxCyRxCxCyRx = "W%d,%d,%d,180,360,1\nW%d,%d,%d,0,180,1\n"
[WX4671]
Type = PenPlotter
Long = "Watanabe WX4671 plotter"
Init = ""
Reset = "M0,0\n"
Width = 16
Height = 11
ResX = 254
ResY = 254
Move = "M%d,%d\n"
Draw = "D%d,%d\n"
[HPX84]
Type = PenPlotter
Long = "HPX-84 plotter"
Init = "SH\n"
Reset = "SH\nAP 0 0\n"
Width = 16
Height = 11
ResX = 254
ResY = 254
PenUp = "SH\n"
PenDown = "SS\n"
Move = "AP %d %d\n"
Draw = "AP %d %d\n"
PenCircleCxCyRxRy = "SH\nAK %d %d %d\n"
[YEWPL]
Type = PenPlotter
Long = "Yokogawa PL 1000 plotter"
Init = "IP 0;IW 0,0,380,250; IP 1;\n"
Reset = "MA 0,0\n"
Width = 16
Height = 11
ResX = 254
ResY = 254
PenSelect = "PS %u\n"
PenSpeed = "PV %1.0f\n"
Move = "MA %d,%d\n"
Draw = "DA %d,%d\n"
PenCircleRxCxCy = "AC %d,%d,%d,1800,5400\n"
[ADCOMP300]
Type = PenPlotter
Long = "ADCOMP X 300 plotter"
Init = "H\n"
Reset = "J0\nH\n"
Width = 16
Height = 11
ResX = 254
ResY = 254
PenSelect = "J%u\n"
PenSpeed = "T%1.0f\n" ;;max(min(sround(PenVelocity / 2), 10), 1)
Move = "M%d,%d\n"
Draw = "D%d,%d\n"
PenCircleCxCyRxRy = "W%d,%d,%d,%d,1800,5400\n"
[MP1000]
Type = PenPlotter
Long = "Watanabe MP1000 plotter"
Init = ""
Reset = "J0\nH\n"
Width = 16
Height = 11
ResX = 254
ResY = 254
PenSelect = "J%u\n"
PenSpeed = "T%1.0f\n"
Move = "M%d,%d\n"
Draw = "D%d,%d\n"
[EPSONHI80]
@MP1000
Long = "EPSON HI-80 plotter (Plot-Mode 1)"
[SWEET]
Type = PenPlotter
Long = "SWEET-P 100 plotter"
Init = "RE;\n"
Reset = "HO;\n"
Width = 16
Height = 11
ResX = 254
ResY = 254
PenSpeed = "VS %1.0f;\n" ;;max(15, sround((PenVelocity * 15) / 75))
Move = "MA %d,%d;\n"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -