Combine all Home and LImit switches

More
12 May 2011 11:22 #9740 by BigJohnT
You will have to as part of your homing defining a home location that moves each axis off the switch before homing the next axis.

John

Please Log in or Create an account to join the conversation.

More
12 May 2011 12:13 #9744 by czerech
it it set like You said. After homing proces, switch is relased.

its look like this:

1. i only enable limit switches on one axis in HAL file (AXIS 0)
2. i got 4 switches connected together in row to one LPT pin

3. Axis 0 is homing perfect (here i have enabled limit switches)
4. When Axis 1 trigger limit switch program is stoped.

if I disable limit switch function in Axis 0, both Axis are homing good.

so i suspect i must include information in INI file, that i have all limit switches and homing switches of both axis connected in row to one LPT pin...

but i dont know how to do this ;/

i have: "HOME_IGNORE_LIMITS = YES" in both axis

regards,
Piotr

Please Log in or Create an account to join the conversation.

More
12 May 2011 12:47 #9748 by BigJohnT
Monitor the input pin in Show Hal Configuration watch window while you home to see if it changes as you expect from on to off.

Also, HOME_IS_SHARED = 1 should be in each axis section.

www.linuxcnc.org/docview/html/config_ini_config.html#sub:[AXIS]-section

John

Please Log in or Create an account to join the conversation.

More
12 May 2011 12:55 #9749 by czerech
thanks John a lot for help :)

i got in both axis HOME_IS_SHARED = 1

i will check when i go home what signal i have i hal when limit shitch trips.

regards,
Piotr

Please Log in or Create an account to join the conversation.

More
12 May 2011 17:51 #9765 by czerech
i checked Hal Configuration, everything is changing in the way i expect it.

when base proces is running, when the first limit switch trips, all 4 pins change status:


net all-home => axis.0.neg-lim-sw-in
net all-home => axis.0.pos-lim-sw-in

net all-home => axis.2.neg-lim-sw-in
net all-home => axis.2.pos-lim-sw-in

maybe i should use some other function to provide limit switch after homing? :(

Please Log in or Create an account to join the conversation.

More
12 May 2011 18:22 #9766 by BigJohnT
And I assume you also have in your ini

net all-home axis.0.home-sw-in
net all-home axis.2.home-sw-in


Which should work...

John

Please Log in or Create an account to join the conversation.

More
12 May 2011 18:27 #9767 by czerech
"
net all-home => axis.0.home-sw-in
net all-home => axis.0.neg-lim-sw-in
net all-home => axis.0.pos-lim-sw-in

net all-home => axis.2.home-sw-in
net all-home => axis.2.neg-lim-sw-in
net all-home => axis.2.pos-lim-sw-in
"

yes i have those 2 lines

Please Log in or Create an account to join the conversation.

More
12 May 2011 18:28 #9768 by BigJohnT
If you have a spare input try putting all the X axis on one pin and all the Z on the other... then you have something like:

net home-x <= paraport.0.pin-10-in
net home-x => axis.0.neg-lim-sw-in
net home-x => axis.0.pos-lim-sw-in
net home-x => axis.0.home-sw-in

John

Please Log in or Create an account to join the conversation.

More
12 May 2011 18:31 #9769 by czerech
i think i must do it that way...

i was just trying to use only one pin instead of two.

Please Log in or Create an account to join the conversation.

More
12 May 2011 19:15 #9770 by czerech
when i used 2 pin, everything works fine :)

thanks John for helping, but if You will figure how to use only one pin, plz give me a sign ;)

regards,
Piotr

Please Log in or Create an account to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum