I'm trying to understand how to setup my homing config. I've been reading
everything I can find in the docs, but still can't get this to work.

I have a single axis, X

There's a limit switch at each end. I want these switches to stop the
machine if it ever hits them.

I want to use the negative limit switch as the home switch.

When I press the home button in the GUI (TkEMC), I want the machine to find
that switch and then move away from it by maybe 1/2 inch. I want it to call
that position home, and to set the current position to zero.


Here's the Homing section of my .ini file:

HOME_SEARCH_VEL =       -1.0
HOME_LATCH_VEL =           0.1
HOME_USE_INDEX =          NO
HOME_IGNORE_LIMITS =  NO
HOME_IS_SHARED =           NO
HOME_OFFSET =                 0.0
HOME =                                 0.0

Here's the section of the .hal file where the signals are defined:

newsig Xminlim bit
linksp Xminlim <= ppmc.0.din.02.in-not
linksp Xminlim => axis.0.neg-lim-sw-in
linksp Xminlim => axis.0.home-sw-in

newsig Xmaxlim bit
linksp Xmaxlim <= ppmc.0.din.03.in-not
linksp Xmaxlim => axis.0.pos-lim-sw-in


Here's what happens:

If I set HOME_IGNORE_LIMITS to YES, then the machine drives right past the
limit switch into the hard stop, and eventually hits the FE limit.

If I set HOME_IGNORE_LIMITS to NO, then the machine stops at the limit
switch and complains that it encountered a limit in homing state 5.

I think it's acting as though it doesn't see  axis.0.home-sw-in, although it
does see axis.0.neg-lim-sw-in

On the GUI, the X position goes red if I activate either of the limit
switches, so I think the limit switch plumbing is correct.

Neil
------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to