資料講義genesis學(xué)習(xí)文件g04_第1頁(yè)
資料講義genesis學(xué)習(xí)文件g04_第2頁(yè)
資料講義genesis學(xué)習(xí)文件g04_第3頁(yè)
資料講義genesis學(xué)習(xí)文件g04_第4頁(yè)
資料講義genesis學(xué)習(xí)文件g04_第5頁(yè)
已閱讀5頁(yè),還剩121頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

GENESIS2000SystemHooks1Genesis2000HooksTraining$GENESIS_DIR/sys/hooksRichardYuGENESIS2000SystemHooks21.acquireDescriptionThishookisactivatedwhentheFile>AcquirecommandisactivatedattheEngineeringToolkitwindow.ItisusedtoimportjobsfromtheSTAR1000system.SeeAlsoTheEngineeringToolkit(Doc.0102)Acquire:從Star1000的資料庫(kù)系統(tǒng)中將料號(hào)取回,並回存到genesis2000的資料庫(kù)上GENESIS2000SystemHooks32.area_pixmapsDescriptionThishookisadirectorywhichcontainsbitmapfiles.Whenauserattachestheattribute.area_name=<name>toasurfacefeature,thesurfacewillbedisplayedstippledaccordingtothebitmapfilebythatname.SeeAlsoArea_pixmaps:這是一個(gè)目錄,$GENESIS_DIR/sys/hooks/area_pixmaps,內(nèi)含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只要在存檔時(shí),將檔案存成.xbm或.xpm的格式即可.在Solarisunix系統(tǒng)上.執(zhí)行/usr/dt/bin/sdtimage中的snapshot將螢?zāi)淮娉?xpm(只適用GUI顯示)在Hpunix系統(tǒng)上,執(zhí)行/opt/screencapture/bin/capture存成.xbm(只適用GUI顯示)(2,3必須使用轉(zhuǎn)換程式代轉(zhuǎn))若要使bitmap生效,並取代surface的圖形顯示,必須在surface上,加入一個(gè)attribute.area_name=<name>.xbm,或<name>.xpm,<name>表示/genesis/sys/hooks/area_pixmaps/<name>.xbm或<name.xpm其格示如上一頁(yè)所述.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,它是在觀看算鍍銅面積的結(jié)果,當(dāng)你在Report選項(xiàng)選擇試算表時(shí),此檔案會(huì)被當(dāng)成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有效,請(qǐng)將configuration的edt_hs_script設(shè)定為genesis)setPanel_TH=“$1”##板厚setFHS=“$2”##標(biāo)準(zhǔn)徑setTYPE_P=“$3”##孔型別setMIN_TOL=“$4”##公差(-)setMAX_TOL=“$5”##公差(+)setUSER_PARAMS=“$6”##UserParameter字串setOUT_FILE=“$7”##輸出檔setTOOL_NUM=“$8”##孔號(hào)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中加入其預(yù)漲值,以利DrillToolManager選擇不同的user_param的作業(yè).此時(shí)finish_size不得為問號(hào),必須填入相近的數(shù)值,再選擇user_param即可依須求而變.在drill_size.tab中可以設(shè)定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(這個(gè)檔案是為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:計(jì)算阻抗GENESIS2000SystemHooks2710.inc_274x(在input料號(hào)時(shí),此檔的巨集會(huì)被加到料號(hào)層別內(nèi))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上,選定一個(gè)料號(hào),按滑鼠右鍵>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.選料號(hào)後,按滑鼠右鍵,執(zhí)行DiskUsage1234.顯示kilobytes.GENESIS2000SystemHooks3313.line_hooks(所有的linemodecommand可參考/genesis/e72/all/helps/line/…..)寫line_hooks的script,必須先具備一些基本慨念如下:寫程式時(shí),常會(huì)用到與c-shell結(jié)合.(對(duì)判斷語法if..else,迴圈while,foreach等的基本了解)2.對(duì)genesis2000的linemodecommand有所了解.3.了解GUI的使用.(如何開啟視窗,畫面與文字顏色的配置,資料內(nèi)容的顯示)4.了解檔案引數(shù)的應(yīng)用,主副程式的呼叫.

