IF(-#300)THEN
MESSAGEBOX(Current Tool-Holder Number is Wrong!)
ERREXIT
ENDIF
IF (+#500) THEN
MESSAGEBOX(Exchanging Tool Over Max Tool Number!)
ERREXIT;
ENDIF;
IF (+#501) THEN
MESSAGEBOX(Exchanging Tool is current tool in SP!)
RETURN;
ENDIF;
IF(+#502) THEN
MESSAGEBOX(Exchanging Tool number is wrong)
ERREXIT
ENDIF
IF(+#505)THEN
MESSAGEBOX(Without This Tool in Magazine!)
ERREXIT
ENDIF
IF(+#510) THEN
MESSAGEBOX(Distance between tools is wrong!)
ERREXIT
ENDIF
IF(+#511) THEN
MESSAGEBOX(Coordinate of A-axis is Wrong!)
ERREXIT
ENDIF
IF(-X01)THEN
MESSAGEBOX(Tool Magazine isnot at Right Position!)
ERREXIT
ENDIF
IF(-X02)THEN
MESSAGEBOX(ATC ARM isnot at Right Position!)
ERREXIT
ENDIF
IF(-X04)THEN
MESSAGEBOX(Tool Holder Don't Lift Up!)
ERREXIT
ENDIF
IF(-X07) THEN
MESSAGEBOX(Tool Holder isnot at position!)
ERREXIT
ENDIF
RETURN;
