Hello Guest it is March 29, 2024, 07:24:38 AM

Author Topic: z home switch for toolchanger  (Read 9073 times)

0 Members and 1 Guest are viewing this topic.

z home switch for toolchanger
« on: May 18, 2011, 02:24:27 PM »
i have a switch on the quill for the tool changer home postion. it is about .100" before the limit switch.  pin 15 on the bob.

i need the quill to run up to this switch for tool change.

what setup do i need? i have the inputs tab enabled for the z home. pin 15
the switch works on the diagnostic page.

is there a g code comand to tell it to rapid to home switch.

i have searched but the ref home and such makes no sense to me. i just want a comand to z switch.

thanks
« Last Edit: May 18, 2011, 02:26:56 PM by turbothis »

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: z home switch for toolchanger
« Reply #1 on: May 18, 2011, 02:46:13 PM »
Is this  an automatic tool changer or are you simply wanting the axis to move up on Z so you can change manually?
Hood
Re: z home switch for toolchanger
« Reply #2 on: May 18, 2011, 02:55:33 PM »
it will have an auto but for now i just want to set mach to start hold or whatever and then i can use the power drawbar.

i assume the changer will have a comand in the macro?
for now if i can just drop in a line of code to achieve this i would be happy!

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: z home switch for toolchanger
« Reply #3 on: May 18, 2011, 03:04:52 PM »
Ok several ways you could do it but likely the easiest would just be to use the switch as the home switch for Z (as you have it set now) and then when you start Mach you press the RefAll button to home the machine. If you dont have home switches on the other axis then Mach will set Machine zero for them where you presently are so really its best to jog the machine fully  negative on X and Y before you RefAll.
As the Z will have the switch then the RefAll will make the Z move to the switch and then back off until the switch closes, that will now be the Z set as machine coords zero.
So in the macro a command to go to Machine zero on Z would be all thats needed so

code "G53G0Z0"

would do that. You would also need to set the toolchange to Auto Toolchanger on the general config page.
Hood
Re: z home switch for toolchanger
« Reply #4 on: May 18, 2011, 03:14:47 PM »
do i hit ref all in machine cord. or no?
either way no z movement but it does zero all 4 axis. ???
Re: z home switch for toolchanger
« Reply #5 on: May 18, 2011, 03:31:51 PM »
some screen shots....









Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: z home switch for toolchanger
« Reply #6 on: May 18, 2011, 03:49:27 PM »
Look on the diagnostics page and see if the Home input is active when not on the switch, if it is then you need to change the active state of it.
Hood
Re: z home switch for toolchanger
« Reply #7 on: May 18, 2011, 04:22:55 PM »
ya, i got it so when the switch is tripped then the yellow light comes on.

so the ref all on the machine cor. sets the switchs once and thenb the machine cord are what the tool changer runs to?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: z home switch for toolchanger
« Reply #8 on: May 18, 2011, 05:32:50 PM »
So is it homing correctly now on Z?
Homing sets the machine coords so Mach knows where it is and if your toolchange macro has the above code then it will rapid to machine zero.

BTW your safe Z above will need to be enabled if you are wishing to use Safe Z.
Hood
Re: z home switch for toolchanger
« Reply #9 on: May 18, 2011, 05:52:33 PM »
the ref button just zero's the axis. it does not drive the z up to the switch.
what would cause that?

thanks a ton for your help on this!

what is the z safe????