22
« on: August 12, 2011, 09:23:09 PM »
M6Start.m1s contents gets deleted and this code gets put in the folder
SafeZ = Get Safe Z Value
Code "G53 G00 Z" & SafeZ 'Goto the safe Z location
Code "M99999" ' Call Macro M99999
M6End.m1s contents gets deleted
Create a new file labled M99999.m1s and place the following lines
tool = GetSelectedTool() 'Load the tool number
SetCurrentTool( tool ) 'Set the tool
Code "G43 H" & tool 'Set the height
Complete = Question ("Change to tool number" & tool)
Does any of this look wrong? if so what. I would also like to add in an auto spindle shut down for tool change and turn back on ofter tool change, auto coolant stop for tool change and turn back on after tool change, and move table to home position for tool change.