I did a tool change script in Mach 3
The tread is here:
http://www.cambam.co.uk/forum/index.php?topic=2044.0Script:
A poster on the CNCZone helped me refine the script for the M6start file.
This will get the Tool Change Postions in the Mach3 settings and move to
that position for the tool change then move back.
I have not fully tested it but it seems to work great.
SetVar(1, GetOEMDRO(800))
SetVar(2, GetOEMDRO(801))
SetVar(3, GetOEMDRO(802))
TCX=GetOEMDRO(1200)
TCY=GetOEMDRO(1201)
TCZ=GetOEMDRO(1202)
Code "G53 G0 Z " & TCZ
While IsMoving
Wend
Code "G53 G0 X" & TCX & "Y" & TCY
While IsMoving
Wend
Code "M99999"
While IsMoving
Wend
Code "G0 X" & GetVar(1) & " Y" & GetVar(2) ' Move to Previous XY Position prior to M6 being called