Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 10:04:40 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  z home switch for toolchanger
Pages: 1 2 3 »   Go Down
Print
Author Topic: z home switch for toolchanger  (Read 649 times)
0 Members and 1 Guest are viewing this topic.
turbothis
Active Member

Offline Offline

Posts: 112


View Profile
« on: May 18, 2011, 01: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, 01:26:56 PM by turbothis » Logged
Hood
Active Member

Offline Offline

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #1 on: May 18, 2011, 01: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
Logged
turbothis
Active Member

Offline Offline

Posts: 112


View Profile
« Reply #2 on: May 18, 2011, 01: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!
Logged
Hood
Active Member

Offline Offline

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #3 on: May 18, 2011, 02: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
Logged
turbothis
Active Member

Offline Offline

Posts: 112


View Profile
« Reply #4 on: May 18, 2011, 02: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. Huh
Logged
turbothis
Active Member

Offline Offline

Posts: 112


View Profile
« Reply #5 on: May 18, 2011, 02:31:51 PM »

some screen shots....









Logged
Hood
Active Member

Offline Offline

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #6 on: May 18, 2011, 02: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
Logged
turbothis
Active Member

Offline Offline

Posts: 112


View Profile
« Reply #7 on: May 18, 2011, 03: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?
Logged
Hood
Active Member

Offline Offline

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #8 on: May 18, 2011, 04: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
Logged
turbothis
Active Member

Offline Offline

Posts: 112


View Profile
« Reply #9 on: May 18, 2011, 04: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?Huh
Logged
Pages: 1 2 3 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!