#
#	macro round_cut
#
ASSIGN: Cutter_offset= Tool_dia/2;
ASSIGN: Clearance= Diameter/2-Cutter_offset;
SELECT: Active_head
CASE: 1
MACRO: rotate_b    Repeats= (Bstart<> Blast);
ASSIGN: Rap_level= Zstart; Finish_depth= Hole_depth;
MACRO: pre_round_cut
ASSIGN: Zfinish= Finish_depth;
ASSIGN: Ncuts= INT(Finish_depth/Depth_of_cut-.00001)+1;
ASSIGN: Loop1=1;
ASSIGN: X_hole= Xstart; Y_hole= Ystart;
MACRO:  sround_cut   Repeats= Ncuts;
ASSIGN: Finish_depth= Zfinish;
RAPID: Z= Rap_level+ Tool_clearance; Codes= Coolant_off;
ASSIGN: No_coolant= 1;
CASE: 2
ASSIGN: Rap_level= Ystart; Finish_depth= Hole_depth;
MACRO: pre_round_cut
ASSIGN: Zfinish= Finish_depth;
ASSIGN: Ncuts= INT(Finish_depth/Depth_of_cut-.00001)+1;
ASSIGN: Loop1=1;
ASSIGN: X_hole= Xstart; Z_hole= Zstart;
MACRO:  sround_cut   Repeats= Ncuts;
ASSIGN: Finish_depth= Zfinish;
RAPID: Y= Rap_level+ Tool_clearance; Codes= Coolant_off;
ASSIGN: No_coolant= 1;
END SELECT:
