and2 out to and2
24 Oct 2014 22:33 - 25 Oct 2014 03:04 #52358
by fgauder
and2 out to and2 was created by fgauder
Gentlemen,
How do I use the output of an and2 as one or the inputs to another and2? I can't get the syntax right; debug tells me that the output is already linked to another signal.
net x-limit-sw-is-out and2.4.in0 <= hm2_5i20.0.gpio.029.in_not
net y-limit-sw-is-out and2.4.in1 <= hm2_5i20.0.gpio.031.in_not
net x-y-limit-sw-out <= and2.4.out
net z-limit-sw-is-out and2.5.in0 <= hm2_5i20.0.gpio.033.in_not
net x-y-limit-sw-are-out and2.5.in1 <= and2.4.out
net all-limits-are-out <= and2.5.out
I need a signal to use when I'm running my Bridgeport mill manually to keep my spindle energized. E--stop and the limit switches are the only signals I want to shut off the spindle. So, when the 3 limit switch inputs to the 5i20 are not made I want an output from the 5i20. If there if another way besides 2 and2's I'd be happy to use it.
Thanks,
Frank
How do I use the output of an and2 as one or the inputs to another and2? I can't get the syntax right; debug tells me that the output is already linked to another signal.
net x-limit-sw-is-out and2.4.in0 <= hm2_5i20.0.gpio.029.in_not
net y-limit-sw-is-out and2.4.in1 <= hm2_5i20.0.gpio.031.in_not
net x-y-limit-sw-out <= and2.4.out
net z-limit-sw-is-out and2.5.in0 <= hm2_5i20.0.gpio.033.in_not
net x-y-limit-sw-are-out and2.5.in1 <= and2.4.out
net all-limits-are-out <= and2.5.out
I need a signal to use when I'm running my Bridgeport mill manually to keep my spindle energized. E--stop and the limit switches are the only signals I want to shut off the spindle. So, when the 3 limit switch inputs to the 5i20 are not made I want an output from the 5i20. If there if another way besides 2 and2's I'd be happy to use it.
Thanks,
Frank
Last edit: 25 Oct 2014 03:04 by fgauder. Reason: Fixed typo
Please Log in or Create an account to join the conversation.
25 Oct 2014 00:52 - 25 Oct 2014 00:53 #52361
by PCW
Replied by PCW on topic and2 out to and2
This may be closer:
net x-limit-sw-is-out and2.4.in0 <= hm2_5i20.0.gpio.029.in_not
net y-limit-sw-is-out and2.4.in1 <= hm2_5i20.0.gpio.031.in_not
net x-y-limit-sw-out <= and2.4.out => and2.5.in0
net z-limit-sw-is-out and2.5.in1 <= hm2_5i20.0.gpio.033.in_not
net all-limits-are-out <= and2.5.out
The LUT5 component can do this with one component (it can do up to 5 input, any logic)
net x-limit-sw-is-out and2.4.in0 <= hm2_5i20.0.gpio.029.in_not
net y-limit-sw-is-out and2.4.in1 <= hm2_5i20.0.gpio.031.in_not
net x-y-limit-sw-out <= and2.4.out => and2.5.in0
net z-limit-sw-is-out and2.5.in1 <= hm2_5i20.0.gpio.033.in_not
net all-limits-are-out <= and2.5.out
The LUT5 component can do this with one component (it can do up to 5 input, any logic)
Last edit: 25 Oct 2014 00:53 by PCW. Reason: remove copy-paste error
The following user(s) said Thank You: fgauder
Please Log in or Create an account to join the conversation.
25 Oct 2014 02:08 - 25 Oct 2014 02:24 #52365
by BigJohnT
Replied by BigJohnT on topic and2 out to and2
It might help to have a basic understanding of how the in and out work with hal.
www.linuxcnc.org/docs/html/hal/basic_hal.html
You have and2.4.out linked to two signals and that is your error. See the above for examples on how to have many readers for one signal
Some info on lut5
www.linuxcnc.org/docs/html/hal/rtcomps.html#sec:lut5
JT
www.linuxcnc.org/docs/html/hal/basic_hal.html
You have and2.4.out linked to two signals and that is your error. See the above for examples on how to have many readers for one signal
Some info on lut5
www.linuxcnc.org/docs/html/hal/rtcomps.html#sec:lut5
JT
Last edit: 25 Oct 2014 02:24 by BigJohnT.
The following user(s) said Thank You: fgauder
Please Log in or Create an account to join the conversation.
25 Oct 2014 03:06 - 25 Oct 2014 03:22 #52366
by fgauder
Replied by fgauder on topic and2 out to and2
Peter,
Thanks, both ways work.
Frank
Thanks, both ways work.
Frank
Last edit: 25 Oct 2014 03:22 by fgauder.
Please Log in or Create an account to join the conversation.
27 Oct 2014 21:40 #52434
by andypugh
Replied by andypugh on topic and2 out to and2
docs.google.com/spreadsheet/ccc?key=0Ahj...fWGtfTEE&usp=sharing
Is a public Google spreadsheet for working out LUT5 values.
Is a public Google spreadsheet for working out LUT5 values.
The following user(s) said Thank You: fgauder
Please Log in or Create an account to join the conversation.
Time to create page: 0.076 seconds