- Posts: 25
- Thank you received: 0
using output pin multiple times
- spontarelliam
- Topic Author
- Offline
- Junior Member
-
Less
More
1 year 8 months ago #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.
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.
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.
Code:
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 to join the conversation.
1 year 8 months ago #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:
2. Reuse the signal name assigned to the ...input-08-not.
1. method add 'tool_probe_and.in1' to the line above like this:
Code:
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.
Code:
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
Please Log in to join the conversation.
- spontarelliam
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 0
1 year 8 months ago #321744
by spontarelliam
Replied by spontarelliam on topic using output pin multiple times
You make it seem so simple. Thank you.
Please Log in to join the conversation.
Time to create page: 0.078 seconds
