#
# MACRO turn_turret1
# this is a macro to turn a path on turret #1.
# Assumes the path is a synergy entity variable called Path1
# Assumes the tool is associated.
# The Sync segment number is Seg_number
#
MACRO:  head1blocks
ASSIGN: Tnose_shift= ToolNoseRadius(GetAssocTool(Path1));
ASSIGN: Feed= Feed1;
ASSIGN: Tnose_quad= ToolQuadrant(GetAssocTool(Path1));
ASSIGN: Path_name= EntityNameStr(Path1);
ASSIGN: X= Xturret1; Z= Zturret1; 
ASSIGN: Setcoordinates
SELECT: Seg_number
CASE: 1
ASSIGN: P1= PointXYZ(Z,X,0);
ASSIGN: Stat= ToolTipShiftEnt(P1,GetAssocTool(Path1),WsReverse);
ASSIGN: P2= ContStartPt(Path1);
ASSIGN: L1= LineTwoPoints(P1,P2);
ASSIGN: Stat= InsertIntoGrp(Path1,L1,1);
ASSIGN: Stat= SetRapidFlag(L1,1);
ASSIGN: Stat= DeleteEntity(P1);
ASSIGN: Stat= DeleteEntity(P2);
END SELECT:
CUTPATH:
ASSIGN: Xturret1=X; Zturret1=Z;
ASSIGN: Tnose_shift= 0;
ASSIGN: Setcoordinates
ASSIGN: Turret1_seq= Curr_seq;
ASSIGN: Turret1_time= Machine_time;
