# MACRO cut_surf_path
# this is a macro to cut a path on a 3d surface.
# It will position over the XY point defined by Xstart,Ystart
# Rapid in Z to the Rap Level
# Feed in Z to the Finish depth
# Cuts the path
# retracts to the retract level.
#
ASSIGN: Surfstartpt
ROTARY_POS: A= Astart; C= Cstart; B= Bstart;
SELECT: (Retract_z < Zstart)
CASE: 0
POSITION_XY: X= Xstart; Y= Ystart;
RAPID: X= Xstart; Y= Ystart; Z= Retract_z;
RAPID: Z= Zstart+ Tool_clearance;
CASE: 1
RAPID: X= Xstart; Y= Ystart; Z= Zstart+ Tool_clearance;
RAPID: Z= Zstart+ Tool_clearance;
END SELECT:
FEED: Z= Zstart; Feed= Zfeed;
ASSIGN: Feed= Tfeed;
CUTSURF:
ASSIGN: Surfendpt
SELECT: (Retract_z < Zend)
CASE: 0
RAPID: X= Xend; Y= Yend; Z= Retract_z;
CASE: 1
RAPID: X= Xend; Y= Yend; Z= Zend+ Tool_clearance;
END SELECT:
ASSIGN: Path= Path+1;
