[計(jì)算機(jī)軟件及應(yīng)用]G2000-day19-genesis_scriptppt課件_第1頁(yè)
[計(jì)算機(jī)軟件及應(yīng)用]G2000-day19-genesis_scriptppt課件_第2頁(yè)
[計(jì)算機(jī)軟件及應(yīng)用]G2000-day19-genesis_scriptppt課件_第3頁(yè)
[計(jì)算機(jī)軟件及應(yīng)用]G2000-day19-genesis_scriptppt課件_第4頁(yè)
[計(jì)算機(jī)軟件及應(yīng)用]G2000-day19-genesis_scriptppt課件_第5頁(yè)
已閱讀5頁(yè),還剩131頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、Unix CommandUnix Commandbanner string banner HELLO# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #Unix Commandcal month year cal 12 2000 December 2000 S M Tu W Th F S 1 2 3 4 5 6 7 8 910 11 12 13 14 15 1617 18 19 20 21 22 2324 25 26 27 28 29 3031Unix Commandcat f

2、ile1 file 1: abc file 2: def # cat file1 abc# cat file1 file2 file3 file3 file 3: - abcdefUnix Commandpwd & cd directory # pwd/users/image# cd /id/workfile# pwd/id/workfileUnix Commandls -Rsad.f names # ls /id/workfile# ls l # ls aUnix Commandchmod option mode files ls -l /id/scripts/auto_panel-

3、rw-rw-rw-1 image users 4 Feb 10200 09:28 auto_panel chmod +x /id/scripts/auto_panel ls -l /id/scripts/auto_panel-rwxrwxrwx1 image users4 Feb 10200 09:28 auto_panel chmod 751 /id/scripts/auto_panel ls -l /id/scripts/auto_panel-rwxr-x-x1 image users 4 Feb 10200 09:28 auto_panelUnix Commandchown option

4、s newowner file1 file2 ls -l /id/scripts/auto_panel-r-r-r- 1 acn users Feb 10200 09:28 auto_panel chown image /id/scripts/auto_panel ls -l /id/scripts/auto_panel-r-r-r- 1 image users Feb 10200 09:28 auto_panel#chmod image:usr /id/scripts/auto_panel-r-r-r- 1 image usr Feb 10200 09:28 auto_panelUnix C

5、ommandchgrp options newgroup file1 file2 . ls -l /id/scripts/auto_panel-r-r-r- 1 root users 4 Feb 10200 09:28 auto_panel chgrp other /id/scripts/auto_panel ls -l /id/scripts/auto_panel-r-r-r- 1 root other 4 Feb 10200 09:28 auto_panelUnix Commandcp file1 file2cp -r directory1 directory2 cp /id/script

6、s/auto_panel /tmp cp -r /id/scripts /tmpUnix Commandecho argument echo Message Bell Message BellUnix Commandcut -c list file1 file2 . echo “ABC DEFG” cut -c2-3BC . . . . . cut c-3 cut c4-Unix Commanddate -u. mmddhhmmyy dateMon Feb 10 13:45:07 MET 1997 date 08311030- yes( stop - change -reboot )Unix

7、Commanddu -sk. directories cd /id du -s604892 .( the /id directory is about 300 Mbytes)#cd /#du s 1020203 . . . . /etc202002 . . . . /home. Unix Commandfind pathname(s) condition(s) find /id/workfile -name wheel -print# find / -name core -exec rm ;Unix Commandgrep -v. express files u ls -l /id/scrip

8、ts grep ”31 Aug“u #cat /id/scripts/auto_panel |grep v “echo” Unix Commandhead -123. fileu head -3 /tmp/listUnix Commandps & kill options id ps -ef grep auto_panelimage 1209 1 0 12:35:13 ?0:00 /id/scripts/auto_panel kill -9 1209Unix Commandln -s name target ln -s /id/workfile/auto_input_jobs /job

9、s# ls l /. . . . lr-r-r- 1 root users 4 Feb 10200 09:28 jobs. . . . . . . . Unix Commandman name# man chmodUnix Commandmkdir (path)# mkdir abc#ll dr-r-r- 1 root users Feb 10200 09:28 abcUnix Commandumv . files.# mv abc /tmp# ls /tmpabcUnix Commandrm -r file .# rm abc# rm -r /tmp/123Unix Commandsleep

