Machsupport Forum

Third party software and hardware support forums. => Galil => Topic started by: Dave3891 on August 31, 2010, 04:55:23 PM

Title: X,W home problems
Post by: Dave3891 on August 31, 2010, 04:55:23 PM
I am trying to get a large machine that is a rack and pinion drive with encoders & scales on all axis's.
The X and W are slaved together, but when I use the home routine I can't get them to square even with the square settings.

The home and lower limit switch are the same, so I am using the limits as homes.

The problem is that it will home the X side and move off the switch, but then it stays on the limit on the W side and nothing happens.

Is it possible to write my own galil code for the home sequence?
I have the code from the old software, so I want to use the same galil commands to home the machine.

Thanks
Dave.
Title: Re: X,W home problems
Post by: smurph on September 01, 2010, 10:33:21 PM
I think I found something...  PM me your email addy and I'll send you a new plugin to try.

Steve
Title: Re: X,W home problems
Post by: Dave3891 on September 01, 2010, 10:59:00 PM
PM Sent.
I was looking at the old software's source code and it used the find edge galil command.
The procedure would sent the speed low, unlock the X and W, use find edge to stop on the limit switches (squaring the gantry) and then move off the switches even slower with find edge again, and relock the X and W.

I was thinking of writing a program into the galil card then calling it with a plugin message with a VB button if nothing else worked.

Dave
Title: Re: X,W home problems
Post by: Dave3891 on September 02, 2010, 11:01:26 AM
Well still no luck with the new plugin.
It does the X fine, but gets stuck with the W and then I can't move off because it is still on the limit switch of the W axis.

I am posting the debug file.
Title: Re: X,W home problems
Post by: Dave3891 on September 02, 2010, 11:06:44 AM
I should list my settings too.
I have gantry squaring checked in the plugin
X and W slaved with mach
Home slave with master axis Unchecked in general config
and I am just using a DoOEMCode(1022) for the home button
Title: Re: X,W home problems
Post by: Dave3891 on September 02, 2010, 11:40:24 AM
Here is the basic Galil code for the old home XW routine:

CN -1,-1
GR ,,,0
GM ,,,0
MO xw
DP 0,,,0
DE 0,,,0
SH xw
SP 10000,,,10000
DC 500000,,,500000
FE XW   
BG XW
AM XW
SP 500,,,500
FE xw
BG xw
AM XW 
IP 849,,,849
AM XW
DP 0,,,0
DE 0,,,0
GA ,,,X
GR ,,,1
GM ,,,1
Title: Re: X,W home problems
Post by: smurph on September 04, 2010, 04:21:36 PM
Unfortunately, we can't use the FE command.  It looks at the home inputs only and people may want to use limit switches as home switches.  But I'm working on a fix for this that will work in every case.

Steve
Title: Re: X,W home problems
Post by: Dave3891 on September 04, 2010, 05:28:06 PM
Sounds good, just let me know of any updates that you want me to test out.

Thanks
Dave
Title: Re: X,W home problems
Post by: smurph on September 04, 2010, 08:54:56 PM
Looking at your debug file, I see 22 Begin not possible due to limit switch." when trying to home your W axis.  So homing the X is bringing your W into the limit switch and it is not moving off the switch.  Is it possible you have your home and limit mixed up for the W axis?

Steve
Title: Re: X,W home problems
Post by: Dave3891 on September 04, 2010, 09:31:49 PM
The home and lower limit are wired together to use the same switch.
It was build like that so I left it as is.

All the axis's have a jumper wire for the home and lower limit
Title: Re: X,W home problems
Post by: Dave3891 on September 27, 2010, 03:14:27 PM
Were you able to find out anything else?

I haven't worked on the machine in a few weeks but I think I am going to start up again.


Thanks
Dave
Title: Re: X,W home problems
Post by: Dave3891 on November 16, 2010, 12:16:13 AM
Steve, would you be able to look at this again sometime in the near future?

Thanks
Dave
Title: Re: X,W home problems
Post by: smurph on November 16, 2010, 11:33:50 AM
Yes, I can.  I'm trying to make the plugin use the new Galil Tools drivers at the moment.  So I need to finish that first because the code is all torn up.  Hopefully I should be done with that by the weekend.

Steve
Title: Re: X,W home problems
Post by: Dave3891 on November 16, 2010, 12:16:49 PM
Thanks.
Just let me know what you want me to test when you are ready.
Title: Re: X,W home problems
Post by: smurph on December 20, 2010, 06:13:12 PM
Dave,

PM me your email address.  I send you a plugin to try out.

Steve