#
#  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=I      map="K"
MAPWORD: letter=J      map="I"
MAPWORD: letter=K      map="J"
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= N*G*X*Y*Z
STD_BLK: POSITION_XY:          gcode= 0  rapid         std blk= N*G*X*Y
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: CIRCLE_CW:      gcode= 2  feed          std blk= N*G*X*Z*I*K*F
STD_BLK: CIRCLE_CCW:     gcode= 3  feed          std blk= N*G*X*Z*I*K*F
STD_BLK: DCOMP_ON:       gcode= 1  feed          std blk= N*G*g*X*Z*F
STD_BLK: DCOMP_OFF:      gcode= 1  feed          std blk= N*G*g*X*Z
STD_BLK: CANNED_OFF:     gcode= 80 rapid         std blk= N*G*Y
STD_BLK: DRILL:          gcode= 81 canned        std blk= N*G*X*Z|R|Y*F
STD_BLK: COUNTERBORE:    gcode= 82 canned        std blk= N*G*X*Z|R|Y*P*F
STD_BLK: PECK_DRILL:     gcode= 83 canned        std blk= N*G*X*Z|R|Y*Q*F
STD_BLK: TAP:            gcode= 84 canned        std blk= N*G*X*Z|R|Y*F
STD_BLK: BORE(G85):      gcode= 85 canned        std blk= N*G*X*Z|R|Y*F
STD_BLK: BORE(G86):      gcode= 86 canned        std blk= N*G*X*Z|R|Y*F
STD_BLK: BORE(G87):      gcode= 87 canned        std blk= N*G*X*Z|R|Y*F
STD_BLK: BORE(G88):      gcode= 88 canned        std blk= N*G*X*Z|R|Y*P*F
STD_BLK: BORE(G89):      gcode= 89 canned        std blk= N*G*X*Z|R|Y*P*F
SELECT_PLANE: select planes: xyplane= G18 xzplane= G19 yzplane= G17 
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;
