Two inputs 7i76 to one output

More
3 years 9 months ago #262325 by Artur_1617
I added to my hall abort.halui and conected them to stop button and input 05 on 7i76 and this working
But now need add other button to the same abort.halui on input 11 on 7i76
 

Attachment not found

Attachment not found

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
3 years 9 months ago #262335 by tommylight
Using OR logic component included with LinuxCNC should do that, adding it in the hal file.
linuxcnc.org/docs/html/man/man9/or2.9.html

Please Log in to join the conversation.

More
3 years 9 months ago #262344 by Artur_1617
This will work?

loadrt stop count=2

net przycisk-stop or2.0.in0 <= hm2_7i92.0.7i76.0.0.input-05

net konik-stop or2.0.in1 <= hm2_7i92.0.7i76.0.0.input-11-not

net stop <= or2.0.out

Please Log in to join the conversation.

More
3 years 9 months ago #262753 by andypugh
Needs to be "loadrt or2"

Please Log in to join the conversation.

More
3 years 9 months ago #262862 by Artur_1617
For now I have ready e-stop latch 3 inputs and in hal exist loadrt or2 count=1
With other loadrt or2 I get error
Is posibble using or2 for two or more different inputs?

Please Log in to join the conversation.

More
3 years 9 months ago #262864 by billykid
you have to put loadrt and addf to load it correctly.

loadrt or2 count=1
addf or2.0 servo-thread

net przycisk-stop or2.0.in0 <= hm2_7i92.0.7i76.0.0.input-05

net konik-stop or2.0.in1 <= hm2_7i92.0.7i76.0.0.input-11-not

net stop <= or2.0.out

Please Log in to join the conversation.

More
3 years 9 months ago #262867 by rodw
Replied by rodw on topic Two inputs 7i76 to one output
If you are using estop-latch, and you just want to respond to an estop, you dont need and2 as estop latch does it all by building an estop chain.

Please Log in to join the conversation.

More
3 years 9 months ago #262880 by Artur_1617
I think anybady watch the hal file..
For now in the hal I have ready and working;
-estop chain
-pause/resume button and this use or2
When write in hal
net przycisk-stop or2.0.in0 <= hm2_7i92.0.7i76.0.0.input-05
net konik-stop or2.0.in1 <= hm2_7i92.0.7i76.0.0.input-11-not
net stop <= or2.0.out
Get error or2.0.in0 Exist
Try to change in0 and in1 to in2 and in3 but dont luckly.

Please Log in to join the conversation.

More
3 years 9 months ago #262891 by CNC_ANDI
have this for my Probe_input

Code:
loadrt or2 names=or2.0,or2.1,or2.2 addf or2.0 servo-thread addf or2.1 servo-thread # --- WZLS --- net probe-input-WZLS or2.0.in0 <= hm2_7i76e.0.7i76.0.0.input-13-not net probe-or0 or2.0.in1 <= or2.1.out # --- Z-TASTER --- net probe-input-3D_TASTER or2.1.in0 <= hm2_7i76e.0.7i76.0.0.input-14-not net probe-or1 or2.1.in1 <= hm2_7i76e.0.7i76.0.0.input-15-not net probe-in <= or2.0.out

Please Log in to join the conversation.

More
3 years 9 months ago #263009 by Artur_1617
For the next one looking how to make or2 working.
Yes is possible make many or2
my setting now is;

loadrt or2  names=or.2.1,or2.2,or2.3       Must delete count=1  becouse linuxcnc start with error
addf or2.0 servo-thread
net przycisk-stop or2.3.in0 <= hm2_7i92.0.7i76.0.0.input-05-not  
net konik-stop or2.3.in1 <= hm2_7i92.0.7i76.0.0.input-11-not
net stop <= or2.3.out

Other problem was the input 05 is NC and connected to halui.abort without -not working ok.
But with or2 I must to change it and add -not

Please Log in to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum