combined x/y axis home switch

More
05 Dec 2014 05:34 #53697 by cableman
Hello,
i have a machine with home switches for the x and y axes that share input pin 15. the switches are located at xmin and ymax.
The z axis has its own home switch located at z max.

i found settings witch shared pins for all axes but not for just two of them.

i tried :
net max-home-y <= parport.0.pin-15-in
net min-home-x <= parport.0.pin-15-in

but got an error that the pin15 is already connected

how do i configure the hal file for shared pins for x and y axis?

many thanks,
Joa

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

More
05 Dec 2014 20:27 - 05 Dec 2014 20:32 #53715 by BigJohnT
One way to connect the same input to two things is with the or component.

linuxcnc.org/docs/html/man/man9/or2.9.html

Are the signal names max-home-y and min-home-x connected to the home inputs for the respective axes?

Attach your ini and hal file.

Also read the basic hal tutorial to get an idea how hal works.

linuxcnc.org/docs/html/hal/basic_hal.html

JT
Last edit: 05 Dec 2014 20:32 by BigJohnT.
The following user(s) said Thank You: cableman

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

More
06 Dec 2014 17:24 #53759 by cableman
ok many thanks,
i understand the or function is useful for the case when i want to use two input-pins to trigger the same event. i need one input-pin used for two signals...
but i am sure i got that wrong.... ;)

i managed to get x and z axis referencing in the right way but not the y axis.


my ini and hal files are attached

many thanks,
joa
Attachments:

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

More
07 Dec 2014 06:07 - 14 Feb 2018 14:15 #53775 by Todd Zuercher
There is no need to use more than one signal for this. One signal can be connected to the multiple inputs as needed.

net limit-home-x-y <= parport.0.pin-15-in

net limit-home-x-y => axis.0.home-sw-in
net limit-home-x-y => axis.0.neg-lim-sw-in

net limit-home-x-y => axis.1.home-sw-in
net limit-home-x-y => axis.1.pos-lim-sw-in
Last edit: 14 Feb 2018 14:15 by Todd Zuercher.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum