资料讲义genesis学习文件g04_第1页
资料讲义genesis学习文件g04_第2页
资料讲义genesis学习文件g04_第3页
资料讲义genesis学习文件g04_第4页
资料讲义genesis学习文件g04_第5页
已阅读5页,还剩121页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

GENESIS2000SystemHooks1Genesis2000HooksTraining$GENESIS_DIR/sys/hooksRichardYuGENESIS2000SystemHooks21.acquireDescriptionThishookisactivatedwhentheFile>AcquirecommandisactivatedattheEngineeringToolkitwindow.ItisusedtoimportjobsfromtheSTAR1000system.SeeAlsoTheEngineeringToolkit(Doc.0102)Acquire:從Star1000的資料庫系統中將料號取回,並回存到genesis2000的資料庫上GENESIS2000SystemHooks32.area_pixmapsDescriptionThishookisadirectorywhichcontainsbitmapfiles.Whenauserattachestheattribute.area_name=<name>toasurfacefeature,thesurfacewillbedisplayedstippledaccordingtothebitmapfilebythatname.SeeAlsoArea_pixmaps:這是一個目錄,$GENESIS_DIR/sys/hooks/area_pixmaps,內含bitmap檔,========================================================================#defineyux_width100#defineyux_height40staticunsignedcharyux_bits[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xfc,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x03,0x04,0x00,0x00,……………GENESIS2000SystemHooks4Bitmap檔的格式,可由三種方式來製作在WindowsNt或2000./bin/xpaint.exe只要在存檔時,將檔案存成.xbm或.xpm的格式即可.在Solarisunix系統上.執行/usr/dt/bin/sdtimage中的snapshot將螢幕存成.xpm(只適用GUI顯示)在Hpunix系統上,執行/opt/screencapture/bin/capture存成.xbm(只適用GUI顯示)(2,3必須使用轉換程式代轉)若要使bitmap生效,並取代surface的圖形顯示,必須在surface上,加入一個attribute.area_name=<name>.xbm,或<name>.xpm,<name>表示/genesis/sys/hooks/area_pixmaps/<name>.xbm或<name.xpm其格示如上一頁所述.GENESIS2000SystemHooks5GENESIS2000SystemHooks63.camtek.iniDescriptionConfigurationfilefortheCAMTEKinterfacepackage.ThisisthesameconfigurationfilethatisusedbytheCAMTEKAOImachines.SeeAlsoCAMTEKAOIInterface(Doc.0705)4.camtek_zipDescriptionThehookisusedbytheCAMTEKinterfacepackage.Ifitexists,itiscalledafterthesystemcompletesthecreationoftheoutputfilesforasingleCAMTEK-setentity.Thehookshouldbeusedinordertocompressthedirectorywithallthecontainedfilesintoasingle'zip'file.Afterwards,thissinglefileistransferredtotheCAMTEKmachine.GENESIS2000SystemHooks75.cprsheetDescriptionThishookisactivatedwhenviewingtheresultofcoppermeasurementintheGraphicEditor.WhenselectingthespreadsheetoptionintheReportOptionsPopup,thehookwillbeinvokedasacshscript.SeeAlsoTheGraphicEditor(Doc.0601)Cprsheet是一隻script,檔案為於/genesis/sys/hooks/cprsheet,它是在觀看算鍍銅面積的結果,當你在Report選項選擇試算表時,此檔案會被當成C-shell的script呼叫,GENESIS2000SystemHooks8123456GENESIS2000SystemHooks9#!/bin/cshsource$1if($?GENESIS_TMP)then setTMP=$GENESIS_TMPelseif($?GENESIS_DIR)then setTMP=$GENESIS_DIR/tmpelse setTMP=/genesis/tmpendif#SetupguidataandresponsefilessetGUI_DATA=$TMP/gui_data.$$setGUI_RESP=$TMP/gui_resp.$$#Givetheparameterasuitablevariablename.setCU_AREA_FILE=`cat$1`echo'setresult_value=('`cat$1`')'>c:/tmp/aaa1sourcec:/tmp/aaa1GENESIS2000SystemHooks10setline_1="$result_value[1]$result_value[2]$result_value[3]"setline_2="$result_value[4]$result_value[5]$result_value[6]"setline_3="$result_value[7]$result_value[8]$result_value[9]“#Putwindowonscreen.echo"WIN200200">>$GUI_DATAecho"FONTtbr14">>$GUI_DATAecho"BG222299">>$GUI_DATAecho"FG999999">>$GUI_DATAecho"LABELExposedAreaSpreadsheet">>$GUI_DATAecho"LABELfile_name:/genesis/sys/hooks/cprsheet">>$GUI_DATAecho"LABEL123">>$GUI_DATAecho"TEXTnameBOX1:">>$GUI_DATAecho"DTEXTname$line_1">>$GUI_DATAecho"TEXTname1BOX2:">>$GUI_DATAecho"DTEXTname1$line_2">>$GUI_DATAecho"TEXTname2BOX3:">>$GUI_DATAecho"DTEXTname2$line_3">>$GUI_DATAecho"END">>$GUI_DATAGENESIS2000SystemHooks11/genesis/e72/all/gui$GUI_DATA\rm$GUI_DATAabort:exit############################ENDOFPROGRAM#####################GENESIS2000SystemHooks126.drill_size(drill_size.prm,drill_size.awk,drill_size.tab)DescriptionThishookisactivatedwhenenteringfinisheddrillsizesintheDrillToolsManager.Itisalsoactivatedforeachtoolwhenclicking'CalcDrills'inthiswindow.Itisusedtoconvertafinishedholesizeintoadrilledholesize.SeeAlsoTheDrillToolsmanager(Doc.0404)Drill_size(若要$8,$9有效,請將configuration的edt_hs_script設定為genesis)setPanel_TH=“$1”##板厚setFHS=“$2”##標準徑setTYPE_P=“$3”##孔型別setMIN_TOL=“$4”##公差(-)setMAX_TOL=“$5”##公差(+)setUSER_PARAMS=“$6”##UserParameter字串setOUT_FILE=“$7”##輸出檔setTOOL_NUM=“$8”##孔號setDES=“$9”##鑽孔指定字串GENESIS2000SystemHooks13#!/bin/csh#Drillsizedeterminationscript#Parameters:##$1-Panelthickness(mils)#$2-Finishedholesize(mils)#$3-Drilltype(PLATE,NPLATE,VIA)#$4--tol#$5-+tol#$6-Userparametersstring#$7-Outputresultspathname#$8-Toolnumber#$9-DrilldesignatorstringsetechosetPTH="$1"setFHS="$2"setTYPE_P="$3"setMIN_TOL="$4"setMAX_TOL="$5"setUSER_PARAMS="$6"setOUT_FILE="$7"/genesis/sys/hooks/drill_size/genesis/sys/hooks/drill_size.tab/genesis/sys/hooks/drill_size.awk/genesis/sys/hooks/drill_size.prmGENESIS2000SystemHooks14echo$1$2$3$4$5$6>>c:/tmp_dir/ncd/drill_verboseif($USER_PARAMS==“imm_au")thensetENLARGE=4elseif($USER_PARAMS=="hasl")then if($TYPE_P=="VIA")then setENLARGE=4 else setENLARGE=6 endifelseif($USER_PARAMS=="reflow")thensetENLARGE=8elseif($USER_PARAMS=="entek")thensetENLARGE=3elseif($USER_PARAMS=="normal")thensetENLARGE=1endif#ifdrilltypeisNPLATE,enlarge2milif($TYPE_P=="PLATE")thensetENLARGE=0endifGENESIS2000SystemHooks15#ifdrilltypeisNPLATE,enlarge2milif($TYPE_P=="PLATE")thensetENLARGE=0endif

