Combined limit and home switches "noise" problems.
- captain chaos
- Offline
- Senior Member
Less
More
- Posts: 62
- Thank you received: 3
19 Feb 2013 16:15 - 19 Feb 2013 16:17 #30312
by captain chaos
Combined limit and home switches "noise" problems. was created 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
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?
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
ArcEye said:-joint limit error #27783
.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.
19 Feb 2013 18:09 - 19 Feb 2013 18:11 #30314
by ArcEye
Replied by ArcEye on topic Combined limit and home switches "noise" problems.
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
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.
- captain chaos
- Offline
- Senior Member
Less
More
- Posts: 62
- Thank you received: 3
20 Feb 2013 05:34 #30336
by captain chaos
Replied by captain chaos on topic Combined limit and home switches "noise" problems.
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.
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
Thanks again cheers
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
or is that your own file?.hal file snippets
Thanks again cheers
Please Log in or Create an account to join the conversation.
20 Feb 2013 20:25 #30362
by ArcEye
Replied by ArcEye on topic Combined limit and home switches "noise" problems.
Glad that sorted it out
Yes, literally snippets from one of my own configs that uses debounce
regards
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.
- captain chaos
- Offline
- Senior Member
Less
More
- Posts: 62
- Thank you received: 3
22 Feb 2013 08:44 #30434
by captain chaos
Replied by captain chaos on topic Combined limit and home switches "noise" problems.
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
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.
22 Feb 2013 20:14 #30449
by ArcEye
Replied by ArcEye on topic Combined limit and home switches "noise" problems.
Unexpected fringe benefits
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.
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.118 seconds