#
# safe_pullout
#
ASSIGN: Xlast=X; Ylast= Y; Zlast= Z;
SELECT: Power_tool
CASE: 1
ASSIGN: Y1= Initial_z-Yorgshift;
RAPID: Y= MAX(Ylast,Y1);
CASE: 2
ASSIGN: X1= Initial_z-Xorgshift;
RAPID: X= MAX(Xlast,X1);
CASE: 3
ASSIGN: Y1= Initial_id_dia/2-Yorgshift;
RAPID: Y= MAX(Ylast,Y1);
END SELECT:
ASSIGN: Canned_pullback=0;
#
