is there a macro available to get the "tool change location" option in mach3 to function,,,and goto x,y,z bed location when a tool change is requested .
'You will need to edit m6Start.m1s macro (add the following lines there) to do that.
ToolChangeX = GetUserDRO(1200) 'Get user defined tool change location
ToolChangeY = GetUserDRO(1201)
ToolChangeZ = GetUserDRO(1202)
If IsSafeZ() Then 'If SafeZ is defined,
safeZ = GetSafeZ() 'use it for positioning commands
Else
safeZ = 0 'Otherwise, moves are made at MC Z0
End If
Code" G53 G0 Z" & safeZ 'Position spindle for tool change
While IsMoving()
Wend
Code"G53 G0 X" & ToolChangeX & "Y" & ToolChangeY
While IsMoving()
Wend
Code"G53 G0 Z" & ToolChangeZ
While IsMoving()
Wend