Combined limit and home switches "noise" problems.

More
19 Feb 2013 16:15 - 19 Feb 2013 16:17 #30312 by captain chaos
Hi all
I've got a problem with " noise " on my new gantry config. I have common limit and home switches which I switch between with a DTDP switch which gave no trouble on the old system.

I've read

joint limit error #27783

ArcEye said:-

.hal file snippets

loadrt debounce cfg=2

addf debounce.0 base-thread

setp debounce.0.delay 100

net all-limit-raw <= parport.0.pin-13-in => debounce.0.0.in
net all-limit <= debounce.0.0.out



What I've done is

loadrt debounce cfg=2

addf debounce.0 base-thread

setp debounce.0.delay 100

net all-limit-raw <= parport.0.pin-11-in-out => debounce.0.0.in
net all-limit <= debounce.0.0.out

This sorted the limit problem, I then got a similar homing problem and after studying the Hal Manual, the best I could come up with is this:-

loadrt debounce cfg=2,2

addf debounce.0 base-thread

setp debounce.0.delay 100

net all-limit-raw <= parport.0.pin-11-in-out => debounce.0.0.in
net all-limit <= debounce.0.0.out
net all-home-raw <= parport.0.pin-12-in-out => debounce.0.0.in
net all-home <= debounce.0.0.out

could someone please tell me where I've gone wrong?
Last edit: 19 Feb 2013 16:17 by captain chaos. Reason: replace last limit with home

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

More
19 Feb 2013 18:09 - 19 Feb 2013 18:11 #30314 by ArcEye
Hi

Looks like you have connected the limit and home switches to the same debounce.0 component
and have not connected debounce.1 to a thread

Should be?

addf debounce.1 base-thread
net all-home-raw <= parport.0.pin-12-in-out => debounce.1.0.in
net all-home <= debounce.1.0.out

Also not sure what parport.0.pin-12-in-out means. Typo?

regards
Last edit: 19 Feb 2013 18:11 by ArcEye.

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

More
20 Feb 2013 05:34 #30336 by captain chaos
Hi ArcEye

Thank you very much for that, it works perfectly, about a year ago I didn't even know what Hal was you guys are really good with your help and advice.

Also not sure what parport.0.pin-12-in-out means. Typo?


sorry it should be in-not :-
to invert the signal as the new break out board MB-02V6 is configured active high and and the original Gecko540 was active low
(I think), and I decided to followed their wiring diagram and sort it out in the config rather than totally confuse myself.
I'm not totally sure but it seems to work. Let me know If I've got my thinking all screwed.

Where do I find

.hal file snippets

or is that your own file?

Thanks again cheers

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

More
20 Feb 2013 20:25 #30362 by ArcEye
Glad that sorted it out

Where do I find
.hal file snippets
or is that your own file?


Yes, literally snippets from one of my own configs that uses debounce

regards

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

More
22 Feb 2013 08:44 #30434 by captain chaos
Hi

Another advantage of debounce I have just discovered is that when switching between "Home" and "Limit" with the DTDP switch is that the debounce is long enough to prevent the limit switch from tripping and requiring resetting.

For anyone interested. Cheers

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

More
22 Feb 2013 20:14 #30449 by ArcEye
Unexpected fringe benefits :laugh:

In fact the whole idea of having a switch to change mode of the limit / home switch, greatly simplifies an otherwise often complicated setting up process.

I hate combined home / limit switches and never use them, but I can see that in some small machines there probably is not an option, just because of available space.

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

Time to create page: 0.132 seconds
Powered by Kunena Forum