Machsupport Forum
Third party software and hardware support forums. => Galil => Topic started 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.
-
I think I found something... PM me your email addy and I'll send you a new plugin to try.
Steve
-
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
-
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.
-
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
-
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
-
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
-
Sounds good, just let me know of any updates that you want me to test out.
Thanks
Dave
-
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
-
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
-
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
-
Steve, would you be able to look at this again sometime in the near future?
Thanks
Dave
-
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
-
Thanks.
Just let me know what you want me to test when you are ready.
-
Dave,
PM me your email address. I send you a plugin to try out.
Steve