# 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: Z=1.0;
OUTPUT: G0Z{Z}
ASSIGN: Pathstartpt
RAPID: X=Xstart; Y=Ystart;
ASSIGN: Z=0.1;
OUTPUT: G0Z{Z}
OUTPUT: F{Feed}
OUTPUT: M50
ASSIGN: Z=0.0;
OUTPUT: G1Z{Z}
CUTPATH:
OUTPUT: M51
ASSIGN: Pathendpt