10、 n# sleep 30Unix Commandsort rkn. file# sort -rn /tmp/list# sort -k 1n /tmp/listUnix Commandtar xcvf. filestar cvf /tmp/script .tar /id/scripts - cd /id tar cvf /tmp/script .tar scriptscd /tmp/mydirtar xvf /tmp/script.tar /tmp/mydir/scriptsUnix Commandgzip -d. filesgzip /id/workfile/filegzip -d /id/

11、workfile/file.gzUnix Commandcompress . filescompress /id/workfile/fileuncompress /id/workfile/file.ZUnix Commandtouch . files# touch empty_fileUnix Commandwc -lwc files # ls | wc -w # ls | wc -c# ls | wc -lC-Shell CommandC-Shell Command# & #!# comment#!/usr/bin/csh - C-shell envirnmentC-Shell Co

12、mmandset set var = value set var = (12 3 4 5)set var = commandset var = $ full_path_name echo $#listC-Shell Command int = 5 num = $int + 1 num = $int * 25 num = $int / 6 num = $int % 6C-Shell Command(1) ( ; ) (2) ! (3) * ; % ; / (4) + ; (5) ; ; =(6) = = ; ! = ; = ; ! (7) | | ; & &C-Shell Cma

13、nd2.START:.command3.if ($passw != 5000) goto STARTC-Shell Commandif . then. else .endifif ($a 10) then command1.endif .command2if ($a 10 & $a 30) then. command1.else. command2.endifC-Shell Commandwhile end a = 0while ($a 10). command . a +endC-Shell Commandforeachendforeach LAYER ($layre_list) (

14、 set LAYER = $layer_list1 ) ( set LAYER = $layer_list2 ) ( ).commandwith $LAYERendC-Shell CommandSwitch.caseendswswitch ($variable)case “2”:command1.breakswcase “4”:command2.breakswdefault:command3.endswbc bc bc scale=6 if (3.4 2) 1” |bc set k = echo “if ( 3.4 2) 1” |bc if ($#k = 1) then .command.en

15、dif ./test 程式撰寫(xiě)工具程式撰寫(xiě)工具 (I) Genesis 2000 script functions程式執(zhí)行程式執(zhí)行 script running作業(yè)指令錄製作業(yè)指令錄製 action recording 對(duì)應(yīng)快速鍵對(duì)應(yīng)快速鍵 hot-key binding程式除錯(cuò)器程式除錯(cuò)器 debugger暫停繼續(xù)暫停繼續(xù) suspend continue程式撰寫(xiě)工具程式撰寫(xiě)工具 (I) Genesis 2000 script functions程式執(zhí)行程式執(zhí)行 script running請(qǐng)?jiān)谶m當(dāng)環(huán)境下按請(qǐng)?jiān)谶m當(dāng)環(huán)境下按 “Run“Press “Run” under sutiable co

16、ndition程式執(zhí)行程式執(zhí)行 script running1.程式目錄程式目錄 script path2. 程式檔名程式檔名 script name(指定參數(shù)指定參數(shù) default parameter)執(zhí)行記錄執(zhí)行記錄 running log執(zhí)行並離開(kāi)執(zhí)行並離開(kāi)execute then exit3. 執(zhí)行執(zhí)行execute離開(kāi)離開(kāi) exit請(qǐng)?jiān)谶m當(dāng)環(huán)境下按請(qǐng)?jiān)谶m當(dāng)環(huán)境下按 “Record“Press “Record” under sutiable condition作業(yè)指令錄製作業(yè)指令錄製 action recording作業(yè)指令錄製作業(yè)指令錄製 action recording1. 開(kāi)始

