How to and2 the probe input with a digital input

More
11 Oct 2023 23:05 #282779 by tommylight
This is off the top of my head, so double checking is preferable:
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 or Create an account to join the conversation.

More
02 Nov 2023 11:42 #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

Attachments:

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

More
02 Nov 2023 12:18 #284320 by tommylight
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.
The following user(s) said Thank You: Waldemar

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

More
02 Nov 2023 13:06 - 02 Nov 2023 13:07 #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.
Last edit: 02 Nov 2023 13:07 by smc.collins.
The following user(s) said Thank You: Waldemar

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

More
03 Nov 2023 16:22 #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.
The following user(s) said Thank You: tommylight

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

More
03 Nov 2023 16:25 #284472 by tommylight
Glad you got it working and thank you for reporting back.
The following user(s) said Thank You: Waldemar

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

Time to create page: 0.076 seconds
Powered by Kunena Forum