if($TYPE_P=="NPLATE")then setRESP=`echo"$FHS+2"|bc-l`else setRESP=`echo"scale=1;$FHS+$ENLARGE+($MAX_TOL-$MIN_TOL)/2"|bc-l`endifsetRESP=`cat$GENESIS_DIR/sys/hooks/drill_table|awk95-vDRILL=$RESP-f\$GENESIS_DIR/sys/hooks/drill_size.awk`echo$RESPexit0

GENESIS2000SystemHooks16/genesis/sys/hooks/drill_size.prmimm_auhaslreflowentekNormal我們可以利用DesignRulecheck,依照不同的需求在drill_size的script中加入其預漲值,以利DrillToolManager選擇不同的user_param的作業.此時finish_size不得為問號,必須填入相近的數值,再選擇user_param即可依須求而變.在drill_size.tab中可以設定minholesizeandmaxholesize.若是屬於Non_PTH,可在NPLATE處加入enlarge值.GENESIS2000SystemHooks17/genesis/sys/hooks/drill_size.tab#FileName:drill_size.tab#FilePurpose:##Writtenby:IanTicehurst(Autom8Ltd.)#Version1A.:Date:15.08.00-Initialdesignanddevelopment.#############################Startofnotes###############################000.0small108000131000009.80.25107000141200010.80.27106000141300011.80.30105000151500013.80.35103000151500015.70.40102000162000017.70.4597000162000019.70.5088000182000021.70.5580000182000.GENESIS2000SystemHooks18/genesis/sys/hooks/drill_table#FileName:drill_table#FilePurpose:#Sizeinmils.foractualdrillbit.#Designator################Endofnotes##############000.0small009.80.25010.80.27011.80.30013.80.35015.70.40017.70.45019.70.50021.70.55023.60.60025.60.65027.60.70029.50.75..GENESIS2000SystemHooks197.ffiltersDescriptionThishookisactuallyadirectorywhichcontainsascriptandanASCIIfilewhichdefinetheUserFilterintheGraphicEditor.Thisallowstheusertodefineusefulfiltersforquickselection.Afulldescriptionisprovidedintheappropriatemanual.SeeAlsoTheGraphicEditor(Doc.0601)選擇features的過慮器/genesis/sys/hooks/ffilters/namesandscript,GENESIS2000SystemHooks20pads AllPadsLinesLinessurfacesSurfacesnegativeNegativeFeaturessmdsSmdPadsgold GoldConnectorstear_dropTearDropneleN_electricnomenclatureNomenclaturetestpointsTestPointsnpth NonPlatedHolespth PlatedHolesvia_holesViaholesfiducials_gG.Fiducialsfiducials_lL.Fiducialsvia_pads ViaPadstoeprints Toeprintscen_fiducialCenterFiducialReq.rad_fiducialRadialFiducialReq.high_pitchHighPitchcomponent/pads/genesis/sys/hooks/ffilters/namesGENESIS2000SystemHooks21/genesis/sys/hooks/ffilters/script##Thescriptrecievesoneparameter-filtername#COMfilter_reset,filter_name=popupCOMclear_highlightswitch($1)case'pads':COMfilter_set,filter_name=popup,update_popup=yes,feat_types=padbreakswcase'lines':COMfilter_set,filter_name=popup,update_popup=yes,feat_types=linebreakswcase'surfaces':COMfilter_set,filter_name=popup,update_popup=yes,feat_types=surfacebreakswcase'negative':COMfilter_set,filter_name=popup,update_popup=yes,polarity=negativebreaksw……….GENESIS2000SystemHooks22123GENESIS2000SystemHooks238.HookName:film_sizesFile/Dir:File.ManualRef:On-linemanuals0203(chapter9)and0703(chapter3).RunMethod:Readbythefilmoptimisationpackage(createsfilmsizemenu).HookNotes:Thisfileisasimpleparameterfilewhichholdsthefilmsizesavailableforplotting.ThefileisafixedcolumnformatwiththefilmnameandtheXandYsizes.Notethatinordertomakechangestothisfile,Genesismustberestarted./genesis/sys/hooks/film_sizes(這個檔案是為filmoptimization所用)film-1,18,24film-2,21,24film-3,21,32GENESIS2000SystemHooks24FilmOptimization:12GENESIS2000SystemHooks2512345GENESIS2000SystemHooks269.impDescriptionMaycontainahookwritteninCforcalculatingcharacteristicimpedanceimp/imp_lib.sl(HP)&imp/imp_lib.so(Sun)SeeAlsoTheImpedanceSimulator(Doc.0605)Impedance:計算阻抗GENESIS2000SystemHooks2710.inc_274x(在input料號時,此檔的巨集會被加到料號層別內)DescriptionThishookcontainspredefinedaperturedefinitionsfortheRS-274Xinputtranslator.SeeAlsoInputFormats(Doc.0403)(放在/genesis/sys/hooks/inc_274x目錄)*%LPD*%%FSLAX24Y24*%%AMULN*4,1,4,-0.070000,-0.045000,-0.050000,-0.045000,-0.050000,0.045000,-0.070000,0.045000,-0.070000,-0.045000,270.00000*4,1,4,-0.145000,-0.045000,-0.125000,-0.045000,-0.125000,0.045000,-0.145000,0.045000,-0.145000,-0.045000,270.00000*4,1,4,0.055000,-0.040000,0.070000,-0.040000,0.070000,0.040000,0.055000,0.040000,0.055000,-0.040000,270.00000*4,1,4,0.070000,-0.010000,0.090000,-0.040000,0.105000,-0.040000,0.085000,-0.010000,0.070000,-0.010000,270.00000*4,1,4,0.070000,-0.010000,0.105000,-0.010000,0.105000,0.005000,0.070000,0.005000,0.070000,-0.010000,270.00000*4,1,4,0.105000,-0.010000,0.105000,0.040000,0.090000,0.040000,0.090000,-0.010000,0.105000,-0.010000,270.00000*4,1,4,0.055000,0.040000,0.105000,0.040000,0.105000,0.025000,0.055000,0.025000,0.055000,0.040000,270.00000*4,1,4,0.010000,-0.070000,0.150000,-0.070000,0.150000,-0.060000,0.010000,-0.060000,0.010000,-0.070000,270.00000*4,1,4,0.150000,-0.070000,0.150000,0.070000,0.140000,0.070000,0.140000,-0.070000,0.150000,-0.070000,270.00000*4,1,4,0.150000,0.070000,0.010000,0.070000,0.010000,0.060000,0.150000,0.060000,0.150000,0.070000,270.00000*4,1,4,0.010000,-0.070000,0.010000,0.070000,0.000000,0.070000,0.000000,-0.070000,0.010000,-0.070000,270.00000*%%ADD10ULN*%%LNUNKNOWNA*%D10*X0Y0D3*M02*GENESIS2000SystemHooks2811.inp_userDescriptionThishookisactivatedintheInputPackage.Itisactivatedwhenselectingthe'Useraction...'optionintheM3popupmenuononeofthefile.Itcanbeusedtopreprocessafilebeforerunningthestandardinput.Thehookisactivatedwith3parameters:Jobname,filenameandformat.SeeAlsoTheInputProcess(Doc.0401)/genesis/sys/hooks/inp_user#$1--jobname#$2--filepathname#$3--fileformat$1$2$3GENESIS2000SystemHooks29GENESIS2000SystemHooks30/genesis/sys/hooks/inp_user#!c:/bin/csh#$1--jobname$2--filepathname$3--fileformatsetGUI_DATA=$TMP/gui_data.$$setGUI_RESP=$TMP/gui_resp.$$echo"WIN200200">>$GUI_DATAecho"FONTtbr14">>$GUI_DATAecho"BG222299">>$GUI_DATAecho"FG999999">>$GUI_DATAecho"LABELGenesis2000Output">>$GUI_DATAecho"TEXTnameFileFormat:">>$GUI_DATAecho"DTEXTname$3">>$GUI_DATAecho"TEXTname1FilePath:">>$GUI_DATAecho"DTEXTname1$2">>$GUI_DATAecho"TEXTname2Jobname:">>$GUI_DATAecho"DTEXTname2$1">>$GUI_DATAecho"END">>$GUI_DATAgui$GUI_DATA\rm$GUI_DATAGENESIS2000SystemHooks3112.HookName:job.duFile/Dir:File.ManualRef:Tobecompleted.RunMethod:在engineertoolkit上,選定一個料號,按滑鼠右鍵>DiskUsage.HookNotes:Tobecompleted.#job.du(程式在/genesis/sys/hooks/job.du)##Reportsdiskusageofajob##SupportedfromGenesisv7.1#WrittenbyBenMichelson#21Dec1999#setjob_path=$1setout_path=$2echoJobname:$job_path:t>$out_pathdu-k$job_path|egrep$job_path'$|steps/[^/]*$'>>$out_pathGENESIS2000SystemHooks32Reportsdiskusageofajob:1.選料號後,按滑鼠右鍵,執行DiskUsage1234.顯示kilobytes.GENESIS2000SystemHooks3313.line_hooks(所有的linemodecommand可參考/genesis/e72/all/helps/line/…..)寫line_hooks的script,必須先具備一些基本慨念如下:寫程式時,常會用到與c-shell結合.(對判斷語法if..else,迴圈while,foreach等的基本了解)2.對genesis2000的linemodecommand有所了解.3.了解GUI的使用.(如何開啟視窗,畫面與文字顏色的配置,資料內容的顯示)4.了解檔案引數的應用,主副程式的呼叫.

