Help in problem "unexpected switch limit"

More
13 Dec 2010 12:44 #6003 by ArcEye
Hi

If it helps, the below are extracts from my lathe .hal file which had problems with a home switch that required debounce.
Works perfectly now, 100 may seem big, but I have a fast base thread and trial and error resulted in that figure.

regards

ArcEye

***********************************************************************************************

loadrt debounce cfg=2

addf debounce.0 base-thread

#If necessary, you can
#to change the amount of debounce; the default is apparently 5, which
#means the switch input to emc has to be stable for 5 servo periods
#before the debounce output changes.

setp debounce.0.delay 100

##############################################
# Needed debounce on X home switch. Has quite
# a long travel and did not give a clean on/off
###############################################

net xhome-raw <= parport.0.pin-13-in-not => debounce.0.0.in
net xhome-filtered debounce.0.0.out => axis.0.home-sw-in

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

More
14 Dec 2010 03:06 #6017 by aike
Thank you for answer.
I'll try debounce, if grounded all elements (computer, power supply etc) not solved the problem.

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

More
17 Dec 2010 15:08 #6097 by aike
Hi!
My servo-tread is 1000000 nS or 1000 mkS or 1 mS, I set debounce delay as 20. It is mean, that all noise less then 20 mS (50Hz) will be ignored.
Yes!
The masseage "jointX limit switch error" disappead.
But the message "jointX following error" appears. So as this error is obtained due encoder feedback, I checked this chain.
Also the broken 3 phase lube motor was found with short connect to ground. I replaced lube motor and the message "follow error" disapperd.
I'm continue the investigation, will report it further.

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

Moderators: piasdom
Time to create page: 0.093 seconds
Powered by Kunena Forum