using output pin multiple times

More
14 Feb 2025 15:47 #321557 by spontarelliam
using output pin multiple times was created by spontarelliam
I know this has been discussed ad nauseam on this forum but no matter how many posts I read or years I've used LinuxCNC, I just cannot understand how to accomplish these simple tasks.

I want motion.probe-input to be triggered when hm2_5i25.0.7i84.0.0.input-08-not is True AND motion.digital-out-00 is True.
I also want and MDI command called when hm2_5i25.0.7i84.0.0.input-08-not is True AND pyvcp button is clicked.
net ztouch1   pyvcp.ztouch                      ztouch_clicked_and.in0
net ztouch2  hm2_5i25.0.7i84.0.0.input-08-not  ztouch_clicked_and.in1
net ztouch3  ztouch_clicked_and.out            halui.mdi-command-03

net motion1       motion.digital-out-00                   tool_probe_and.in0
net motion2       hm2_5i25.0.7i84.0.0.input-08-not        tool_probe_and.in1
net motion3       tool-probe.out                          motion.probe-input

When I try to use the hm2_5i25.0.7i84.0.0.input-08-not pin twice, I get an "already in use" error. How can this be accomplished?

Thanks.

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

More
14 Feb 2025 16:10 - 14 Feb 2025 16:11 #321560 by Aciera
Replied by Aciera on topic using output pin multiple times
Two ways to do this:
1. method add 'tool_probe_and.in1' to the line above like this:
net ztouch1 pyvcp.ztouch ztouch_clicked_and.in0
net ztouch2 hm2_5i25.0.7i84.0.0.input-08-not ztouch_clicked_and.in1 tool_probe_and.in1
net ztouch3 ztouch_clicked_and.out halui.mdi-command-03

net motion1 motion.digital-out-00 tool_probe_and.in0

net motion3 tool-probe.out motion.probe-input

2. Reuse the signal name assigned to the ...input-08-not.
net ztouch1 pyvcp.ztouch ztouch_clicked_and.in0
net ztouch2 hm2_5i25.0.7i84.0.0.input-08-not ztouch_clicked_and.in1
net ztouch3 ztouch_clicked_and.out halui.mdi-command-03

net motion1 motion.digital-out-00 tool_probe_and.in0
net ztouch2                       tool_probe_and.in1
net motion3 tool-probe.out motion.probe-input
Last edit: 14 Feb 2025 16:11 by Aciera.

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

More
16 Feb 2025 14:59 #321744 by spontarelliam
Replied by spontarelliam on topic using output pin multiple times
You make it seem so simple. Thank you.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum