#
#	macro safe_round
#
#Macro Safe_roundis called if Do_safe=1 and it is the first time through the 
#macro.
SELECT: Active_head
CASE: 1
#
#
#
OUTPUT: G00X{Xtemp+ X1}Y{Ytemp+ Y1}S{Speed}M03
ASSIGN: Xret= X; Yret= Y;
ASSIGN: Helical_rad= (.5*Diameter + Cutter_offset*Inout)/2;
OUTPUT: G43Z{Initial_z- Zorgshift}H{Length_comp}T{Next_tool}
RAPID: Z= Rap_level+ Tool_clearance;
#
#
#
CASE: 2
#
#
#
OUTPUT: G00X{Xtemp+ X1}Z{Ztemp+ Z1}S{Speed}M03
ASSIGN: Xret= X; Zret= Z;
ASSIGN: Helical_rad= (.5*Diameter + Cutter_offset*Inout)/2;
OUTPUT: G43Y{Initial_z- Yorgshift}H{Length_comp}T{Next_tool}
RAPID: Y= Rap_level+ Tool_clearance;
#
#
#
END SELECT:
