Two outputs from multiple inputs
- B.Reilly01
- Offline
- Elite Member
-
Less
More
- Posts: 172
- Thank you received: 24
04 Jun 2024 20:47 #302342
by B.Reilly01
Two outputs from multiple inputs was created by B.Reilly01
I'm working on getting my ATC to index, and the way the original was wired was output 13 rotated the carousel counterclockwise. Output 13 AND 14 at the same time rotated it clockwise. On top of that, I have a physical button to rotate it as well. What I'm looking to do is use an OR2 with or2.1.in0 as the button, and or2.1.in1 as the logic input with or2.1.out to rotate the carousel (preferrably clockwise, so setting both output 13 and 14 true). Then I need another input that can set just output 13 true so that the carousel can rotate CCW as well. My problem is that only 1 signal can be assigned to an output pin, so if I set or2.1.out to outputs 13 and 14, I cannot set car-ccw to output 13.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18460
- Thank you received: 5042
04 Jun 2024 22:46 #302345
by PCW
Replied by PCW on topic Two outputs from multiple inputs
Another or gate or so can do this...
The following user(s) said Thank You: B.Reilly01
Please Log in or Create an account to join the conversation.
- B.Reilly01
- Offline
- Elite Member
-
Less
More
- Posts: 172
- Thank you received: 24
04 Jun 2024 23:37 #302346
by B.Reilly01
Replied by B.Reilly01 on topic Two outputs from multiple inputs
Thank you, couldn't see the simple solution in front of me. Solved it as follows:
net car-ccw motion.digital-out-05 or2.2.in0
net car-cw motion.digital-out-04 or2.1.in0
net tool-index-btn or2.1.in1 [HMOT](CARD0).7i76.0.3.input-05
net CarIndex or2.1.out or2.2.in1 [HMOT](CARD0).7i76.0.3.output-13
net CarIndexRev or2.2.out [HMOT](CARD0).7i76.0.3.output-14
net car-ccw motion.digital-out-05 or2.2.in0
net car-cw motion.digital-out-04 or2.1.in0
net tool-index-btn or2.1.in1 [HMOT](CARD0).7i76.0.3.input-05
net CarIndex or2.1.out or2.2.in1 [HMOT](CARD0).7i76.0.3.output-13
net CarIndexRev or2.2.out [HMOT](CARD0).7i76.0.3.output-14
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.047 seconds