GENESIS2000SystemHooks34引數的處理:$#計算引數個數以檢查所需的引數$1,$2..引數的位置參數$*引數串列抓最後一個引數(WindowsNt,2000不支援)%lastargabcc18.awk95(windows2000,nt)bc-l19.awk(Hpunix)bc-l20.nawk(Solarisunix)bcGENESIS2000SystemHooks35setk=`echo“if(3.4<2)1“|bc`#(判斷(3.4<2),非)echo$kNull(沒有回應)setk=`echo“if(3.4>2)1“|bc`#(判斷(3.4>2),是)echo$k1(有回應)setk=`echo“3.4/2“|bc`(bc運算不回應浮點運算)echo$k1setk=`echo“3.4/2“|bc–l`(bc運算回應浮點運算)1.000setk=`echo“scale=6;3.4/2“|bc–l`(bc運算回應浮點運算6位數)1.700000GENESIS2000SystemHooks3613.line_hooksDescriptionThisisadirectorythatcontainshookstobeusedbyanylinemodecommandtootherhooks.Eachlinemodecommand('com'),cancontaintwohooks:'com'.pre-tobeperformedbeforethecommandisexecuted.’com'.post-tobeperformedafterthecommandisexecuted.Eachhookisactivatedwithoneparameterwhichisapathtoatemporaryfilewhichshouldbesourced.Aftersourcingit,twovariablesareset:lnPARAMcontainsalist(array)ofalltheparametersofthecommand.lnVALcontainsalist(array)ofallthevaluesoftheparameters.ByreferencinglnPARAM[n]andlnVAL[n],thehookcanactaccordingtotheparameterssuppliedforthecommand.SeeAlsoLineModeCommands(Doc.0206)

