- Configuring LinuxCNC
- Basic Configuration
- X and Z homeswitches shared, Ya and Yb using own switches, is this possible?
X and Z homeswitches shared, Ya and Yb using own switches, is this possible?
- Todd Zuercher
-
- Away
- Platinum Member
-
Less
More
- Posts: 5000
- Thank you received: 1409
15 Feb 2018 16:07 - 15 Feb 2018 16:08 #105982
by Todd Zuercher
Replied by Todd Zuercher on topic X and Z homeswitches shared, Ya and Yb using own switches, is this possible?
That is simple enough. One output pin can only be connected to one signal name, but that signal name can be connected to as many inputs as you like. So I would suggest renaming your "home-x" signal to "probe-home-x" and use that for both the X home and probe connections. like this.
net probe-home-x <= parport.0.pin-12-in-not
net probe-home-x => joint.0.home-sw-in
net probe-enable <= joint.0.homed => tristate-bit.0.enable
net probe-home-x => tristate-bit.0.in
net probe-out <= tristate-bit.0.out => motion.probe-input
Last edit: 15 Feb 2018 16:08 by Todd Zuercher.
The following user(s) said Thank You: nau
Please Log in or Create an account to join the conversation.
15 Feb 2018 20:35 #105989
by rodw
Replied by rodw on topic X and Z homeswitches shared, Ya and Yb using own switches, is this possible?
Try changing thisto
As the error said, you have already created a signal name for your par port pin so you can reuse (eg connect it it as many times as you like. I prefer to put statements like thison two lines to keep this clear
net probe-in <= parport.0.pin-12-in => tristate-bit.0.in
net home-x => tristate-bit.0.in
As the error said, you have already created a signal name for your par port pin so you can reuse (eg connect it it as many times as you like. I prefer to put statements like this
net probe-out <= tristate-bit.0.out => motion.probe-input
net probe-out <= tristate-bit.0.out
net probe-out => motion.probe-input
Please Log in or Create an account to join the conversation.
16 Feb 2018 10:05 #106009
by ikkuh
Replied by ikkuh on topic X and Z homeswitches shared, Ya and Yb using own switches, is this possible?
Todd and Rodw, I will try these as soon as I am with the machine again late this afternoon.
Thank you very much for your tips!
I read up late last night on the new hal documentation, loads of possibilities !
Thank you very much for your tips!
I read up late last night on the new hal documentation, loads of possibilities !
Please Log in or Create an account to join the conversation.
16 Feb 2018 10:34 #106011
by rodw
Replied by rodw on topic X and Z homeswitches shared, Ya and Yb using own switches, is this possible?
Keep at it. One day HAL will just click and you will understand how to solve problems with it.
But the greatest feature in Linuxcnc is the ability to write your own custom HAL components. Of course it is better for ongoing support if you can use the included ones but I still have some code in my config that Todd wrote for my warning lights that I don't really understand. If I was implementing it today, I'd probably just write a component.![:) :)](/media/kunena/emoticons/smile.png)
But Todd, you really are a HAL wizard
But the greatest feature in Linuxcnc is the ability to write your own custom HAL components. Of course it is better for ongoing support if you can use the included ones but I still have some code in my config that Todd wrote for my warning lights that I don't really understand. If I was implementing it today, I'd probably just write a component.
![:) :)](/media/kunena/emoticons/smile.png)
But Todd, you really are a HAL wizard
![:) :)](/media/kunena/emoticons/smile.png)
The following user(s) said Thank You: ikkuh
Please Log in or Create an account to join the conversation.
16 Feb 2018 12:36 #106012
by ikkuh
Replied by ikkuh on topic X and Z homeswitches shared, Ya and Yb using own switches, is this possible?
It works!
I went to my shop early to implement your tips. I changed the switch name and everything came alive.
I now have a self squaring gantry and I can use the probe while technically speaking I do not have enough inputs on my cheap Chinese BOB.
Thanks very much to you both Todd and Rodw. Very nice to see that people like you two are willing to help the 'virgins', keep up the good work!
I will put some comments in my .hal and .ini files and attach them to this forum thread so other novices can use the accumulated wisdom of the group.
And I am already thinking of 'reusing' all the homing switches inputs to add some real switches to control gmoccapy pins![:) :)](/media/kunena/emoticons/smile.png)
once again thank you very much!
I went to my shop early to implement your tips. I changed the switch name and everything came alive.
I now have a self squaring gantry and I can use the probe while technically speaking I do not have enough inputs on my cheap Chinese BOB.
Thanks very much to you both Todd and Rodw. Very nice to see that people like you two are willing to help the 'virgins', keep up the good work!
I will put some comments in my .hal and .ini files and attach them to this forum thread so other novices can use the accumulated wisdom of the group.
And I am already thinking of 'reusing' all the homing switches inputs to add some real switches to control gmoccapy pins
![:) :)](/media/kunena/emoticons/smile.png)
once again thank you very much!
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Away
- Platinum Member
-
Less
More
- Posts: 5000
- Thank you received: 1409
16 Feb 2018 13:42 #106016
by Todd Zuercher
Replied by Todd Zuercher on topic X and Z homeswitches shared, Ya and Yb using own switches, is this possible?
We were all beginners at some point. Pay it forward.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Basic Configuration
- X and Z homeswitches shared, Ya and Yb using own switches, is this possible?
Time to create page: 0.079 seconds