17、錄製開(kāi)始錄製 start to record停止錄製停止錄製 stop recording暫停錄製暫停錄製 record suspend錄後重?fù)茕涐嶂負(fù)?action re-play 錄製中錄製中2. 在按在按“開(kāi)始錄製開(kāi)始錄製”後後,任何操作過(guò)程即可被錄下任何操作過(guò)程即可被錄下After pressing “record”, all the actions would be recorded3. 將錄製結(jié)果存檔將錄製結(jié)果存檔Saving the record to a file( Run / continue)請(qǐng)?jiān)谶m當(dāng)環(huán)境下按請(qǐng)?jiān)谶m當(dāng)環(huán)境下按 “Debug“Press “Debug” und

18、er sutiable condition程式除錯(cuò)器程式除錯(cuò)器script debugger程式除錯(cuò)器程式除錯(cuò)器script debugger1. 載入程式載入程式 open script A. 修改載入程式修改載入程式 edit scriptB. 更新修改後程式更新修改後程式 update script可用滑鼠設(shè)定程式中斷點(diǎn)可用滑鼠設(shè)定程式中斷點(diǎn) (BP)“double-click” to put breakpoint (BP)2. 測(cè)試程式測(cè)試程式 script testing執(zhí)行指標(biāo)指示即將執(zhí)行之指令列執(zhí)行指標(biāo)指示即將執(zhí)行之指令列arrow point outcurrent comman

19、d line would be run next 程式有問(wèn)題時(shí)可設(shè)斷點(diǎn)程式有問(wèn)題時(shí)可設(shè)斷點(diǎn) (BP)以區(qū)分出問(wèn)題區(qū)段以區(qū)分出問(wèn)題區(qū)段BPs help to find out the problematic section1. 按執(zhí)行程式至第一個(gè)中斷點(diǎn)按執(zhí)行程式至第一個(gè)中斷點(diǎn)press “Run”to go (run) to the first BP2. 按按“Cont”繼繼續(xù)執(zhí)行至下一斷點(diǎn)續(xù)執(zhí)行至下一斷點(diǎn)press “Cont” to go to next BP執(zhí)行該行並將指標(biāo)移至下一行執(zhí)行該行並將指標(biāo)移至下一行execute the line then go to the next 不執(zhí)行該

20、行只將指標(biāo)移至下一行不執(zhí)行該行只將指標(biāo)移至下一行skip the line and go to the next與與“Next”相同相同, 但但可切入子程式可切入子程式逐行測(cè)試逐行測(cè)試like “Next”, but can go into the sub-script then test one by one呼叫子程式呼叫子程式call sub-script子程式路逕名稱(chēng)子程式路逕名稱(chēng)sub-script name檢測(cè)子程式檢測(cè)子程式sub-script testing在切入子程式的狀況下在切入子程式的狀況下,按按“step out“ 自動(dòng)執(zhí)行完子程式自動(dòng)執(zhí)行完子程式, 並將指標(biāo)移至下一指令

21、並將指標(biāo)移至下一指令under the sub-script, press “step_out” wouldcomplete the sub-script then go to next line在在 “( )“ 欄中輸入變數(shù)名稱(chēng)欄中輸入變數(shù)名稱(chēng) ,再按再按 ”print()” 可顯示該變數(shù)之現(xiàn)值可顯示該變數(shù)之現(xiàn)值put a variable name on the “( )”, press “print ()” would display its current value(1)(2)(3)追蹤變數(shù)內(nèi)容追蹤變數(shù)內(nèi)容trace variable value在在 “( ) : “ 欄中輸入指令欄

22、中輸入指令 ,再按再按 ”Eval ()” 可顯示該指令執(zhí)行結(jié)果可顯示該指令執(zhí)行結(jié)果put a command on the “( ) :”, press “Eval ()” would display the result(1)(2)(3)指定指令測(cè)試指定指令測(cè)試command testing請(qǐng)?jiān)谶m當(dāng)環(huán)境下按請(qǐng)?jiān)谶m當(dāng)環(huán)境下按 “Binding“Press “Binding” under sutiable condition對(duì)應(yīng)快速鍵對(duì)應(yīng)快速鍵hot-key binding對(duì)應(yīng)快速鍵對(duì)應(yīng)快速鍵hot-key binding1. 選擇可用按鍵選擇可用按鍵 select hot-key 2. 選出

