示例2-无限制
VAR intnum int\u move\u stop;
VAR errnum err\u move\u stop:=-1;
...
PROC test\u move\u stop()
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;
Example 2 - No limitations
VAR intnum int_move_stop;
VAR errnum err_move_stop := -1;
...
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;