# 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: Tmp_tape= Tape_on;
FEED: Z= Rap_level- Finish_depth; Feed= Zfeed;
ASSIGN: Feed= Tfeed;
OUTPUT: G{Comp_dir}X{Xstart}Y{Ystart}D{Dia_comp}F{Feed}
OUTPUT: M98P{Sub_prog}
ASSIGN: Tape_on= 0;
CUTPATH:
ASSIGN: Tape_on= Tmp_tape;
ASSIGN: Pathendpt
OUTPUT: G01G{Comp_cancel}X{Xend}Y{Yend}
