# MACRO cut_contour
# this is a macro to cut a path.
# 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
# Insert diameter comp in a move to the path start point
# Cuts the path
# Turns off comp in a move away from the contour
# retracts to the rap level.
#
ASSIGN: Zcounter= Zcounter;
ASSIGN: Pathstartpt
ASSIGN: Pathendpt
SELECT: Zcounter
CASE: 1
ASSIGN: Zcounter_loop= Rap_level;
ASSIGN: Zcountertest= 1;
ASSIGN: Junk= 0;
CASE: 2
ASSIGN: Zcounter_loop= Rap_level;
RAPID: X= Xstart; Y= Ystart; #
FEED: Z= Rap_level- Finish_depth;
END SELECT:
OUTPUT: F{Tfeed}
 # to seperate select statements bug
ASSIGN: Junk= 0;
SELECT: Zcountertest
CASE: 1
RAPID: X= Xstart; Y= Ystart; #
RAPID: Z= Rap_level- Finish_depth- Zcounter_loop+ .020;
FEED: Z= Rap_level- Finish_depth;
END SELECT:
CUTPATH:
