Problem with Gantry Homing

More
8 years 1 week ago #119276 by sevaz
Hello everyone! I have a problem with gantry machine homing procedure. Two motors on one axis doesn't do the last synchronized final move in the same time. That means, when the first one touches the limit switch, it starts backing off, without waiting for the second one.

If i'm not mistaken, it should work like in this video:


This is the tutorial i used to set up my gantry machine:

forum.linuxcnc.org/49-basic-configuratio...-linuxcnc-2-8-master

Here are my configuration files:


Where did i go wrong? Maybe i misunderstood something?

Please Log in to join the conversation.

More
8 years 1 week ago #119301 by andypugh
Replied by andypugh on topic Problem with Gantry Homing
The video looks right, so I assume that isn't your video?

You are apparently using the latest master / 2.8 so that's not the problem, and joints 1 and 2 both have home-sequence -2 so that seems OK.

I think that a HOME = 0 and a HOME_OFFSET = 0 is a possible problem, I think that the machine will park on the limit switches after homing.

Can you describe exactly the behaviour you see? Is the machine assembled? Are the limit switches definitely not crossed-over?

Please Log in to join the conversation.

More
8 years 1 week ago #119321 by rodw
Replied by rodw on topic Problem with Gantry Homing
linuxcnc.org/docs/devel/html/config/ini-homing.html

The initial HOME_SEQUENCE number may be 0, 1 (or -1). The absolute value of sequence numbers must increment by one — skipping sequence numbers is not supported. If a sequence number is omitted, "Home All" homing will stop upon conmpletion of the last valid sequence number.

I think -2 is not valid.
If that does not fix it, I would also check your limit and home switch wiring is correct. When I've had issues like that it is because I've had something incorrect.
Also using very slow homing velocities helps isolate problems as you have time to see things happen.

Please Log in to join the conversation.

More
8 years 1 week ago #119322 by sevaz
Replied by sevaz on topic Problem with Gantry Homing
Thank you for your replies, but it seems the problem is gone by itself. I just misunderstood the way homing process functions.A joint goes to the limit switch, then back until it opens again, waits for the other motor does the same and only then they both make the final move. I only realized it when i made a proper test installation with actually working two stepmotors (before i used hal scope and dro). So yes, now it's working as it meant to be, nevertheless the documentation for homing sequences isn't too friendly for beginners :)

Please Log in to join the conversation.

More
8 years 1 week ago #119323 by andypugh
Replied by andypugh on topic Problem with Gantry Homing

rodw wrote: I think -2 is not valid.


-2 is fine as long as there is also a -1 or a 1.
I think it used to be the case that the homing sequence had to start at zero, but when negative numbers were introduced to hint that motors were in multiples it became difficult to configure the first in the sequence to home together. ( -0)

-0 does actually have a unique floating-point representation, but doesn't work as an integer.

Please Log in to join the conversation.

More
8 years 6 days ago #119331 by dgarrett
Replied by dgarrett on topic Problem with Gantry Homing
linuxcnc.org/docs/master/html/config/ini....html#_home_sequence

The initial HOME_SEQUENCE number may be 0,
1 (or -1). The absolute value of sequence numbers
must increment by one — skipping sequence numbers
is not supported. If a sequence number is omitted,
"Home All" homing will stop upon conmpletion of
the last valid sequence number.

Please Log in to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum