# MACRO  tool_change2  ** direct RPM 
# 
#
MACRO: index_pos Repeats= (Power_tool<1);
MACRO: power_index_pos Repeats= (Power_tool>0);
MACRO: establish_home
OUTPUT: M200
OUTPUT: M01
MACRO:  tool_call
OUTPUT:  {Direct_rpm}S{Speedmax}M{39+Range} 
OUTPUT: G00T{Tcode} {Coolant}
ASSIGN: Speed= Speedmax; Ccs= 0;
ASSIGN: Spindle_cw=StringChoice("M203","M3",(Power_tool>0));
OUTPUT:  {Spindle_cw}
