# 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.
#
FEED: Z= Rap_level- Finish_depth; Feed= Zfeed;
ASSIGN: Feed= Tfeed;
OUTPUT: G{Comp_dir}X{Xstart}Y{Ystart}D{Dia_comp}F{Feed}
MACRO: cutpath           Repeats= (Do_sub<1);
MACRO: subprogram 	Repeats= (Do_sub>0);
ASSIGN: Pathendpt
#ASSIGN: Xend= Xend*(Loop1< Ncuts)+Xac*(Loop1> Ncuts-1);
#ASSIGN: Yend= Yend*(Loop1< Ncuts)+Yac*(Loop1> Ncuts-1);
OUTPUT: G01G{Comp_cancel}X{Xend}Y{Yend}