23、程式名稱(chēng)選出程式名稱(chēng)select script name3. 按按 “add”完成設(shè)定完成設(shè)定press “add to completeScripts do not take coffee breaks程式撰寫(xiě)工具程式撰寫(xiě)工具 (II)Graphic User Interface Graphic User Interface (GUI)u 主程式主程式 : :/genesis/e72/all/gui/genesis/e72/all/guiu 圖示元件圖示元件: :Label Label ( (標(biāo)籤標(biāo)籤) )Radio ButtonRadio Button( (選鈕選鈕) ) Form (Fo

24、rm (區(qū)塊區(qū)塊) )Text Text F Fieldield ( (輸入欄輸入欄) )Option Option ( (選條選條) )List(List(選單選單) ) Graphic User Interface (GUI)GUI GUI 執(zhí)行方式執(zhí)行方式 1. 1. 編輯指令檔編輯指令檔 /command_filecommand_file ( (主程式主程式) () (指令檔指令檔) () (set set 指令輸出指令輸出) ) 2. 2. / /genesis/e60/guigenesis/e60/gui /command_file /out_file /command_file

25、/out_file 3. 3. sourcesource /out_file /out_file 取得變數(shù)取得變數(shù)GUI GUI 指令指令 vs. vs. 圖示元件圖示元件 視窗起點(diǎn)視窗起點(diǎn) WINWIN 200 200 200 200/command_file/command_fileGUI GUI 指令指令 vs. vs. 圖示元件圖示元件 Label Label ( (標(biāo)籤標(biāo)籤) ) LABEL GUI TEST LABEL GUI TEST/command_file/command_fileGUI GUI 指令指令 vs. vs. 圖示元件圖示元件 Text Text F Field

26、ield ( (輸入欄輸入欄) )TEXTTEXT namename First Name :First Name :DTEXTDTEXT namename Philosophy Philosophy預(yù)設(shè)值預(yù)設(shè)值變數(shù)變數(shù)/command_file/command_fileGUI GUI 指令指令 vs. vs. 圖示元件圖示元件 Radio ButtonRadio Button( (選鈕選鈕) ) RADIORADIO sex Sex Sex : :MaleMaleFemaleFemaleENDEND變數(shù)變數(shù)選項(xiàng)選項(xiàng)/command_file/command_fileGUI GUI 指令指令

27、vs. vs. 圖示元件圖示元件 Option Option ( (選條選條) )OPTION optionNumber of layers246-16END變數(shù)變數(shù)選項(xiàng)選項(xiàng)/command_file/command_fileGUI GUI 指令指令 vs. vs. 圖示元件圖示元件 字型字型 顏色顏色FONTFONT tbi18tbi18 BG BG 008800 008800 FG FG 000055 000055RGB/command_file/command_fileGUI GUI 指令指令 vs. vs. 圖示元件圖示元件 List(List(選單選單) )LISTLIST JOBS

28、JOBS 5 5 M M 1 1052705270527new0527new.YtYtENDEND複複(M),單單(S)選選/command_file/command_fileGUI GUI 指令指令 vs. vs. 圖示元件圖示元件 邊框邊框 BW BW 5 5/command_file/command_fileGUI GUI 指令指令 vs. vs. 圖示元件圖示元件 結(jié)束提示結(jié)束提示 CLABELCLABEL OK OK/command_file/command_fileGUI GUI 指令指令 vs. vs. 圖示元件圖示元件 指令結(jié)束指令結(jié)束WINWIN 200 200 200 20

29、0 . . . . . . END END/command_file/command_fileGUI GUI 指令指令 vs. vs. 圖示元件圖示元件 FORM FORM 框架框架 FORMFORMLABEL Select Jobs -LABEL Select Jobs -LIST JOBS 10 M1 LIST JOBS 10 M1 05270527.ENDENDENDFORMENDFORM /command_file/command_fileGUI Example Continuedset set 指令輸出指令輸出/out_file/out_file(/(/genesis/e60/gui

30、genesis/e60/gui /command_file /command_file /out_file /out_file) )set set namename = Philosophy“ = Philosophy“set set sexsex = 1 = 1set set optionoption = = 1 1set set JOBSJOBS = (0527 0527new ) = (0527 0527new )Graphic User Interface (GUI)如何取得變數(shù)值如何取得變數(shù)值 ? ? sourcesource /out_file /out_file ( ( Sour

31、ceSource 會(huì)將會(huì)將 /out_file/out_file 內(nèi)之內(nèi)之 setset 指令執(zhí)行指令執(zhí)行 ) ) Graphic User Interface (GUI)變數(shù)可用於變數(shù)可用於 c-shell c-shell 中中 : : echo “Name : $echo “Name : $namename” Name : Philosophy” Name : Philosophy echo “Sex : $ echo “Sex : $sexsex” Sex : 1” Sex : 1 echo “Layers : $ echo “Layers : $optionoption” Layers

