#
# MACRO ramp_contour_XZ
# This macro ramps into a path
#
ASSIGN:  Loop2= 1;
ASSIGN: Temp= Finish_depth - Depth_of_cut*(Loop1-1);
ASSIGN: Nramps= INT(Temp/Ramp_depth-.00001)+1; 
POSITION_XZ: X= Xramp2 ;Z= Zramp2;
RAPID: Y= Rap_level- Depth_of_cut*(Loop1-1)+ Tool_clearance;
FEED: Y= Rap_level- Depth_of_cut*(Loop1-1); Feed= Zfeed;
MACRO: ramp_into	Repeats= Nramps;
FEED: X= Xbc; Z= Zbc; Feed= Tfeed;
CUTPATH:
ASSIGN: Pathendpt
ASSIGN: Xend= Xend*(Loop1< Ncuts)+Xac*(Loop1> Ncuts-1);
ASSIGN: Zend= Zend*(Loop1< Ncuts)+Zac*(Loop1> Ncuts-1);
RAPID: Y= Rap_level+ Tool_clearance; Codes= Coolant_off;