GENESIS2000SystemHooks37NoteIfthepreline_hooksfail,thesystemwillnotruntheactualcommand.Youmustreturnanon-zerovaluefromthescriptsothatthedelete_entitycommandfails:Example:delete_entity.pre:#GENESIS2000SystemHooks38Linemodecommand:執行單行命令列的功能Line_hooks:(主要用途是在補Linemodecommand的不足,可以定義在linemodecommand執行前,後時,引導genesis2000系統,在多做一些符合我們需求的命令.[open_job].pre:在執行開啟料號的動作前時就執行此script.[open_job].post:在執行開啟料號的動作後,才執行此script.ps:它必須是scriptrecord可以記錄下的linemodecommand.Script1:(所有的linemodecommand說明在/genesis/e72/all/helps/line中檔案/genesis/sys/hooks/line_hooks/check_inout.pre#!/bin/cshsource$1@i=1while($i<=$#lnPARAM)if($lnPARAM[$i]==“mode”)thensetMODE=$lnVAL[$i]elsesetMODE=“open”endifif($lnPARAM[$i]==“job”)thensetJOB=$lnVAL[$i]endif@i++endecho“getthejobnamefromline_hookscheck_inout.pre“/genesis/sys/script/check_file_status$MODE$JOB(呼叫副程式)GENESIS2000SystemHooks39產生在/tmp/genesis186a6.334(genesis所產生的暫時檔案)setlnPARAM=('mode''type''job''step''layer''symbol''stackup''matrix''wheel''form''flow''template''font''path')setlnVAL=('in''job''40805''''''''''''''''''''''')Script2:檔案/genesis/sys/scripts/check_file_status#!/bin/cshif($1==“in”)thenecho$2isincheck-inmodeelseif($1==“out”)thenecho$2isincheck-outmodeelseecho$2isinopenmodeendifendifGENESIS2000SystemHooks4014.HookName:lp_progFile/Dir:File.ManualRef:On-linemanual0203(chapter9).RunMethod:CalledwhenevertheGenesissystemisrequestedtoprintsomething(eitherfroma"print"menuoption,orby"<Control>P".HookNotes:這個檔案有兩種運作模式,當第一次執行時,會檢查lp_prog.config是否存在,若存在,系統並不會搜尋網路並嘗試找尋可用的列表機.為了看列表機是否可用,允許使用者測試列表機然後增加到列表機清單.假如lp_prog.config檔案存在,此檔會自動傳遞給lp_prog當作參數.GENESIS2000SystemHooks4115.HookName:lp_prog.configFile/Dir:File.ManualRef:None.RunMethod:Calledbythelp_proghook.HookNotes:Thisfilestoresprinterinformationwhichhasbeenset-upthefirsttimethelp_proghookisrun.Thisfileiscreatedwhenthelp_progfileisrunforthefirsttimeandprovidesthelp_progfilewithalistofallprintersandthedefaultprintername.GENESIS2000SystemHooks4216.lyr_ruleDescriptionThishookisusedbytheapplicationforassigningthelayernamesduringtheinputidentificationprocess.Atthebeginningofthefilethereisaheadersectionthatcontainsthefollowingparameters:trname-jobattributenamesthatareusedasadditionalfilterstotheformatandcustomernameEachentryinthefilecontainsthefollowingfields:format-formatnameor'*'forallformatsupto5attributevalues(accordingtothe.atrdeclarations)regexp-regularexpressionformatchingtheinputfilenamesname-layernamethatisbasedontheregularexpressionmatchingcontext-layercontext(board,misc)type-layertype(signal,drill,rout,,,,,etc)polarity-layerpolarity(positive,negative)side-top,bottomornoneserial-layer'sserialnumber(0-don'tcare)SeeAlsoTheInputProcess(0401)GENESIS2000SystemHooks43DefiningLayerNameswiththelyr_ruleFileInsomecases,thefilenamesthatrepresentthelayershaveanamingconventionthatcanbeusedintheJobMatrix.Thelyr_rulefileisusedtodefinethemappingbetweentheoriginalnamingconventionandtheCAMnamingconvention.Thefilecontainsasetofregularexpressionsthatareusedforsettingthefollowinglayerproperties:•Name•Type•Context•Polarity•PositioninmatrixThelyr_rulefileislocatedinthefollowingdirectory:$GENESIS_DIR/sys/hooksGENESIS2000SystemHooks44DefiningLayerNameswiththelyr_rule在某些案例中,表示layers的名稱有一個命名習慣(協定),並可以在matrix中被直接使用.Lyr_rule通常定義規畫介於原始命名習慣和Cam的命名習慣,這個檔案包含了一些一般性的習慣性的依照下列layer特性設定的集合..Name(layer名稱).Type(layer型態(signal,drill,rout…etc).Context(layer前後關係)(board,misc).Polarity(layer正,負).Positioninmatrix(layer在matrix的位置)這檔案的主要部份包含幾個登錄(entries),它是定義對映圖介於客戶的檔名到genesis系統的layer參數,這是一個entry對映的範例gerbersony****(.*[0-9]*l)dg(sony,表示gerberfile的來源自sony公司)->smbboardsolder_maskpositivebottom0gerber-istheformatofthefile.ThesystemgoesintothisentryonlyiftheinputfileisaGerberfile.主要目的在讓料號在input到step號,可以依照已設定的規則,自動設定layer的名稱,Type,<board>,正負片,等等.GENESIS2000SystemHooks45#FileName:lyr_rule#AttributeSettingSection..atr.customer#DefaultGenesisStandardNames(GenesisFormat).genesis*****bd(0-9*)_(0-9*)->bd\1-\2boarddrillpositivenone0genesis*****drill->drillboarddrillpositivenone0genesis*****pst_t->pst_tboardsolder_pastepositivetop0genesis*****pst_b->pst_bboardsolder_pastepositivebottom0GENESIS2000SystemHooks46genesis*****silk_t->silk_tboardsilk_screenpositivetop0genesis*****silk_b->silk_bboardsilk_screenpositivebottom0genesis*****mask_t->mask_tboardsolder_maskpositivetop0genesis*****mask_b->mask_bboardsolder_maskpositivebottom0genesis*****top->topboardsignalpositivetop0genesis*****bot->botboardsignalpositivebottom0GENESIS2000SystemHooks47genesis*****pgp_([0-9]*)->pgp-\1boardpower_groundpositivenone\1genesis*****pgn_([0-9]*)->pgn-\1boardpower_groundnegativenone\1genesis*****sgp_([0-9]*)->sig-\1boardsignalpositivenone\1genesis*****sgn_([0-9]*)->sig-\1boardsignalnegativenone\1genesis*****mxp_([0-9]*)->sig-\1boardmixedpositivenone\1genesis*****mxn_([0-9]*)->sig-\1boardmixednegativenone\1GENESIS2000SystemHooks48####Gerberfilesexample.gerber*****pst_b.ger->pst_tboardsolder_pastepositivetop0gerber*****pst_a.ger->pst_bboardsolder_pastepositivebottom0gerber*****res_b.ger->mask_tboardsolder_maskpositivetop0gerber*****res_a.ger->mask_bboardsolder_maskpositivebottom0...GENESIS2000SystemHooks49AutoDrillManager相關檔案/genesis/sys/hooks/ncd/../create_slot(由使用者自行定義slot的script,當costom=yes才有用)../slot_hits../create_nibble(由使用者自行定義擴孔的script)../nibble_hits../set_table(此script自行判斷drill屬於slot,或nibble,或是在nibblehole上的孔很大時,必須加pilothole(導引孔))../out_file(輸出檔案時,透過一些條件的設定,使輸出檔變成我們所要的)../config/machines/hitachi記住:parameter的format最好必須為3.5.slot{nibble{custom=yescustom=yesoverlap=16val{total_overlap=2min_size=252}max_size=999num_holes=32}}GENESIS2000SystemHooks5018.HookName:ncdFile/Dir:Directory.ManualRef:On-linemanual0703(chapters4/5)and0703(appendixD).RunMethod:Seeindividualfilecommentslaterinthissection.HookNotes:ThisisadirectorywhichcontainstheAutoDrillManagerfilesanddirectory.TheseitemsareusedbytheA.D.M.functiontocustomizeandconfigurethedrilloutputfiles.自動化鑽孔製作程式的目錄所在

