#
#  MACRO cfacesetup  
#   macro for seting up canned cycles on the face of the part
#   this macro must be initiated before any G8* canned cycles using X C axes.
#
MILLACTIVE:
MAPWORD: letter=X      map="Z"
MAPWORD: letter=Y      map="X" dia 
MAPWORD: letter=Z      map="Y"
MAPWORD: letter=A      map="C"
MAPWORD: letter=C      map="B"
MAPWORD: letter=R      map="R" modal
STD_BLK: RAPID:          gcode= 0  rapid         std blk= N*G*X*Y*Z
STD_BLK: LINEAR:         gcode= 1  feed          std blk= N*G*X*Y*Z*F
STD_BLK: FEED:           gcode= 1  feed          std blk= N*G*X*Y*Z*F
STD_BLK: CANNED_OFF:     gcode= 80 rapid         std blk= N*G*X
STD_BLK: DRILL:          gcode= 81 canned        std blk= N*G*Y|R|X*Z*F
STD_BLK: COUNTERBORE:    gcode= 82 canned        std blk= N*G*Y|R|X*Z*P*F
STD_BLK: PECK_DRILL:     gcode= 83 canned        std blk= N*G*Y|R|X*Z*Q*F
STD_BLK: TAP:            gcode= 84 canned        std blk= N*G*Y|R|X*Z*F
STD_BLK: BORE(G85):      gcode= 85 canned        std blk= N*G*Y|R|X*Z*F
STD_BLK: BORE(G86):      gcode= 86 canned        std blk= N*G*Y|R|X*Z*F
STD_BLK: BORE(G87):      gcode= 87 canned        std blk= N*G*Y|R|X*Z*F
STD_BLK: BORE(G88):      gcode= 88 canned        std blk= N*G*Y|R|X*Z*P*F
STD_BLK: BORE(G89):      gcode= 89 canned        std blk= N*G*Y|R|X*Z*P*F
SELECT_PLANE: select planes: xyplane= G18 xzplane= G19 yzplane= G17 
ASSIGN: FiveAxisConfigOff 
ASSIGN: Rotary_axis= 1;
ASSIGN: RotaryAxisOn 
ASSIGN: Rot_in_plane=1;
PLANE_YZ:
SET_TOOL_AXIS: Xvector= 1.0; Yvector= 0.0; Zvector= 0.0;
SET_TOOL_ORIENT: Xvector= 0.0; Yvector= 1.0; Zvector= 0.0;
SET_ROTARY_ORIENT: Xvector= 0.0; Yvector= 1.0; Zvector= 0.0;
