How to and2 the probe input with a digital input

More
3 years 2 weeks ago #282779 by tommylight
This is off the top of my head, so double checking is preferable:
Code:
loadrt and2 addf and2.0 servo period net input_from_probe and2.0.in1 paraport.0.in-9 net input_from_something_else and2.0.in2 from_wehre_the_signal_comes net output_signal_from_and2 and2.0.out probe-in
The names with _ on the left side can be any name you like to make it easier to follow, the name with _ on the right side must be an existing signal like "probing is active" or something like that.

Please Log in to join the conversation.

More
2 years 11 months ago #284317 by Waldemar

Regarding debounce - is this info still relevant?[url=https://www.forum.linuxcnc.org/24-hal-components/32621-need-help-adding-debounce-to-probe

Please Log in to join the conversation.

More
2 years 11 months ago #284320 by tommylight
Code:
Debug file information: Note: Using POSIX realtime HAL: ERROR: thread 'base-thread' not found ./custom.hal:5: addf failed
From your error report, on line 5 you are trying to add something to base-thread, and base-thread does not exist on Mesa configs as there is no need for it.
Probably changing that add to servo-thread will work, although also probably should be servo-period, not servo-thread.

Please Log in to join the conversation.

More
2 years 11 months ago #284325 by smc.collins
I'll post up my hal component this weekend for tool measuring and probing etc. It has a spindle enabled block function, i also have a bouncy switch probe.

Please Log in to join the conversation.

More
2 years 11 months ago #284471 by Waldemar
Cheers Tommy - servo-thread worked:

loadrt debounce cfg=1
addf debounce.0 servo-thread
setp debounce.0.delay 100
unlinkp motion.probe-input
net probe-in debounce.0.0.in
net probe-filt debounce.0.0.out => motion.probe-input


Just repeating the probing op, so far so good.

Thanks again.

Wal.

Please Log in to join the conversation.

More
2 years 11 months ago #284472 by tommylight
Glad you got it working and thank you for reporting back.

Please Log in to join the conversation.

Time to create page: 0.048 seconds
Powered by Kunena Forum