32、 : 1” Layers : 1 echo “JOBS :$ echo “JOBS :$JOBSJOBS” JOBS : ” JOBS : 0527 0527new0527 0527new Scripts do not take coffee breaksGenesis 2000 內(nèi)部指令內(nèi)部指令 Internal Command1. AUX指定指定 script 指令即將執(zhí)行之視窗指令即將執(zhí)行之視窗用法用法 :AUX set_group,group= 表示視窗號(hào)碼表示視窗號(hào)碼 Graphic EditorNetlist AnalyzerET Manager2. VOF & VON關(guān)閉

33、關(guān)閉 & 開(kāi)啟錯(cuò)誤處理開(kāi)啟錯(cuò)誤處理(中斷中斷)器器用法用法 : VOF VON3. PAUSE暫停程式執(zhí)行並顯示訊息暫停程式執(zhí)行並顯示訊息用法用法 : PAUSE Example : PAUSE “Please check the information”4. MOUSE以滑鼠點(diǎn)取座標(biāo)值以滑鼠點(diǎn)取座標(biāo)值用法用法 : MOUSE p | r 傳回值傳回值:$MOUSEANS -以以 (x y) & ( x1 y1 x2 y2)方式傳回方式傳回Example : MOUSE p Click on feature to be deleted set feature = ( $MOUS

34、EANS ) set featureX = $feature1 set featureY = $feature25. COM執(zhí)行命令列指令執(zhí)行命令列指令用法用法 : COM command,arg1=val1,arg2=val2傳回值傳回值: $COMANS - 傳回視窗號(hào)碼傳回視窗號(hào)碼 $STATUS - 0 表示成功表示成功, 其他表錯(cuò)誤碼其他表錯(cuò)誤碼 範(fàn)例 一COM open_job,job=my_jobCOM open_entity,job=my_job,type=step, name=my_step,iconic=noset group_num = $COMANSAUX set_gr

35、oup,group=$group_numMOUSE p Click on feature to be deletedset featurexy = ( $MOUSEANS )set featureX = $featurexy1set fratureY = $featurexy2VOF COM delete_feat,x=$featureX,y=$featureYif ( $STATUS != 0 ) thenPAUSE Could not delete featureendifVON 範(fàn)例 一 (續(xù))6. SU_ON & SU_OFF取得取得 & 釋放最高權(quán)限釋放最高權(quán)限用法用

36、法 :SU_ONSU_OFF環(huán)境變數(shù)環(huán)境變數(shù)u$JOB -程式所在的程式所在的 Job 名稱(chēng)名稱(chēng)u$STEP -程式所在的程式所在的 Step 名稱(chēng)名稱(chēng)練習(xí)一下吧練習(xí)一下吧?u試寫(xiě)一程式試寫(xiě)一程式, 讓人只需用滑鼠點(diǎn)兩個(gè)位讓人只需用滑鼠點(diǎn)兩個(gè)位置就可能畫(huà)出一置就可能畫(huà)出一R30 mil 的方框的方框.7. Info指令指令用於取得用於取得 ODB+ 資料庫(kù)之內(nèi)容資料庫(kù)之內(nèi)容語(yǔ)法語(yǔ)法 : COM info,args = -t -e -d -p , out_file=/out_file, write_mode = source /out_file 取得變數(shù)取得變數(shù)7. Info指令指令說(shuō)明說(shuō)明 :

