Multiple Probes: Touch-off Probe and Edge probe

More
1 year 7 months ago #322991 by aikiaviator
Hi all,

So my config has a tool touch-off and a separate probe.

I have figured out that they both use the Probe-input to work, however, they are both in and both NO. Now I have tried to configure to have them both by setting Probe Input, to both but the load tells me that basically I cannot have two inputs for the probe input. So now I have validated that if I comment out each of the tools separately when connected, they work very well, but looking to have it so that the tools work if both and/or if probe is attached or not. I have attached the ini and Hal files here and input would be appreciated. I noted another thread talking about this and it mentioned using MUX. I tried the adjustments, but to no luck. Can anyone give me the solution to running dual probe-inputs in the ini and io.hal files would be great.

Attachment not found


Attachment not found


Attachment not found

Please Log in to join the conversation.

More
1 year 7 months ago #322996 by Aciera
Sounds like you need an 'or2' component, if the probe is NO (ie signal is High when probe is tripped) I would use the non-inverted input:
Code:
net probe-1 <= hm2_7i96s.0.inm.00.input-00 => or2.in0 net probe-2 <= hm2_7i96s.0.inm.00.input-02 => or2.in1 net probe-input <= or2.out => motion.probe-input

Don't forget 'loadrt' and 'addf' for the or2 component and to adjust the 'or2' to whatever name or number you are loading the component as.

Please Log in to join the conversation.

More
1 year 7 months ago #323011 by aikiaviator
Hi Aciera,

Not sure what you mean, however, here is my ini, main.hal and io.hal. Could you advise what this would require and in what file as to the loadrt and addf as well as I am not familiar with the coding. Thanks in advance.

Attachment not found


Attachment not found


Attachment not found

Please Log in to join the conversation.

More
1 year 7 months ago #323014 by Aciera
in io.hal replace this:
Code:
#net digital-0-input motion.digital-in-00 <= hm2_7i96s.0.inm.00.input-00-not net probe-input motion.probe-input <= hm2_7i96s.0.inm.00.input-00-not #net probe-input motion.probe-input <= hm2_7i96s.0.inm.00.input-02-not

with this:
Code:
loadrt or2 count=1 addf or2.0 servo-thread net probe-1 <= hm2_7i96s.0.inm.00.input-00 => or2.0.in0 net probe-2 <= hm2_7i96s.0.inm.00.input-02 => or2.0.in1 net probe-input <= or2.0.out => motion.probe-input

Might also be worth having a look at the docs:
www.linuxcnc.org/docs/html/hal/basic-hal.html

Please Log in to join the conversation.

More
10 months 1 week ago #340449 by Tinker
I am having the same issue, I tried to modify my io.hal file as suggested but i am getting an on/off dance in hal show with no indication of probe trip. I have attached my original hal file as well as the actual one I modified. 

Please Log in to join the conversation.

More
9 months 4 weeks ago #340783 by Lcvette
did you also add the addf and loadrt lines?

Please Log in to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum