#
#  MACRO caxis_od_setup
#   macro for setting up canned cycles along the od of the part.
#   this macro must be called for any G8* canned cycles using Z 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=R      map="R" dia modal
STD_BLK: RAPID:          gcode= 0  rapid         std blk= G*X*Y
STD_BLK: POSITION_XY:          gcode= 0  rapid         std blk= G*X*Y
STD_BLK: LINEAR:         gcode= 1  feed          std blk= G*X*Y*F
STD_BLK: FEED:           gcode= 1  feed          std blk= G*X*Y*F
STD_BLK: ROTARY_POS:     gcode= 0  rapid         std blk= G*X*Y*A
STD_BLK: ROTARY_FEED:    gcode= 1  feed          std blk= G*X*Y*A*F
STD_BLK: CANNED_OFF:     gcode= 80 rapid         std blk= G*Y
STD_BLK: DRILL:          gcode= 87 canned        std blk= G*X|Y*F
STD_BLK: COUNTERBORE:    gcode= 87 canned        std blk= G*X|Y*P*F
STD_BLK: PECK_DRILL:     gcode= 87 canned        std blk= G*X|Y*Q*F
STD_BLK: TAP:            gcode= 88 canned        std blk= G*X|Y*F
SELECT_PLANE: select planes: xyplane= none  xzplane= none   yzplane= none   
ASSIGN: RotaryAxisOn 
ASSIGN: Rot_in_plane=1;
ASSIGN: Rotary_axis= 1;
PLANE_XZ:
SET_TOOL_AXIS: Xvector= 0.0; Yvector= 1.0; Zvector= 0.0;
SET_TOOL_ORIENT: Xvector= 1.0; Yvector= 0.0; Zvector= 0.0;
SET_ROTARY_ORIENT: Xvector= 0.0; Yvector= 1.0; Zvector= 0.0;
ASSIGN: Rotary_retract=0;
