#
# MACRO ramp_contour2
#
# This macro ramps into a path
ASSIGN: Loop2= 1;
ASSIGN: Temp= Finish_depth - Depth_of_cut*(Loop1-1);
#
# IF UNEVEN RAMP DEPTHS OF CUT
#ASSIGN: Nramps= INT(Temp/Ramp_depth-.00001)+1;
#ASSIGN: Ramp_depth= Ramp_dist*Max_cut;
# IF EVEN RAMP DEPTHS OF CUT
ASSIGN: Nramps= INT(Temp/Max_rdepth-.00001)+1; 
ASSIGN: Ramp_depth= Temp/Nramps;
#
#
POSITION_XY: X=Xrmp; Y=Yrmp;
RAPID: X= Xrmp; Y=Yrmp; Z= Rap_level+ Tool_clearance;
RAPID: Z= Rap_level- Depth_of_cut*(Loop1-1)+ Tool_clearance;
FEED: Z= Rap_level- Depth_of_cut*(Loop1-1); Feed= Zfeed;
MACRO: ramp_into2	Repeats= Nramps;
# Cut the path from here to end of macro
ASSIGN: Feed= Tfeed;
OUTPUT: G{Comp_dir}X{Xstart}Y{Ystart}
CUTPATH:
ASSIGN: Pathendpt
OUTPUT: G{Comp_cancel}X{Xend}Y{Yend}
