On 4 May 2010 17:31, Neil Baylis <[email protected]> wrote: > 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.
All perfectly standard, I think. This is mine: HOME = 5.0 MIN_LIMIT = 0.0 MAX_LIMIT = 700.0 HOME_OFFSET = 0.000000 HOME_SEARCH_VEL = -25.000000 HOME_LATCH_VEL = 1.562500 HOME_IGNORE_LIMITS = YES HOME_SEQUENCE = 1 > 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 So I think you need: > HOME_SEARCH_VEL = -1.0 > HOME_LATCH_VEL = 0.1 > HOME_USE_INDEX = NO > HOME_IGNORE_LIMITS = YES > HOME_IS_SHARED = NO > HOME_OFFSET = -0.5 > HOME = 0.0 > 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 And again, my HAL section: (I have a debounce on my limit switches for noise immunity and also have positive and negative limits on the same IO pin) net xlimunfilt debounce.0.0.in <= hm2_7i43.0.gpio.017.in_not net both-home-x <= debounce.0.0.out net both-home-x => axis.0.home-sw-in net both-home-x => axis.0.neg-lim-sw-in net both-home-x => axis.0.pos-lim-sw-in -- atp ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
