BookErrNo err\u move\u stop;
連接int\u move\u stop和trap\u move\u stop;
ISignalDI di1,1,int\u move\u stop;
MoveJ p10、v200、z20、夾持器;
MoveL p20、v200、z20、夾持器;
錯誤(err\u move\u stop)
停止移動;
ClearPath;
開始移動;
StorePath;
MoveJ p10、v200、z20、夾持器;
再發(fā)?。?br />重試;
ENDPROC公司
陷阱TRAP\u move\u stop
升起err\u move\u stop;
錯誤
提高;
末端陷阱
這是一個如何將錯誤恢復與跳遠和ClearPath結合使用的示例
沒有任何限制。在機器人移動到p10和p20期間,正在進行的移動
已停止。運動路徑被清除,并且由于執(zhí)行級別的錯誤恢復
邊界,中斷是主動指令版權所有2004-2010 ABB。所有權利


PROC test_move_stop()
BookErrNo err_move_stop;
CONNECT int_move_stop WITH trap_move_stop;
ISignalDI di1, 1, int_move_stop;
MoveJ p10, v200, z20, gripper;
MoveL p20, v200, z20, gripper;
ERROR (err_move_stop)
StopMove;
ClearPath;
StartMove;
StorePath;
MoveJ p10, v200, z20, gripper;
RestoPath;
RETRY;
ENDPROC
TRAP trap_move_stop
RAISE err_move_stop;
ERROR
RAISE;
ENDTRAP
This is an example of how to use error recovery with long jump together with ClearPath
without any limitation. During the robot movement to p10 and p20, the ongoing movement
is stopped. The motion path is cleared, and because of error recovery through execution level
boundaries, break off is done of the active instruction Copyright 2004-2010 ABB. All rights







客服1