




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
《eM-Plant仿真技術教程》物流工程11/81CH1仿真建模與eM-PlanteM-plant仿真系統是德國tecnomatix企業產品,其前身為simple++,專門用于“離散系統”建模與仿真分析。特點:面向對象建模集成仿真環境仿真過程可視化專用仿真語言開放數據接口2D+3D提供如GA,ARIS,Gantt等模塊22/81瀏覽器窗口33/81Connector:連接器EventController:仿真控制器Frame:Frame窗口Interface:層式結構接口Source:產生MUDrain:回收MUSingleProc:單工位工作站ParallelProc:多工位并行工作站Assembly:組裝站點DismantleStation:拆卸站點Store:存放站44/81PlaceBuffer:帶工作站緩沖區Buffer:緩沖區、暫存區Sorter:帶排序功效緩沖區Line:軌道(有速度)TurnTable:旋轉臺AngularConverter:方向轉換軌道Track:單車道路線(不允許錯車、無速度)TwoLaneTrack:雙車道路線(允許錯車)FlowControl:分流控制Cycle:循環55/81WorkerPlace:工位FootPath:工人行走路徑WorkerPool:工人池Worker:工人Exporter:服務提供者Broker:資源調度者ShiftCalendar:日程表66/81Method方法Variable變量TableFile:(二維)表CardFile:隨即表StackFile:棧表、堆棧QueueFile:隊列表Trigger:定時觸發AttributeExplorer:屬性瀏覽器TimeSequence:時間序列Generator:發生器XMLInterface:XML接口FileInterface:文件接口FileLink:文件鏈接77/81Comment:評論Gauge:規格(顯示數據)Chart:圖表ReportDialog:對話框88/81BottleneckAnalyzer:瓶頸分析器SankeyDiagram:Sankey圖ExperimentManager:試驗管理器NeuralNet:神經網絡TransferStation:中轉站PortalCrane:門座起重機99/81第二章eM-Plant初步知識1010/81CH2-1創建一個em-plant模型
CH2-Sample11111/81CH2-2對象復制和繼承CH2-Sample11CH2-Sample121212/81第三章eM-Plant建模基本元素---對象1313/81CH3-1使用EventController對象跟蹤仿真事件CH3-EventDebugger11414/81CH3-2Source對象中Operatingmode項作用CH3-Source_operationmode1515/81CH3-3物流對象準備步驟(Set-up)設置CH3-Station1s1_setupisdo print"settingup..."end;1616/81CH3-4Trigger對象應用CH3-Trigger1s1_ctrl(old,new:boolean)isdo s1.pause:=new;end;1717/81第四章分流、動畫和層式結構1818/81CH4-1圖標參考點、動畫點及動畫線設置和作用CH4-Animation11919/81CH4-2分流和分流動畫CH4-Sam_hierachy12020/81CH4-2分流和分流動畫AddAttribisrandNo:real;do randNo:=z_uniform(2,0,1); @.createattr("type","string"); ifrandno>0.5then @.type:="red"; @.curricon:="red"; else @.type:="green"; @.curricon:="green"; end; print@.type;end;Distri_entity(r:integer):integerisdo print"call"; if@.type="red"then return1; else return2; end;end;2121/81CH4-3層式結構CH4-Sam_hierachy2CH4-Sub_hierachy22222/81CH4-4層式結構動畫設置CH4-Sam_hierachy2CH4-Sub_hierachy22323/81第五章表和圖2424/81CH5-1棧表以及隊列表存取CH5-StackFile_and_QueueFile2525/81CH5-1棧表以及隊列表存取Resetisdo stackfile.delete; queuefile.delete; deletemovables;end;countMuis i:integer;do ifstackfile.emptythen i:=1; else i:=stackfile.dim+1; end; stackfile.push(i); queuefile.push(i);end;2626/81CH5-1棧表以及隊列表存取pop_from_fileis i:integer;do ifstackfile.dim>7then i:=stackfile.pop; printi; i:=queuefile.pop; printi;
end;end;2727/81CH5-2Chart對象使用之一CH5-ChartPlot12828/81CH5-2Chart對象使用之一caseisdo ifbuffer_a.numMU>9orbuffer_b.numMU>9 then ?.deleteMovables; end;--ifend;2929/81CH5-3Chart對象使用之二CH5-Chartplot2reset
isdo deletemovables; PartRecord.delete(`[2,1]..`[2,3]);end;3030/81Creatpartis i:real;do i:=z_uniform(1,0,1); @.createattr("type","string");--Createattribute ifi<0.2then @.type:="red"; PartRecord["Number",1]:=PartRecord["Number",1]+1; elseifi<=0.5andi>=0.2then @.type:="green"; PartRecord["Number",2]:=PartRecord["Number",2]+1; elseifi>0.5then @.type:="blue"; PartRecord["Number",3]:=PartRecord["Number",3]+1; end;end;3131/81第六章SimTalk語言和Method對象3232/81CH6-1Method調試器使用CH6-Debugger1M1is sum:real;
do sum:=M2(10,7.5); print"result:",sum;end;3333/81CH6-1Method調試器使用M2(n1,n2:real):realisdo result:=n1+n2;end;3434/81CH6-2匿名指代符使用CH6-Sub_AI1AI1isdo print@.getno; print?.name; printself; printcurrent; printlocation; printlocation.location; printroot;end;3535/81CH6-2匿名指代符使用CH6-AI13636/81CH6-3Variable對象使用CH6-Variable13737/81CH6-3Variable對象使用Resetisdo deletemovables; productquantity:=0;end;Moveisdo @.move(Drain); end;3838/81CH6-3Variable對象使用Countisdo productquantity:=productquantity+1;end;3939/81更改模型Resetisdo deletemovables; productquantity:=0;productquantity1:=0;end;4040/81更改模型Countisdo if@.name="Entityred"then productquantity:=productquantity+1; else productquantity1:=productquantity1+1; end;end;4141/81更改模型Moveis i:integerdo ifbuffer.nummu=10then fori:=1to10loop @.move(Drain); next; end;end;4242/81CH6-4Method對象調用CH6-BecalledInitisdo deletemovables; ref(test).methcall(0);end;4343/81CH6-4Method對象調用Testisdo print"testMethodbecalled."; printeventController.simtime; M1; .models.ch6.becalled.M1; self.methcall(40); (V1);end;4444/81CH6-4Method對象調用M1isdo print"M1methodiscalled...";end;M2isdoprint"M2methodiscalledbyavariableobject.";end;4545/81第七章物流對象----生產類物流對象4646/81CH7-1Assembly對象和DismantleStation對象使用CH7-Sam_assembly14747/81CH7-2Buffer對象和PlaceBuffer對象使用CH7-Sam_buffer4848/81Visitbufferisdo --printplacebuffer[3].; --printplacebuffer.PE(3).; --printbuffer.PE(3).cont.name; end;4949/81CH7-3Store對象使用CH7-Sam_storeresetisdo deletemovables;end;5050/81MoveMuis xdim,ydim:integer;do printstore.numMu;-- printeventcontroller.simtime;-- waituntildrain.emptyprio1; forxdim:=1to3loop forydim:=1to3loop ifstore[xdim,ydim].cont/=voidthen store[xdim,ydim].cont.move; return; end; next; next;-- ref(self).methcall(70);-- self.methcall(0);end;5151/81CH7-4采取ShiftCalendar對象排班CH7-ShiftCalendar1resetisdo deletemovables;end;5252/81CH7-4Cycle對象使用CH7-Cycle15353/81第八章物流對象---運輸類物流對象5454/81CH8-1Line對象使用CH8-Sam_conveyor5555/81CH8-2Transporter對象方向控制之一CH8-CrossTransfer5656/81CH8-2Transporter對象方向控制之一INITisdo .MUs.transporter.create(track,2);end;EnterOrderis Station:object;do station:=?; orderlist.push();end;5757/81CH8-2Transporter對象方向控制之一Load1isdo print"LoadingSP1"; sp1.cont.move(@); @.backwards:=false;end;Load2isdo print"LoadingSP2"; sp2.cont.move(@); @.backwards:=true;end;5858/81Unloadis order:string;do print"Unloading..."; @.stop; ifnot@.emptythen waituntilsp3.emptyprio1; @.cont.move(sp3); end; waituntilorderlist.dim>0prio1; order:=orderlist.pop; iforder="SP1"then @.backwards:=true; else @.backwards:=false; end; @.continue;end;5959/81CH8-3Transporter對象方向控制之二CH8-Transporter16060/81CH8-3Transporter對象方向控制之二resetisdo deletemovables; .Models.ch8.Mus.transporter.create(track11,10); track11.cont.speed:=2;end;6161/81loadisdo print"loading"; --@.stop; source.cont.move(@); --@.backwards:=false; if@.="red"then @.destination:=TRACK1; else @.destination:=TRACK2; end; --@.move; --@.continue; @.DestCtrl:="Unload";end;6262/81Unloadisdo print"unloading"; ifnot@.emptythen if@.="red"then @.cont.move(drain); else @.cont.move(drain1); end; @.destination:="";@.DestCtrl:=""; end; @.move;end;6363/81CH8-4Transporter對象方向控制之三CH8-Transporter26464/81CH8-4Transporter對象方向控制之三resetisdo deletemovables; .Mus.transporter.create(track,2); track.cont.speed:=2; track.cont.destination:="Track5"; track.cont.automaticrouting:=TRUE;end;6565/81更改模型1resetisdo deletemovables; .Mus.transporter.create(track,2); track.cont.speed:=2; track.cont.destination:="Track5"; track.cont.automaticrouting:=False;end;6666/81CH8-5TurnTable對象使用CH8-Sam_turntable6767/81第九章物流對象---資源類物流對象6868/81CH9-1Exporter對象和
Broker對象使用CH9-Sam_exporter6969/81CH9-2WorkerPool對象、Workerplace對象及FootPath對象使用CH9-Sam_workplace7070/81CH9-3設置一組工人(Workers)提供多項服務(Services)CH9-Sam_w
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 塌方地段地主協議書
- 學生安置協議書模板
- 解除房屋拆遷協議書
- 親友借住協議書范本
- 冷庫技術依托協議書
- 就業解約協議書范本
- 民宅賣房協議書范本
- 客人旅游協議書范本
- 青陽華府認購協議書
- 協議書離婚房產歸屬
- GB/T 20424-2025重有色金屬精礦產品中有害元素的限量規范
- 輸油管道安全培訓
- 2025年海南重點項目-300萬只蛋雞全產業鏈項目可行性研究報告
- 小說環境描寫的深度剖析:解鎖文學世界的另一把鑰匙(高中教材全冊)
- 2025年河南省高校畢業生“三支一扶”招募1100人高頻重點模擬試卷提升(共500題附帶答案詳解)
- 關于“地舒單抗”治療骨質疏松的認識
- 使用錯誤評估報告(可用性工程)模版
- TSG 23-2021 氣瓶安全技術規程 含2024年第1號修改單
- 上海市一模二模或中考數學答題紙
- 樁基礎負摩阻計算表格(自動版)
- 幼兒繪本故事:愛書的孩子
評論
0/150
提交評論