ABB機(jī)器人碼垛程序
《ABB機(jī)器人碼垛程序》由會(huì)員分享,可在線(xiàn)閱讀,更多相關(guān)《ABB機(jī)器人碼垛程序(45頁(yè)珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。
1、 MODULE MainModule PROC Main() TPErase; TPReadNum nCount1, "Qing Shu Ru Yi Ma Bao Shu!" ; TPReadNum nJob, "Qing Shu Ru Mo Shi:50KG:=1,25KG:=2!"; InitAll; WHILE TRUE DO ReadType; clock2re; PickIF; clock2re; PlaceOF; ENDWHILE ENDPROC PROC clock2re() !tempint:=
2、movstat; IF DI10_1Product0K = 0 or DI10_2TuoPanOK = 0 Then IF tempint<0.25 then ClkStart CLK2; ELSE ClkStop CLK2; ENDIF Else ClkStop CLK2; EndIF Endproc PROC InitAll() MoveHome; Reset DO10_1JiaZhua; Reset DO10_2YaBan; Reset DO10_3ZhuaOK; Reset DO10_4MaDuoOK; Waitt
3、ime 0.5; bPickPart:=FALSE; ClkReset CLK1; ClkStart CLK1; ClkReset CLK2; MoveL Offs(pPick,0,0,400), vFast, z10, tGripper\WObj:=wobj0; ENDPROC 1 / 45 PROC PickIF() IF bPickPart = FALSE AND nJob <> 0 AND DI10_1Product0K = 1 THEN !CalculatePick; MoveJ Offs(pPick,0,0,400),
4、vFast, z200, tGripper\WObj:=wobj0; !MoveLDO Offs(pPick,0,0,100), vFast, z20, tool0\WObj:=wobj0, DO10_1JiaZhua, 1; MoveL pPick, vFast, fine, tGripper\WObj:=wobj0; Close1; GripLoad LoadFull; Accset 50,50; HandshakeIF; bPickPart:=TRUE; ConfL\Off; MoveJ pAfterPick, vFast, z60, tGripper\WObj
5、:=wobj0; ENDIF ENDPROC PROC PlaceOF() IF DI10_2TuoPanOK = 1 AND bPickPart = TRUE THEN CalculatePlace; ConfL\Off; !MoveL Offs(pOver,0,0,nOffsZ2), vFast, z200, tGripper; IF bTag=true then Accset 70, 70; MoveJ pAbovePlace, vFast, z10, tGripper\WObj:=wobj0; else Accset 90, 90;
6、 MoveJ pAbovePlace, vFast, z10, tGripper\WObj:=wobj0; Endif Accset 100,100; ! place first box ConfL\Off; !MoveL Offs(pPlace1,nOffsX1,nOffsY1,nOffsZ1),vTurn,z10,tGripper\WObj:=wobj0; MoveL pPlace1, vMiddle, fine, tGripper\WObj:=wobj0; Open1; ConfL\Off; MoveL Offs(pPlace1,0,0,nOffsZ1),vM
7、iddle,z5,tGripper\WObj:=wobj0; GripLoad LoadEmpty; Accset 100,100; bPickPart:=FALSE; Incr nCount1; HandshakeOF; MoveJ pAbovePick, vFast, z200, tGripper\WObj:=wobj0; MoveL Offs(pPick,0,0,400), vFast, z10, tGripper\WObj:=wobj0; !MoveJ pHome, vFast, z200, tGripper; ENDIF ENDPROC PR
8、OC HandshakeIF() IF nJob=1 THEN !Set DO10_3ZhuaOK; ENDIF IF nJob=2 THEN !Set DO10_3ZhuaOK; ENDIF ENDPROC PROC HandshakeOF() IF (nCount1=40 and nJob =1) or (nCount1=80 and nJob =2) THEN Set DO10_4MaDuoOK; WaitDI DI10_2TuoPanOK, 0; SetDO\SDelay:=0.5,DO10_4MaDuoOK,0; nCount1:=0; Cl
9、kStop CLK1; ClkStop CLK2; TPErase; nCycleCount:=ClkRead(CLK1); Waitingtime:=ClkRead(CLK2); TPWrite "Cycle time: "\Num:=nCycleCount; TPWrite "Waiting time in this Cycle: "\Num:=Waitingtime; ClkReset CLK2; ClkReset CLK1; ClkStart CLK1; ENDIF ENDPROC PROC MoveHome()
10、 TempP1:=CRobT(\Tool:=tool0 \WObj:=wobj0); TempP1.trans.z:=500 ; MoveJ TempP1, v1000, z20, tGripper; MoveJ pHome, v1000, z20, tGripper; ENDPROC PROC ReadType() IF nPriority = 1 AND DI10_1Product0K = 1 THEN !nJob:=1; ! Incr nPriority; ELSEIF nPriority = 2 AND DI10_1Product0K
11、= 1 THEN !nJob:=2; !Incr nPriority; ELSE !nJob:=0; !Incr nPriority; !IF nPriority>2 nPriority:=1; ENDIF ENDPROC PROC Open1() Reset DO10_2YaBan; Waittime 0.0; Reset DO10_1JiaZhua; waittime 0.1; !Waittime nTimeGripper; ENDPROC PROC Close1() Set DO10_1JiaZhua; Waittime 0.0;
12、 WaitDI DI10_4Zhua1End, 1; Set DO10_2YaBan; Waittime 0.0; !Waittime nTimeGripper; WaitDI DI10_4Zhua1End, 1; !WaitDI DI10_6Zhua2End, 1; ENDPROC PROC CalculatePick() IF nJob = 1 THEN pPick:=pPick1; ELSEIF nJob = 2 THEN pPick:=pPick1; ENDIF !pAbovePick:=pPick; !pAfterPick:=pPick; !P
13、attern80; !pAbovePick.trans.z:= pAfterPick.trans.z; !pAbovePick.trans.y:= pAfterPick.trans.y-500; !pAfterPick.trans.y:= pAfterPick.trans.y-500; ENDPROC PROC CalculatePlace() IF nJob = 1 THEN nBagL:=nBag50L; nBagW:=nBag50W; nBagH:=nBag50H; Pattern80; ELSEIF nJob = 2 THEN n
14、BagL:=nBag25L; nBagW:=nBag25W; nBagH:=nBag25H; Pattern100; ENDIF !pAbovePlace:=pPlace1; pAfterPlace:=pAbovePlace; ENDPROC PROC Pattern80() bTag:=FALSE; TEST nCount1+1 CASE 1: pPlace1:=pBase180; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.tran
15、s.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=500; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; bTag:=True; CASE 2: pPlace1:=pBase0; pPlace1.trans.x:=pPlace1.trans.x; pPlac
16、e1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 3: pPlace1:=pBase90; pPlace1.tr
17、ans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE
18、4: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x+2*nBagW; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAboveP
19、lace.trans.z:=pPick.trans.z+400; CASE 5: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x+nBagW; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans.z:=pPlace1.trans.z+20; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPic
20、k.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; !Layer2 CASE 6: pPlace1:=pBase180; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+nBagL-5; pPlace1.trans.z:=pPlace1.trans.z+nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOff
21、sZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 7: pPlace1:=pBase0; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+nBagL-5; pPlace1.trans.z:=pPlace1.trans.z+nBagH; nOffsX1:
22、=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 8: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.tran
23、s.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 9: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x+2*nBagW-25;
24、 pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=2; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 10: pPlace1:=pBase270; pP
25、lace1.trans.x:=pPlace1.trans.x+nBagW; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=2; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+40
26、0; !Layer3 CASE 11: pPlace1:=pBase180; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+2*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePla
27、ce:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; bTag:=True; CASE 12: pPlace1:=pBase0; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+2*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE
28、; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 13: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans.z:=pPlace1.trans.z+2*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2;
29、 nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 14: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x+2*nBagW; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans.z:=pPlace1.trans.z+2*nBag
30、H; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 15: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x+nBagW; pPlace1.trans.y:=pPlace1.
31、trans.y+25; pPlace1.trans.z:=pPlace1.trans.z+2*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; !layer4 CASE 16:
32、 pPlace1:=pBase180; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+nBagL-5; pPlace1.trans.z:=pPlace1.trans.z+3*nBagH+80; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-300; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; p
33、AbovePlace.trans.z:=pPick.trans.z+400; CASE 17: pPlace1:=pBase0; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+nBagL-5; pPlace1.trans.z:=pPlace1.trans.z+3*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-300; nLevel:=1; bTwice:=FALSE; pAfterPick.tra
34、ns.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 18: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+2*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-300; nL
35、evel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 19: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x+2*nBagW-25; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+2*nBagH; nOffsX1:=0;
36、 nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-300; nLevel:=2; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; CASE 20: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x+nBagW; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.t
37、rans.z:=pPlace1.trans.z+2*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-300; nLevel:=2; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+400; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+400; !layer5 CASE 21: pPlace1:=pBase180; pPlace1.trans.x:=pPlace1.t
38、rans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+4*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-300; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+500; bTag:=True; CA
39、SE 22: pPlace1:=pBase0; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+4*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-300; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500; pAbovePlace:=pPlace1; pAboveP
40、lace.trans.z:=pPick.trans.z+500; CASE 23: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans.z:=pPlace1.trans.z+4*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-300; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPic
41、k.trans.z+500; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+500; CASE 24: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x+2*nBagW; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans.z:=pPlace1.trans.z+4*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-300; nL
42、evel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+500; CASE 25: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x+nBagW; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans.z:=pPlace1.trans.z+4*nBagH; nOffsX1:=0; nOff
43、sY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-300; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+500; !layer6 CASE 26: pPlace1:=pBase180; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+nBagL-5; p
44、Place1.trans.z:=pPlace1.trans.z+5*nBagH-50; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-100; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+450+nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+450+nBagH; CASE 27: pPlace1:=pBase0; pPlace1.trans.
45、x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+nBagL-5; pPlace1.trans.z:=pPlace1.trans.z+5*nBagH-50; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-100; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500+nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.tra
46、ns.z+500+nBagH; CASE 28: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+4*nBagH-45; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-100; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500+nBagH;
47、 pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+450+nBagH; CASE 29: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x+2*nBagW-25; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+4*nBagH-45; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-100; nLev
48、el:=2; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500+nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+500+nBagH; CASE 30: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x+nBagW; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+4*nBagH-45; nO
49、ffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-100; nLevel:=2; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500+nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+500+nBagH; !layer7 CASE 31: pPlace1:=pBase180; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=
50、pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+6*nBagH; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-100; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+450+2*nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+450+2*nBagH; bTag:=True; CASE 32: pP
51、lace1:=pBase0; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+6*nBagH-40; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-100; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+450+2*nBagH; pAbovePlace:=pPlace1; pA
52、bovePlace.trans.z:=pPick.trans.z+450+2*nBagH; CASE 33: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans.z:=pPlace1.trans.z+6*nBagH-40; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-100; nLevel:=1; bTwice:=FALSE; pAfterPick.t
53、rans.z:=pPick.trans.z+450+2*nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+450+2*nBagH; CASE 34: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x+2*nBagW; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans.z:=pPlace1.trans.z+6*nBagH-40; nOffsX1:=0; nOffsY1:=0; nOffsZ1:
54、=nBagH*1.2; nOffsZ2:=-100; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+450+2*nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+450+2*nBagH; CASE 35: pPlace1:=pBase90; pPlace1.trans.x:=pPlace1.trans.x+nBagW; pPlace1.trans.y:=pPlace1.trans.y+25; pPlace1.trans
55、.z:=pPlace1.trans.z+6*nBagH-40; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=-100; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+450+2*nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+450+2*nBagH; !layer8 CASE 36: pPlace1:=pBase180; pPlace1.tra
56、ns.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+nBagL-5; pPlace1.trans.z:=pPlace1.trans.z+7*nBagH-40; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=100; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+450+3*nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick
57、.trans.z+450+3*nBagH; CASE 37: pPlace1:=pBase0; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y+nBagL-5; pPlace1.trans.z:=pPlace1.trans.z+7*nBagH-60; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=100; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z
58、+450+3*nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+450+3*nBagH; CASE 38: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+6*nBagH-60; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=100; nLe
59、vel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+450+3*nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+450+3*nBagH; CASE 39: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x+2*nBagW-30; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+6*n
60、BagH-60; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=100; nLevel:=2; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+450+3*nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+450+3*nBagH; CASE 40: pPlace1:=pBase270; pPlace1.trans.x:=pPlace1.trans.x+nBagW; pPlace1
61、.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z+6*nBagH-60; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*1.2; nOffsZ2:=100; nLevel:=2; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+450+3*nBagH; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+450+3*nBagH; DEFAULT: Err
62、Write "Wrong box Count...","Single box must be the last one of a Pallet"; Stop; EXIT; ENDTEST ENDPROC PROC Pattern100() bTag:=FALSE; TEST nCount1+1 CASE 1: pPlace1:=p25Base270; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1
63、.trans.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=600; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+700; bTag:=True; CASE 2: pPlace1:=p25Base0; pPlace1.trans.x:=pPlace1.trans.x; pP
64、lace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+700; CASE 3: pPlace1:=p25Base90; pPlace1
65、.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+700; CASE 4:
66、 pPlace1:=p25Base180; pPlace1.trans.x:=pPlace1.trans.x; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=nBagH*2; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.z:=pPick.trans.z+500; pAbovePlace:=pPlace1; pAbovePlace.trans.z:=pPick.trans.z+700; CASE 5: pPlace1:=p25Base270; pPlace1.trans.x:=pPlace1.trans.x-nBagW; pPlace1.trans.y:=pPlace1.trans.y; pPlace1.trans.z:=pPlace1.trans.z; nOffsX1:=0; nOffsY1:=0; nOffsZ1:=500; nOffsZ2:=-500; nLevel:=1; bTwice:=FALSE; pAfterPick.trans.
- 溫馨提示:
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. 裝配圖網(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2023年二年級(jí)數(shù)學(xué)上冊(cè)9總復(fù)習(xí)專(zhuān)題二圖形與幾何作業(yè)課件新人教版
- 2023年二年級(jí)數(shù)學(xué)上冊(cè)6表內(nèi)乘法二第4節(jié)9的乘法口訣作業(yè)課件新人教版
- 2023年二年級(jí)數(shù)學(xué)上冊(cè)4表內(nèi)乘法一22~6的乘法口訣第2節(jié)234的乘法口訣作業(yè)課件新人教版
- 2023年二年級(jí)數(shù)學(xué)上冊(cè)2100以?xún)?nèi)的加法和減法二3連加連減和加減混合第4課時(shí)解決問(wèn)題作業(yè)課件新人教版
- 2023年二年級(jí)數(shù)學(xué)上冊(cè)1長(zhǎng)度單位單元復(fù)習(xí)提升作業(yè)課件新人教版
- 2023年三年級(jí)數(shù)學(xué)下冊(cè)第四單元綠色生態(tài)園__解決問(wèn)題信息窗1用連乘連除兩步運(yùn)算解決問(wèn)題作業(yè)課件青島版六三制
- 2023年三年級(jí)數(shù)學(xué)下冊(cè)第六單元認(rèn)識(shí)分?jǐn)?shù)第4課時(shí)分一分二2作業(yè)課件北師大版
- 2023年三年級(jí)數(shù)學(xué)下冊(cè)第二單元長(zhǎng)方形和正方形的面積第4課時(shí)長(zhǎng)方形和正方形面積的計(jì)算1作業(yè)課件西師大版
- 2023年三年級(jí)數(shù)學(xué)下冊(cè)第三單元三位數(shù)除以一位數(shù)的除法第4課時(shí)筆算除法1作業(yè)課件西師大版
- 2023年三年級(jí)數(shù)學(xué)下冊(cè)第一單元除法練習(xí)二作業(yè)課件北師大版
- 2023年三年級(jí)數(shù)學(xué)下冊(cè)第一_五單元階段性綜合復(fù)習(xí)作業(yè)課件蘇教版
- 2023年三年級(jí)數(shù)學(xué)下冊(cè)第6單元年月日第1課時(shí)年月日1作業(yè)課件新人教版
- 2023年三年級(jí)數(shù)學(xué)下冊(cè)第4單元兩位數(shù)乘兩位數(shù)拓展提升四作業(yè)課件新人教版
- 2023年三年級(jí)數(shù)學(xué)下冊(cè)第4單元兩位數(shù)乘兩位數(shù)1口算乘法第2課時(shí)口算乘法2作業(yè)課件新人教版
- 2023年三年級(jí)數(shù)學(xué)下冊(cè)第2單元除數(shù)是一位數(shù)的除法2筆算除法第4課時(shí)商中間有0的除法作業(yè)課件新人教版