Dear Gents,
I have depalletizing program, which take plastic baskets (KLT) from a pallet.
Sometimes the KLTs, are not placed very well and they don’t fit properly, meaning that top KLT do not inserted properly into the one below. As result, the top one is a little bit inclined. When the gripper tries to catch the KLT, SRVO-050 Collision Detect Alarm occurs.
My goal is to make a routine, which in case of SRVO-050 Collision Detect Alarm, to return back the gripper and wait the operator to align the problematic KLT. Next when the operator reset the robot (from HMI), the process to continue.
I wrote the following program but it doesn’t function as I expect. I addition, SRVO-050 suddenly stops to appear.
ARC_KLT_ADAPTIVE_APRCH.LS
1: //save curr pos on the top of KLTY ;
2: PR[35:CurrentPos]=LPOS ;
3: ;
4: LBL[1:adaptive begin] ;
5: ;
6: !adaptive approach start ;
7: LBL[10:adaptive start] ;
8: // moves 90 mm down ;
9:L PR[67:incZn90] 500mm/sec FINE INC ;
10: //sensor that gripper is on the KLT ;
11: SKIP CONDITION RI[4:plate WP]=OFF ;
12:L PR[68:incZn30] 200mm/sec FINE Skip,LBL[15] INC ;
13: //sensoe that gripper is on pos. to catch KLT ;
14: SKIP CONDITION RI[3:plate HP]=ON OR ERR_NUM=11050 ;
15:L PR[66:incZn50] 100mm/sec FINE Skip,LBL[15] INC ;
16: ;
17: //check if the stop is because of sensor or error;
18: IF (RI[3:plate HP]=OFF) THEN ;
19: //if RI[3] still off, must be the fault occur. Go UP!;
20:L PR[35:CurrentPos] 500mm/sec FINE ;
21: UALM[2] ;
22: JMP LBL[10] ;
23: ENDIF ;
24: ;
25: ;
26: JMP LBL[100] ;
27: ;
28: LBL[15:P20] ;
29:L PR[35:CurrentPos] 500mm/sec FINE ;
30: UALM[7] ;
31: JMP LBL[10] ;
32: ;
33: LBL[100:END] ;
Any advices and recommendations will be highly appreciated.
Best regards,
Svetozar Yolov