Friday, August 30, 2019
Robot Palletizing
PROC teach_drop() MoveJ drop_pt,v1000,fine,tool0; ENDPROC PROC open_gripper() Reset do1; WaitTime 0. 5; ENDPROC QuickTeach software- Creating and calling a subroutine by passing parameter/s to it A. Select ââ¬Å"Routinesâ⬠from the ââ¬Å"VIEWâ⬠top menu keys 1. Cursor to the new subroutine 2. Select ââ¬Å"Declâ⬠(Declaration) from the bottom function keys 3. Select ââ¬Å"Jumpâ⬠key to switch to bottom half of the page 4. Select ââ¬Å"newâ⬠to create a new parameter for subroutine 5. Select ââ¬Å"Rightâ⬠arrow key to ââ¬Å"Param1â⬠6. Select ââ¬Å"Textâ⬠from the bottom function keys 7. Type the variable name ââ¬Å"yâ⬠Repeat the steps 4-7 for more parameters B.Call and set the for the subroutine 1. Select ââ¬Å"ProcCallâ⬠and select the subroutine 2. Type or select the variable name. 3. Type ââ¬Å"yâ⬠4. Select ââ¬Å"okâ⬠5. The result is ââ¬Å"Routine1 yâ⬠. Selection buttons and instructions Selecting a nu mber of instructions: Robotic Envelop and Bill of Material (BOM) Bill Of Material ITEM QTY DESCRIPTION REMARKS PPNP unit 1 2 3 4 5 6 7 1 1 10 1 1 1 1 2 ABB IRB 1400 Robot manipulator S4 Controller Pallet Output conveyor In feed conveyor Spring Stand Pneumatic PNP unit PLC unit Allen Bradley & OMRON PLC Part Pick 2 x10 matrixUse only top view of the cell Do not label the components in the drawing itself 8 ABB Rapid new instructions TPWRITE ââ¬Å"Remarksâ⬠Type in message to display on the teach pendant for the operator. TPERASE Clear the screen of the teach pendant. Case Study ââ¬â 2 dimensional palletizing Write a 2Ãâ"3 palletizing program for the ABB robot. The robot will pick up parts from the conveyor belt and place them on the packaging tray. a) Sketch the layout of the application. (Include the robot, robot envelope, pallet, conveyors, other components. b) Sketch the Program Routine Layouts c) Write the program Specifications: The tray is arranged into 10 columns (7 6. 2 mm in x direction) and 2 rows (50. 8 mm between in y direction) Subroutine names:Main, Home, Pick, Pallet, Open_gripper, Close_ gripper, and the Teach_Drop ABB Rapid ââ¬â Case Study PROC MAIN() ! MAIN routine ââ¬â Layer 1 ! Clear the Teach Pendant screen TPERASE; ! Display message on the Teach Pendant TPWrite; ââ¬Å" 2 x 3 Palletizing programâ⬠! Declare VARIABLES rows := 2; columns := 3; ! Program Logic MoveJ Home, V1000, Z50, T1; WaitTime 0. ; Pallet; MoveJ Home, V1000, Z50, T1; ENDPROC Nested ââ¬Å"FORâ⬠loop PROC Pallet() ! Palletizing routine ââ¬â Layer 2 ! y is in the inner loop and x is in the outer loop FOR x FROM 0 TO rows-1 STEP1 DO FOR y FROM 0 TO columns-1 STEP1 DO PICKUP; MoveJ Offs(droppt, x*76. 2, y*50. 8, 50),v1000,fine,tool0; MoveLOffs(droppt, x*76. 2, y*50. 8, 0),v1000,fine,tool0; opengripper; MoveL Offs(droppt, x*76. 2, y*50. 8, 50),v1000,fine,tool0; ENDFOR ENDFOR Adding TPReadFK instruction TPReadFK (TPRead Function Keys) ââ¬â whe n the robot waits for an operator input.TPReadFK Variable,ââ¬Å" ââ¬Å",â⬠1â⬠³,â⬠2â⬠³,â⬠3â⬠, ââ¬Å"4â⬠,â⬠5â⬠³; Variable value ââ¬â depends on the pressed function Key. The variable will be assigned with the value 1 to 5. â⬠First quotationââ¬Å" ââ¬â Blank ââ¬Å"1â⬠ââ¬â Replace 1 with the preferred text. ( Same for ââ¬Å"2â⬠,â⬠3â⬠³, ââ¬Å"4â⬠, and ââ¬Å"5ââ¬Å") Use the Variable as a condition for the IFâ⬠¦ Else IF.. condition 2-dimensional palletizing with TPReadFK ! MAIN subroutine ââ¬â Layer 1 PROC MAIN() ! Display message on the Teach Pendant TPERASE; TPWrite ââ¬Å" Palletizing programâ⬠; ! Declare VARIABLES ! Rows:=2; Cols:=3; !User define Pallet Matrix subroutine usr_def; ! Program Logic Home; ! WaitDi di7,1; (Next semester) WaitTime 0. 5; Palletize; Home; WaitTime 1; ENDPROC ! User defined Pallet Matrix subroutine PROC usr_def() TPErase; TPReadFK User_IN,ââ¬Å" ââ¬Å", â⬠1Ãâ"2â⬠³,â⬠2Ãâ"3â⬠³,â⬠2Ãâ"4â⬠,ââ¬Å" ââ¬Å",ââ¬Å" ââ¬Å"; IF User_IN =1 THEN Rows:=1; Cols:=2; ELSEIF User_IN =2 THEN Rows:=2; Cols:=3; ELSEIF User_IN =3 THEN Rows:=2; Cols:=4; ENDIF ENDPROC TPReadFK in QuickTeach software Select IPL1 select #7 Communicate. Then create the TPReadFK instruction. Highlight the variable name and select the Enter key.Type the variable name Skip first quotation by selecting the ââ¬Å"Nextâ⬠function key. Then select the ââ¬Å"Textâ⬠function key to type ââ¬Å"1X2â⬠. Repeat the steps for ââ¬Å"2 x 3â⬠and ââ¬Å"2 x 2 x 2â⬠matrix or any other matrix you want. Below the TPReadFK instruction, create the If-ThenElse instruction. TPReadFK in QuickTeach software contââ¬â¢d.. Else IF Instruction Select IPL1 Select the IF instruction. Highlight the entire instruction Select enter key From the function keys, select ADD Select ELSE IF to create the instruction, then select OK. Case study â⠬â 3D palletizing
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.