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

More
8 years 8 months ago #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.
Code:
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

Please Log in to join the conversation.

More
8 years 8 months ago #105989 by rodw
Try changing this
Code:
net probe-in <= parport.0.pin-12-in => tristate-bit.0.in
to
Code:
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
Code:
net probe-out <= tristate-bit.0.out => motion.probe-input
on two lines to keep this clear
Code:
net probe-out <= tristate-bit.0.out net probe-out => motion.probe-input

Please Log in to join the conversation.

More
8 years 8 months ago #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 to join the conversation.

More
8 years 8 months ago #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 :)

Please Log in to join the conversation.

More
8 years 8 months ago #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 to join the conversation.

More
8 years 8 months ago #106016 by Todd Zuercher
We were all beginners at some point. Pay it forward.

Please Log in to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum