# 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: Dia_comp_mode=2;
ASSIGN: Pathstartpt
MACRO: coolant_on        Repeats= (Coolant_on= 1)*(Loop1= 1);
FEED: Z= Rap_level- Finish_depth; Feed= 2.0*Zfeed;
ASSIGN: Feed= Tfeed;
CUTPATH:
RAPID: Z= Initial_z-Zorgshift;
OUTPUT: G40
ASSIGN: Pathendpt
ASSIGN: Xendr= Xend; Yendr= Yend; Zendr= Zend;
