X and Z homeswitches shared, Ya and Yb using own switches, is this possible?

More
15 Feb 2018 16:07 - 15 Feb 2018 16:08 #105982 by Todd Zuercher
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.

More
15 Feb 2018 20:35 #105989 by rodw
Try changing this
net  probe-in <=  parport.0.pin-12-in => tristate-bit.0.in
to
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
on two lines to keep this clear
net probe-out  <= tristate-bit.0.out
net probe-out  => motion.probe-input
The following user(s) said Thank You: ikkuh, nau

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

More
16 Feb 2018 10:05 #106009 by ikkuh
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 !

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

More
16 Feb 2018 10:34 #106011 by rodw
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. :)

But Todd, you really are a HAL wizard :)
The following user(s) said Thank You: ikkuh

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

More
16 Feb 2018 12:36 #106012 by ikkuh
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 :)

once again thank you very much!

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

More
16 Feb 2018 13:42 #106016 by Todd Zuercher
We were all beginners at some point. Pay it forward.
The following user(s) said Thank You: rodw, ikkuh

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

Time to create page: 0.093 seconds
Powered by Kunena Forum