37、 -t :資料分類(lèi)資料分類(lèi) (step,.) -e :資料路逕名稱(chēng)資料路逕名稱(chēng) ($JOB/$STEP.) -d :資料格式資料格式 (DATUM,.) -p :格式參數(shù)格式參數(shù) (x,y) * -o action : checklist 資料資料 out_file= : 輸出檔輸出檔 (/tmp/out_file) (請(qǐng)參照請(qǐng)參照 Script手冊(cè)手冊(cè) 0204第六章第六章 34頁(yè)頁(yè))Info Command ExamplesuGet jobs listCOM info,args= -t root,out_file =/tmp/a , write_mode = replace source

38、/tmp/aInfo Command ExamplesuGet layer context (board or misc)COM info,args =-t layer -e $job/$step/$layer -d CONTEXT, out_file=$out_file, write_mode=replace source $out_fileMoreInfo Command ExamplesuGet step information COM info,out_file=$OUT_FILE,write_mode=replace,COM info,out_file=$OUT_FILE,write

39、_mode=replace,args=-t step -e $JOB/$STEPargs=-t step -e $JOB/$STEP source $OUT_FILEsource $OUT_FILEMoreInfo Command ExamplesuGet check list result COM info,out_file=$OUT_FILE,write_mode=replace,COM info,out_file=$OUT_FILE,write_mode=replace,args=-t check -e $JOB/$STEP/valor_fab -d MEAS o args=-t che

40、ck -e $JOB/$STEP/valor_fab -d MEAS o action=2+category=pth_ar+severity=Raction=2+category=pth_ar+severity=R source $OUT_FILE source $OUT_FILEMoreInfo Command ExamplesuGet matrix information COM info,out_file=$OUT_FILE,write_mode=replace,args=-t COM info,out_file=$OUT_FILE,write_mode=replace,args=-t

41、matrix -e $JOB/matrixmatrix -e $JOB/matrix source $OUT_FILE source $OUT_FILEMoreScripts do not take coffee breaksGenesis2000 工作表工作表Work FormPhilosophy LiuGenesis2000 工作表工作表Work FormWork Form Work Form 為為 Genesis2000 Genesis2000 之表單物件之表單物件, ,可配合工單或各種工作表單要求設(shè)計(jì)以可配合工單或各種工作表單要求設(shè)計(jì)以簡(jiǎn)化及標(biāo)準(zhǔn)化一般作業(yè)簡(jiǎn)化及標(biāo)準(zhǔn)化一般作業(yè). .Wo

42、rk From Work From 內(nèi)容包含文數(shù)字輸入內(nèi)容包含文數(shù)字輸入, , 選單及選單及圖形圖形, , 並含內(nèi)部程式可配合各種自動(dòng)化之並含內(nèi)部程式可配合各種自動(dòng)化之程式設(shè)計(jì)程式設(shè)計(jì). .設(shè)計(jì)及作業(yè)程序設(shè)計(jì)及作業(yè)程序Work Form Process1. 1. 建立新工作表建立新工作表, (, (於於 Genesis Library workGenesis Library work form form 物件中物件中) )2. 2. 依需求設(shè)計(jì)各欄位及功能依需求設(shè)計(jì)各欄位及功能, , 並設(shè)定內(nèi)建程式並設(shè)定內(nèi)建程式3. 3. 複置表單於各工作料號(hào)複置表單於各工作料號(hào) ( (job)job)4.

43、4. 使用程式或手動(dòng)呼叫使用及更動(dòng)表單使用程式或手動(dòng)呼叫使用及更動(dòng)表單Genesis2000 工作表工作表Work Form1. 進(jìn)入進(jìn)入 genesislib2. 進(jìn)入進(jìn)入 “ forms” 物件中物件中Genesis2000 工作表工作表Work Form建立建立新新工作表工作表Create Work Form3. “Create“工作表工作表Genesis2000 工作表工作表Work Form建立建立新新工作表工作表Create Work FormGenesis2000 工作表工作表預(yù)覽視窗預(yù)覽視窗工作區(qū)工作區(qū)參數(shù)區(qū)參數(shù)區(qū)工具工具Genesis2000 工作表工作表Work Form工

