视频中机器人搬运轮毂时,抓手在打开或者夹紧到位时,不是立即执行下一步,而是有一个短暂的等待,请问这是为什么?
机器人程序如下:
PROC PickDrop_15x5x4d5()
!!!!!!!!!!!!!!!!Pick from Op20!!!!!!!!!!!!!!!!!!!
MoveJ [[567.88,-2289.71,1272.15],[0.00387006,-0.558731,0.829323,-0.00523988],[-1,-1,-2,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]], vmax, z200, tGrp1;
MoveJ Offs(p40,0,0,-23.5), vmax, fine, tGrp1;
IF di111_op20part_in=1 THEN
CloseGrp1;
!Grp1PartChk;
ENDIF
MoveJ [[570.44,-2290.61,1275.18],[0.00518749,-0.305477,0.952177,-0.00400198],[-1,-1,-2,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]], vmax, z200, tGrp1;
ENDPROC
PROC CloseGrp1(\switch NoCheck)
Reset DoGrp1Open;
Set DoGrp1Close;
IF NOT Present(NoCheck) THEN
WHILE NOT (DiGrp1Opened=0 AND DiGrp1Closed=1) DO
bTimeFlag:=FALSE;
WaitUntil DiGrp1Opened=0 AND DiGrp1Closed=1\MaxTime:=6\TimeFlag:=bTimeFlag;
IF bTimeFlag THEN
UiMsgBox\Header:="305 - Grp1 Clamp NOT Close","Please Check Air Pressure!"\MsgLine2:="Please Check Pneumatic Valve AND Cylinder"\MsgLine3:="Please Check Position Switch"\MsgLine4:="Please Select OK For Retry"\Buttons:=btnOK\Icon:=iconWarning\result:=nPressedKey;
ENDIF
ENDWHILE
ENDIF
!
ENDPROC
楼主最近还看过