#
#	MACRO lathesetup
#	
#	returns canned cycles to lathe setup conditions
#	automatically called at a tool change.
#
#
LATHEACTIVE:
MAPWORD: letter=X      map="X" dia
MAPWORD: letter=Y      map="Y" 
MAPWORD: letter=Z      map="Z"
MAPWORD: letter=A      map="C"
STD_BLK: RAPID:          gcode= 0  rapid         std blk= G*X*Z
STD_BLK: LINEAR:         gcode= 1  feed          std blk= G*X*Z*F
STD_BLK: FEED:           gcode= 1  feed          std blk= G*X*Z*F
STD_BLK: CANNED_OFF:     gcode= 80 rapid         std blk= G*X
STD_BLK: DRILL:          gcode= 83 canned        std blk= G*X|Z*F
STD_BLK: COUNTERBORE:    gcode= 83 canned        std blk= G*X|Z*P*F
STD_BLK: PECK_DRILL:     gcode= 83 canned        std blk= G*X|Z*Q*F
STD_BLK: TAP:            gcode= 84 canned        std blk= G*X|Z*F
SELECT_PLANE: select planes: xyplane= none  xzplane= none   yzplane= none   
ASSIGN: RotaryAxisOff
