#
#	macro rotary_zero
#
ASSIGN: Active_head= ((Zone_num<First_v_zone)+ 2*(Zone_num>Last_h_zone));
SELECT: Active_headr
CASE: 0,1
RAPID_Z: Z= Retract_z;
CASE: 2
RAPID_Y: Y= Retract_z;
END SELECT:
#
ASSIGN: Head_change=0;
SELECT: (Active_head<>Active_headr)
CASE: 1
MACRO: head_select	Repeats= (Active_head<>Active_headr);
ASSIGN: Force_rotary= Head_change;
ASSIGN: Start_hole= Current_hole; Holestartpt
MACRO: rotate_b   Repeats= (Zone_num< First_v_zone);
OUTPUT: G{54+Zone_num}
OUTPUT: S{Speed}M03
CASE: 0
ASSIGN: Start_hole= Current_hole; Holestartpt
MACRO: rotate_b   Repeats= (Zone_num< First_v_zone);
OUTPUT: G{54+Zone_num}
END SELECT: 
ASSIGN: Xorgshift= -Xstart; Yorgshift= -Ystart; Zorgshift= -Zstart;
ASSIGN: Xplotshift= Xstart; Yplotshift= Ystart; Zplotshift= Zstart;
ASSIGN: Plot_shift_on= 1;
ASSIGN: Did_rotate= 1;
