Using halscope, determine whether the problem could be contact bounce. Display the home switch signal, trigger on rising or falling edge, and then activate the switch (either by poking it manually or by running the homing procedure)
If it is contact bounce, then consider using hal's debounce component as a fix. Here are some hal fragments related to debouncing a home switch: loadrt debounce cfg=3 ... addf parport.read-all addf debounce.0 servo-thread ... net xhome-raw <= parport.0.pin-15-in => debounce.0.0.in net xhome-filtered debounce.0.1.out => axis.0.home-sw-in If necessary, you can setp debounce.0.delay NNN 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. Jeff ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users