44、作表特性工作表特性設(shè)定設(shè)定Work Form Parameter 表寬設(shè)定表寬設(shè)定 表高設(shè)定表高設(shè)定啟動(dòng)時(shí)呼叫程式啟動(dòng)時(shí)呼叫程式結(jié)束時(shí)呼叫程式結(jié)束時(shí)呼叫程式異動(dòng)自動(dòng)更新異動(dòng)自動(dòng)更新工具工具Genesis2000 工作表工作表Work Form製表工具製表工具Work From Tools欄位選擇欄位選擇 放大縮小放大縮小區(qū)隔線區(qū)隔線標(biāo)籤標(biāo)籤 文數(shù)字入欄文數(shù)字入欄單一及多重選鈕單一及多重選鈕插圖欄插圖欄插圖欄插圖欄 ( (同上同上) )變數(shù)拉條變數(shù)拉條功能按鍵功能按鍵Genesis2000 工作表工作表Work Form 欄位參數(shù)區(qū)欄位參數(shù)區(qū)Work From Element字形顏色字形顏色 欄

45、位名稱(chēng)欄位名稱(chēng) 欄位位置欄位位置,長(zhǎng)長(zhǎng),寬寬 讀寫(xiě)模式讀寫(xiě)模式 內(nèi)建程式名稱(chēng)線內(nèi)建程式名稱(chēng)線上說(shuō)明檔名稱(chēng)上說(shuō)明檔名稱(chēng)欄位顯示文字欄位顯示文字 欄位內(nèi)容置中欄位內(nèi)容置中,左左, 右右/genesis/fw/lib/form/form_name/def/cb/s1 /genesis/fw/lib/form/form_name/def/help/h1 欄位參數(shù)區(qū)欄位參數(shù)區(qū)Work From ElementGenesis2000 工作表工作表Work Form單選鈕單選鈕複選鈕複選鈕下拉式下拉式 文字文字 整數(shù)整數(shù) 浮點(diǎn)數(shù)浮點(diǎn)數(shù) 日期日期時(shí)間時(shí)間Genesis2000 工作表工作表Work Form向

46、下複製向下複製向上複製向上複製向左複製向左複製向右複製向右複製欄位快速複製欄位快速複製Genesis2000 工作表工作表Work Form工作表工作表複製複製Work From CopyGenesis Library工作料號(hào)工作料號(hào)Genesis2000 工作表工作表Work Form開(kāi)啟工作表開(kāi)啟工作表Open Work FormGenesis2000 工作表工作表Work Form系統(tǒng)變數(shù)系統(tǒng)變數(shù)Work Form VariableJOB 目前使用中料號(hào)名稱(chēng)目前使用中料號(hào)名稱(chēng)STEP 目前使用中目前使用中Step名稱(chēng)名稱(chēng)FORM 目前使用中目前使用中Form名稱(chēng)名稱(chēng)ELEM 目前使用中欄

47、位名稱(chēng)目前使用中欄位名稱(chēng)VALUE 目前使用中欄位內(nèi)容目前使用中欄位內(nèi)容以上變數(shù)皆可在工作表運(yùn)作時(shí)以上變數(shù)皆可在工作表運(yùn)作時(shí), 讓程式呼叫使用讓程式呼叫使用Genesis2000 工作表工作表Work Form命令列指令命令列指令Line Mode Command呼叫及顯示工作表呼叫及顯示工作表COM show_form, job=job1, form=form1,updonly=No,updelem= 料號(hào)名稱(chēng)料號(hào)名稱(chēng) 工作表名稱(chēng)工作表名稱(chēng)更新工作表欄位內(nèi)容更新工作表欄位內(nèi)容COM edit_form,job=job1,form=form1,elem=e1,value=abcd 欄位名稱(chēng)欄位

