Two inputs 7i76 to one output

More
18 Jan 2023 08:50 - 18 Jan 2023 08:52 #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
 

File Attachment:

File Name: tokarka_20...1-18.ini
File Size:5 KB

File Attachment:

File Name: tokarka_20...1-18.hal
File Size:12 KB

File Attachment:

File Name: tokarka_20...1-18.ini
File Size:5 KB

File Attachment:

File Name: tokarka_20...1-18.hal
File Size:12 KB
Attachments:
Last edit: 18 Jan 2023 08:52 by Artur_1617.

Please Log in or Create an account to join the conversation.

More
18 Jan 2023 12:23 #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 or Create an account to join the conversation.

More
18 Jan 2023 14:35 #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 or Create an account to join the conversation.

More
23 Jan 2023 17:56 #262753 by andypugh
Needs to be "loadrt or2"

Please Log in or Create an account to join the conversation.

More
25 Jan 2023 07:39 #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 or Create an account to join the conversation.

More
25 Jan 2023 08:48 #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 or Create an account to join the conversation.

More
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.

More
25 Jan 2023 13:36 #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 or Create an account to join the conversation.

More
25 Jan 2023 17:32 - 25 Jan 2023 17:34 #262891 by CNC_ANDI
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.

More
27 Jan 2023 15:00 #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 or Create an account to join the conversation.

Time to create page: 0.336 seconds
Powered by Kunena Forum