Debounce
- OldSQL
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 1
23 Oct 2023 00:25 #283549
by OldSQL
Debounce was created by OldSQL
Hi everyone,I've been working on setting up a plasma cutting machine. I'm using the 7i96s board, inductive sensors, and I have all the connections protected with shielded electric cables. My issue here is in starting the machine; it works perfectly fine except for the Homing sequence. Sometimes it doesn't work, and I have to repeat the sequence multiple times. I've been reading some threads here on the forum, and they mention it could be noisy digital inputs. To fix this, I can use the debounce function. However, I haven't found any examples that could help me create the filter correctly using this function.Can someone here share an example so I can see the syntax and do the same for my machine? With that, I can solve the problem.Thank you!
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19460
- Thank you received: 6529
23 Oct 2023 00:49 #283553
by tommylight
Replied by tommylight on topic Debounce
I never used debounce, i have over 20 machines in use daily that i built or retrofitted.
What is the exact issue, can you make a video?
Do you have home_offset set for each axis/joint? Inductive sensors will not work without it for sure. A value of -3 for metric machines works always, but in some cases might need to be 3, depending on how the homing is set up.
Beware that setting this wrong might crash the machine on hard stops, so keep your hand above the e-stop or F1 when testing.
What is the exact issue, can you make a video?
Do you have home_offset set for each axis/joint? Inductive sensors will not work without it for sure. A value of -3 for metric machines works always, but in some cases might need to be 3, depending on how the homing is set up.
Beware that setting this wrong might crash the machine on hard stops, so keep your hand above the e-stop or F1 when testing.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17940
- Thank you received: 4811
23 Oct 2023 02:10 #283563
by PCW
Replied by PCW on topic Debounce
You can try debounce on the 7I96S easily since hardware debouncing is
built into the isolated inputs, for example:
setp hm2_7i96s.0.inm.00.input-04-slow true
Will debounce input 4 (TB3 pin 5)
Default filter time for "slow" is 25 ms but this can be changed
setp hm2_7i96s.0.inm.00.input-04-slow false
Will restore the "fast" setting for input 4 (default 250 usec)
built into the isolated inputs, for example:
setp hm2_7i96s.0.inm.00.input-04-slow true
Will debounce input 4 (TB3 pin 5)
Default filter time for "slow" is 25 ms but this can be changed
setp hm2_7i96s.0.inm.00.input-04-slow false
Will restore the "fast" setting for input 4 (default 250 usec)
Please Log in or Create an account to join the conversation.
- OldSQL
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 1
25 Oct 2023 14:28 #283806
by OldSQL
Replied by OldSQL on topic Debounce
Thanks guys,
Already made it run and work!!
Already made it run and work!!
Please Log in or Create an account to join the conversation.
- Beef
- Offline
- Junior Member
Less
More
- Posts: 34
- Thank you received: 50
25 Oct 2023 14:32 #283807
by Beef
Replied by Beef on topic Debounce
When you say can be changed - this involves changing the firmware or there's a setting you can set in Hostmot2?
Please Log in or Create an account to join the conversation.
Time to create page: 0.051 seconds