Hello Guest it is March 28, 2024, 02:17:05 PM

Author Topic: X,W home problems  (Read 8587 times)

0 Members and 1 Guest are viewing this topic.

X,W home problems
« 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.

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: X,W home problems
« Reply #1 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
Re: X,W home problems
« Reply #2 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
Re: X,W home problems
« Reply #3 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.
Re: X,W home problems
« Reply #4 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
Re: X,W home problems
« Reply #5 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

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: X,W home problems
« Reply #6 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
Re: X,W home problems
« Reply #7 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

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: X,W home problems
« Reply #8 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
Re: X,W home problems
« Reply #9 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