GENESIS2000SystemHooks34引數(shù)的處理:$#計(jì)算引數(shù)個(gè)數(shù)以檢查所需的引數(shù)$1,$2..引數(shù)的位置參數(shù)$*引數(shù)串列抓最後一個(gè)引數(shù)(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(沒有回應(yīng))setk=`echo“if(3.4>2)1“|bc`#(判斷(3.4>2),是)echo$k1(有回應(yīng))setk=`echo“3.4/2“|bc`(bc運(yùn)算不回應(yīng)浮點(diǎn)運(yùn)算)echo$k1setk=`echo“3.4/2“|bc–l`(bc運(yùn)算回應(yīng)浮點(diǎn)運(yùn)算)1.000setk=`echo“scale=6;3.4/2“|bc–l`(bc運(yùn)算回應(yīng)浮點(diǎn)運(yùn)算6位數(shù))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:執(zhí)行單行命令列的功能Line_hooks:(主要用途是在補(bǔ)Linemodecommand的不足,可以定義在linemodecommand執(zhí)行前,後時(shí),引導(dǎo)genesis2000系統(tǒng),在多做一些符合我們需求的命令.[open_job].pre:在執(zhí)行開啟料號(hào)的動(dòng)作前時(shí)就執(zhí)行此script.[open_job].post:在執(zhí)行開啟料號(hào)的動(dòng)作後,才執(zhí)行此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產(chǎn)生在/tmp/genesis186a6.334(genesis所產(chǎn)生的暫時(shí)檔案)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:這個(gè)檔案有兩種運(yùn)作模式,當(dāng)?shù)谝淮螆?zhí)行時(shí),會(huì)檢查lp_prog.config是否存在,若存在,系統(tǒng)並不會(huì)搜尋網(wǎng)路並嘗試找尋可用的列表機(jī).為了看列表機(jī)是否可用,允許使用者測(cè)試列表機(jī)然後增加到列表機(jī)清單.假如lp_prog.config檔案存在,此檔會(huì)自動(dòng)傳遞給lp_prog當(dāng)作參數(shù).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的名稱有一個(gè)命名習(xí)慣(協(xié)定),並可以在matrix中被直接使用.Lyr_rule通常定義規(guī)畫介於原始命名習(xí)慣和Cam的命名習(xí)慣,這個(gè)檔案包含了一些一般性的習(xí)慣性的依照下列l(wèi)ayer特性設(shè)定的集合..Name(layer名稱).Type(layer型態(tài)(signal,drill,rout…etc).Context(layer前後關(guān)係)(board,misc).Polarity(layer正,負(fù)).Positioninmatrix(layer在matrix的位置)這檔案的主要部份包含幾個(gè)登錄(entries),它是定義對(duì)映圖介於客戶的檔名到genesis系統(tǒng)的layer參數(shù),這是一個(gè)entry對(duì)映的範(fàn)例gerbersony****(.*[0-9]*l)dg(sony,表示gerberfile的來源自sony公司)->smbboardsolder_maskpositivebottom0gerber-istheformatofthefile.ThesystemgoesintothisentryonlyiftheinputfileisaGerberfile.主要目的在讓料號(hào)在input到step號(hào),可以依照已設(shè)定的規(guī)則,自動(dòng)設(shè)定layer的名稱,Type,<board>,正負(fù)片,等等.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相關(guān)檔案/genesis/sys/hooks/ncd/../create_slot(由使用者自行定義slot的script,當(dāng)costom=yes才有用)../slot_hits../create_nibble(由使用者自行定義擴(kuò)孔的script)../nibble_hits../set_table(此script自行判斷drill屬於slot,或nibble,或是在nibblehole上的孔很大時(shí),必須加pilothole(導(dǎo)引孔))../out_file(輸出檔案時(shí),透過一些條件的設(shè)定,使輸出檔變成我們所要的)../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.自動(dòng)化鑽孔製作程式的目錄所在

GENESIS2000SystemHooks51set_tableset_table是使用者編輯的script是被用在AutoDrillManager自動(dòng)更改NCtable的值.NCtable是被系統(tǒng)從鑽孔層和資料被傳送到set_table,並透過c-shellscript中所包含的set命令所產(chǎn)生,給變數(shù)顯示在table中的欄位.這hook也接收當(dāng)成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在程式裡會(huì)看到如下的程式描述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)有無導(dǎo)引孔4.Mode-(regular,nibble,rout)模式5.Speed-spindlespee

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論