GENESIS2000SystemHooks51set_tableset_table是使用者編輯的script是被用在AutoDrillManager自動更改NCtable的值.NCtable是被系統從鑽孔層和資料被傳送到set_table,並透過c-shellscript中所包含的set命令所產生,給變數顯示在table中的欄位.這hook也接收當成input的路徑GENESIS2000SystemHooks52ncLAYER=(drill)#ncSET=(11)#ncMACHINE=(excellon2)#ncTHICKNESS=(0)#ncSHAPE=(slotholeholeholehole)#ncTYPE=(PlatePlatePlatePlatePlate)#ncSIZE=(1016203032)#ncTOUCH_COPPER=(nonononono)#ncFLAG=(00305)#ncCOUNT=(103973515540)#ncPLUS_TOL=(00000)#ncMINUS_TOL=(00000)#ncDESIGNATOR=("""""""""")#GENESIS2000SystemHooks53在程式裡會看到如下的程式描述echo$COUNT$TOOL_SIZEn$MODE$SPIN$FEED$TYPE$D_STAGEsep$HITS$COUNT>>$out_fileecho$COUNT$PILOT_SZE$PILOT$MODE$SPIN$FEED$TYPE$D_STAGEsep$HITS$COUNT>>$out_file1.Originalindexinarray(startingwith1)在陣列裡的索引值2.Tool_size(mils)鑽孔大小3.Pilotindicator(y/n)有無導引孔4.Mode-(regular,nibble,rout)模式5.Speed-spindlespee

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论