Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: mannby on December 21, 2005, 07:40:26 AM
-
Hi, with the latest version of Mach3 .37 my toolchange position changed from machine zero to work zero.
I use home switches and the tool change option is set to 'stop spindle and wait for cycle start'.
Then I noticed a new function under home and limit settings for setting tool change position, but if I typed
in a value for X,Y and Z then it was gone the next time I looked even if I restarted the program after the settings.
Another thing is there a release note to read, because it's hard to know whats new after a release update.
Best regards
Roger
-
Sorry about that I didn't know there were any changes made to the tool change... have had my tool change macro overwritten during an install. IF you would like I can give you the tool change macro that I use. And we can change it to do what you would like it to do
Hope that helps
Brian
-
This is the same macro I used in the other thread :) I am going to add in a few things to help you with the tool change Pos...
Hope that Helps :)
Brian
'M6Start.m1s
tool = GetSelectedTool()
x = GetToolChangeStart( 0 )
y = GetToolChangeStart( 1 )
z = GetToolChangeStart( 2 )
a = GetToolChangeStart( 3 )
b = GetToolChangeStart( 4 )
c = GetToolChangeStart( 5 )
Code "G00 G53 Z-.1000" 'Pick the Z Axis up to Machine Cord Z-.1
Code "G00 G53 X0.0 Y0.0" 'Put in Tool change Pos HERE in Machine Cord...
SetCurrentTool( tool )
'M6End.m1s
x = GetToolChangeStart( 0 )
y = GetToolChangeStart( 1 )
z = GetToolChangeStart( 2 )
a = GetToolChangeStart( 3 )
b = GetToolChangeStart( 4 )
c = GetToolChangeStart( 5 )
Code "G00 G53 Z-.1000" 'Pick the Z Axis back up to Machine Cord Z-.1 if it had been moved
Code "G00 X" & x & " Y" & y 'Move the tool back to where the tool change was activated if it has been moved **FIXED***
-
Hi Brian,
I added your macro with help of VB script editor but I get a syntax error on the last line
in M6End.m1s
Code "G00 X"&x&" Y"&y 'Move the tool back to where the tool change was activated if it has been moved
Roger
-
Sorry about that
Code "G00 G53 X" & x & "Y" & y
The old VB scripter did not need the spaces in the lines
I will fix it in the post too
Thank you for setting me straight
-
Thanks Brian,
That did the trick. ;D
Now I can put my tool change position whatever I want.
Roger