# 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_plot= Plot_on; Curr_seq= Sub_prog-1; Tmp_tape= Tape_on;
ASSIGN: Plot_on= 0; Tape_on= 0;
ASSIGN: Pathstartpt
ROTARY_POS: B= Bstart;
RAPID: X= Xstart; Y= Ystart; Z= 0;
ASSIGN: Tape_on= Tmp_tape;
ASSIGN: Pre_codes= "G91"; Incremental= 1;
FEED: Z= -Depth_of_cut;
ASSIGN: Curr_seq= 0;
CUTPATH:
FEED: Z= 0;
ASSIGN: Sub_prog= Sub_prog+1; Incremental= 0;
ASSIGN: Plot_on= Tmp_plot;
ASSIGN: Group_element= Group_element+1;