48、名稱(chēng) 欄位內(nèi)容欄位內(nèi)容練習(xí)一練習(xí)一Exercise IA. 試設(shè)計(jì)一試設(shè)計(jì)一 Work From 用來(lái)顯示一料號(hào)之用來(lái)顯示一料號(hào)之之之Size, 板厚板厚, 等屬性等屬性. B. 試設(shè)計(jì)一試設(shè)計(jì)一Script, 用來(lái)試啟動(dòng)用來(lái)試啟動(dòng) “A”之表單之表單, 並自動(dòng)填入各欄位之內(nèi)容並自動(dòng)填入各欄位之內(nèi)容.Genesis2000 工作表工作表Work FormGenesis2000 工作流程工作流程Work FlowPhilosophy LiuGenesis2000 工作流程工作流程Work FlowWork Flow Work Flow 為為 Genesis2000 Genesis2000 之之流

49、程流程物件物件, ,可配合各種工作流程要求設(shè)計(jì)以簡(jiǎn)化及可配合各種工作流程要求設(shè)計(jì)以簡(jiǎn)化及標(biāo)準(zhǔn)化一般作業(yè)標(biāo)準(zhǔn)化一般作業(yè). .Work Flow Work Flow 內(nèi)容包含工作方塊內(nèi)容包含工作方塊, , 選擇方塊選擇方塊及子流程等及子流程等, , 並含內(nèi)部程式可配合各種自並含內(nèi)部程式可配合各種自動(dòng)化之程式設(shè)計(jì)動(dòng)化之程式設(shè)計(jì). .設(shè)計(jì)及作業(yè)程序設(shè)計(jì)及作業(yè)程序Work Flow Process1. 1. 建立新工作建立新工作流程流程, (, (於於 Genesis Library workGenesis Library work flow flow 物件中物件中) )2. 2. 依需求設(shè)計(jì)各欄位及功

50、能依需求設(shè)計(jì)各欄位及功能, , 並設(shè)定內(nèi)建程式並設(shè)定內(nèi)建程式3. 3. 複置表單於各工作料號(hào)複置表單於各工作料號(hào) ( (job)job)4. 4. 使用程式或手動(dòng)呼叫使用及更動(dòng)使用程式或手動(dòng)呼叫使用及更動(dòng)流程流程Genesis2000 工作流程工作流程Work Flow1. 進(jìn)入進(jìn)入 genesislib2. 進(jìn)入進(jìn)入 “ flows” 物件中物件中建立建立新新工作流程工作流程Create Work FlowGenesis2000 工作流程工作流程Work Flow3. “Create“工作流程工作流程建立建立新新工作流程工作流程Create Work FlowGenesis2000 工作流程

51、工作流程Work FlowGenesis2000 工作流程工作流程參數(shù)區(qū)參數(shù)區(qū)工作區(qū)工作區(qū)M3 M3 工具工具Genesis2000 工作流程工作流程Work Flow工作流程特性工作流程特性設(shè)定設(shè)定Work Flow Parameter啟動(dòng)時(shí)呼叫程式啟動(dòng)時(shí)呼叫程式結(jié)束時(shí)呼叫程式結(jié)束時(shí)呼叫程式流程異動(dòng)時(shí)呼叫程式流程異動(dòng)時(shí)呼叫程式$GENESIS_DIR/fw/lib/flow/flow_name/def/cb/tpca2000.stageGenesis2000 工作流程工作流程Work Flow工作流程特性工作流程特性設(shè)定設(shè)定Work Flow Parameter顯示方塊名稱(chēng)顯示方塊名稱(chēng)顯示指定文字顯示指定文字M3 製作工具製作工具Work Flow ToolsGenesis2000 工作流程工作流程Work Flow 工作方塊工作方塊狀態(tài)方塊狀態(tài)方塊(二選一二選一)選擇方塊選擇方塊(多選一多選一)子流程方塊子流程方塊M3 製作工具製作工具Work Flow ToolsGenesis2000 工作流程工作流程Work Flow1. 於空白區(qū)按於空白區(qū)按M32. 選擇方塊類(lèi)型選擇方塊類(lèi)型 (產(chǎn)生新方塊產(chǎn)生新方塊)3. 於任一方塊上按於任一方塊上按M34. 選擇連結(jié)方式及目地方塊選擇連結(jié)方式及目地方塊5. 重覆步驟重覆步驟1-46. 設(shè)定

溫馨提示

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

最新文檔

評(píng)論

0/150

提交評(píng)論