Two inputs 7i76 to one output
- Artur_1617
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 4
18 Jan 2023 08:50 - 18 Jan 2023 08:52 #262325
by Artur_1617
Two inputs 7i76 to one output was created 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
But now need add other button to the same abort.halui on input 11 on 7i76
Attachments:
Last edit: 18 Jan 2023 08:52 by Artur_1617.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19203
- Thank you received: 6437
18 Jan 2023 12:23 #262335
by tommylight
Replied by tommylight on topic Two inputs 7i76 to one output
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
linuxcnc.org/docs/html/man/man9/or2.9.html
Please Log in or Create an account to join the conversation.
- Artur_1617
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 4
18 Jan 2023 14:35 #262344
by Artur_1617
Replied by Artur_1617 on topic Two inputs 7i76 to one output
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
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 or Create an account to join the conversation.
23 Jan 2023 17:56 #262753
by andypugh
Replied by andypugh on topic Two inputs 7i76 to one output
Needs to be "loadrt or2"
Please Log in or Create an account to join the conversation.
- Artur_1617
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 4
25 Jan 2023 07:39 #262862
by Artur_1617
Replied by Artur_1617 on topic Two inputs 7i76 to one output
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?
With other loadrt or2 I get error
Is posibble using or2 for two or more different inputs?
Please Log in or Create an account to join the conversation.
25 Jan 2023 08:48 #262864
by billykid
Replied by billykid on topic Two inputs 7i76 to one output
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
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 or Create an account to join the conversation.
25 Jan 2023 09:38 #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 or Create an account to join the conversation.
- Artur_1617
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 4
25 Jan 2023 13:36 #262880
by Artur_1617
Replied by Artur_1617 on topic Two inputs 7i76 to one output
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.
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 or Create an account to join the conversation.
25 Jan 2023 17:32 - 25 Jan 2023 17:34 #262891
by CNC_ANDI
Replied by CNC_ANDI on topic Two inputs 7i76 to one output
have this for my Probe_input
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
Last edit: 25 Jan 2023 17:34 by CNC_ANDI.
Please Log in or Create an account to join the conversation.
- Artur_1617
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 4
27 Jan 2023 15:00 #263009
by Artur_1617
Replied by Artur_1617 on topic Two inputs 7i76 to one output
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
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 or Create an account to join the conversation.
Time to create page: 0.336 seconds