Mach Discussion > General Mach Discussion

Tool change

(1/2) > >>

giordano:
Hi. The macro tool change doesn't correctly work. In the old version the function M06 positioned the axle Z to the suitable measure in tool change location. Which is the problem? Mach3 version 1.83.032. Regards Giordano

Brian Barker:
Do you have home switches on you machine? If you have home switches I can give you a tool change macro that will fix the problem.

Thank you
Brian

giordano:
Hi Brian. Yes, I on my machine have 2 home switch for each axle. I have tried to copy the files M6start.m1s and M6End.m1s of the old version in the new version but you don't work. Excuse for my English.  I am Italian.
Giordano.

Brian Barker:
 Here are the macro's that I run:) I have used the same macro for over 2 years so they are very tested...
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
  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

giordano:
I am sorry, but don't work.
Giordano

Navigation

[0] Message Index

[#] Next page

Go to full version