# 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.
#
RAPID: X= Xstart; Y= Ystart; 
RAPID: Z= Rap_level+ Tool_clearance;
RAPID: Z= Rap_level- Finish_depth;
ASSIGN: Pathstartpt 
OUTPUT: G01G{Comp_dir}X{Xstart}Y{Ystart}D{Dia_comp}
CUTPATH:
ASSIGN: Pathendpt
OUTPUT: G01G{Comp_cancel}X{Xend}Y{Yend}
RAPID: Z= Rap_level+ Tool_clearance;
