Post by NeuschHallo NG,
ich würde gerne die Ausgabe der Extendet-Gerber auf Millimeter skalieren.
Laut Handbuch muss für den Treiber [GERBER] nur Inch mit mm überschrieben
werden.
Bei [GERBER_RS274X] geht das irgendwie nicht so einfach! (?).
Von euch hat das bestimmt schon jemand gemacht. Könnte derjendige vielleicht
die Änderungen hier kurz veröffentlichen. Das ganze vielleicht auch gleich
für [EXCELLON], wäre nett.
Danke
Mathias Neusch
Übernehmen Sie einfach folgende Definitionen in der eagle.def:
[GERBER_MM_34]
Type = PhotoPlotter
Long = "Gerber photoplotter"
Init = "G01*\nX0000000Y0000000D02*\n"
Reset = "X0000000Y0000000D02*\nM02*\n"
ResX = 254000
ResY = 254000
;Wheel = ""
Move = "X%07dY%07dD02*\n" ; (x, y)
Draw = "X%07dY%07dD01*\n" ; (x, y)
Flash = "X%07dY%07dD03*\n" ; (x, y)
Aperture = "%s*\n" ; (Aperture code)
Units = mm
Decimals = 5
Info = "Plotfile Info:\n"\
"\n"\
" Coordinate Format : 3.4\n"\
" Coordinate Units : mm\n"\
" Data Mode : Absolute\n"\
" Zero Suppression : None\n"\
" End Of Block : *\n"\
"\n"
[GERBERAUTO_MM_34]
@GERBER_MM_34
Long = "Gerber photoplotter with automatic aperture wheel generation"
Wheel = "" ; avoids message!
AutoAperture = "D%d" ; (Aperture number)
FirstAperture = 10
Decimals = 5
Units = mm
;MaxApertureSize = 0.2 ; Inch
[GERBER_RS274X_MM_34]
@GERBERAUTO_MM_34
Long = "Gerber photoplotter with RS-274-X aperture generation"
Units = mm
Init = "G75*\n" \ allow positive and negative coordinates
"G71*\n" \ units are mm
"%%OFA0B0*%%\n" \ horizonal and vertical OFfset is 0
"%%FSLAX34Y34*%%\n"\ Format Statement is Absolute (I for incremental) 3.4
"%%IPPOS*%%\n" \ Image Polarity is POSitive (NEG for nagative)
"%%LPD*%%\n" \ Layer Polarity Dark (C for clear on negative planes)
"%%AMOC8*\n5,1,8,0,0,1.08239X$1,22.5*\n"\ Octagons are emulated with a circle (using
8 vertices)
"%%\n" ; and therefore the diameter must be enlarged with '1 / cos(pi / 8)'
Reset = "M02*\n"
Circle = "%%AD%sC,%7.4f*%%\n" ; (code, diameter)
Rectangle = "%%AD%sR,%7.4fX%7.4f*%%\n" ; (code, dx, dy)
Oval = "%%AD%sO,%7.4fX%7.4f*%%\n" ; (code, dx, dy)
; According to the RS-274-X specs there is an aperture macro
; primitive that allows us to specify an octagon (i.e. a polygon with
; 8 vertices). As some Gerber viewers seem to have problems with that,
; we would have to use a round shape for that.
; If your Gerber processor cannot handle the polygon primitive you may
; uncomment the following line and comment out the line after it:
;Octagon = "%%AD%sC,%7.4f*%%\n" ; (code, diameter) (looks like there is no octagon, so we
take a circle)
Octagon = "%%AD%sOC8,%7.4f*%%\n" ; (code, diameter)
Annulus = "%%AMAN%s*\n1,1,%7.4f,0,0*\n1,0,%7.4f,0,0*\n"\
"%%\n"\
"%%AD%sAN%s*%%\n" ; (code, diameter, inner diameter, code, code)
Thermal = "%%AMTH%sX*\n1,1,%7.4f,0,0*\n1,0,%7.4f,0,0*\n"\
"21,0,%7.4f,%7.4f,0,0,45*\n21,0,%7.4f,%7.4f,0,0,135*\n"\
"%%\n"\
"%%AD%sTH%sX*%%\n"; (code, diameter, inner diameter, diameter + 2mil, gap, diameter
+ 2mil, gap, code, code)
--
Mit freundlichen Gruessen / Best regards
Richard Hammerl
CadSoft Support -- ***@cadsoft.de
FAQ: http://www.cadsoft.de/faq.htm