1. #1
    I've set up my mill using stepconf to have "Minimum X + home" or such--in other words to have both limit and home on the same NC switch. But whenever I "home axis", it will travel until the switch triggers and then shut down the mill because a limit switch was tripped. I've even tried the "latch" setting to both "same" and "opposite" but to no avail. What obvious thing am I missing?

  2. #2
    NB70's Avatar
    Lives in Swansea, United Kingdom. Last Activity: 2 Hours Ago Has been a member for 7-8 years. Has a total post count of 40. Received thanks 3 times, giving thanks to others 2 times.
    I use the same home/limit switch configuration as you. You need to set

    in your config file. This will ignore the limit switch and allow you to finish the homing sequence

    Link: EMC homing

  3. #3
    Hmm... same thing; hits limit switch and then EMC2 stops with joint limit switch error.

    Here's my axis_0 section:

    HOME = 0.0
    MAX_VELOCITY = 0.95
    SCALE = 40000.0
    FERROR = 0.05
    MIN_FERROR = 0.01
    MIN_LIMIT = -2.0
    MAX_LIMIT = 3.0
    HOME_OFFSET = -0.250000
    HOME_SEARCH_VEL = 0.050000
    HOME_LATCH_VEL = -0.012500
    What's obviously wrong there? Table limits are wonky but I wasn't clear what to set them to, and not sure this affected it.

  4. #4
    NB70's Avatar
    Lives in Swansea, United Kingdom. Last Activity: 2 Hours Ago Has been a member for 7-8 years. Has a total post count of 40. Received thanks 3 times, giving thanks to others 2 times.
    Hi there,
    I think it might be something to do with your MAX_LIMIT and MIN_LIMIT setting, and the directions of your HOME_SEARCH_VEL. MAX_LIMIT and MIN_LIMIT are the software limits (some people use only the software limits and no physical switches), if you try command a move that goes outside these limits the machine should stop.
    When you are confident everything is working you can set MAX_LIMIT closer to the actual limit of your machine (but always less than where your physical maximum limit switch is).

    You have HOME = 0.0, but your home search velocity is positive, so your machine moves to the positive limit switch ( at position 3.0) during homing your machine. So the first thing I would try is to change the signs of HOME_SEARCH_VEL and HOME_LATCH_VEL if you want to home at 0.0.

    This is the section from my config file (units are MM) - the limits of the table are 0 and 794mm. My physical limit switch is set further out than 794mm - so I can machine out to 794 without tripping it. It homes at 0.0 - so home search velocity is negative. Home latch velocity is positive to move it forward off the limit/homing switch.

    HOME = 0.0
    MAX_VELOCITY = 20.0
    SCALE = -640.0
    FERROR = 1
    MIN_FERROR = .25
    MIN_LIMIT = -0.001
    MAX_LIMIT = 794.0
    HOME_OFFSET = 0.000000
    HOME_SEARCH_VEL = -20.000000
    HOME_LATCH_VEL = 0.781250
    Last edited by NB70; 15-03-2011 at 08:11 AM.

  5. #5
    I found this in the LunuxCNC "Getting started Manual"

    • Home Switch Location - The location at which the home switch trips or releases reletive to the machine origin. This item
    and the two below only appear when Home Switches were chosen in the Parallel Port Pinout. If you combine home and limit
    switches the home switch location can not be the same as the home position or you will get a joint limit error.

    Hope it help

Similar Threads

  1. Wiring home and limit switches
    By Lee Roberts in forum Resources & Help
    Replies: 23
    Last Post: 08-12-2013, 08:11 PM
  2. 24v Limit/Home switches. How to..?
    By Wal in forum Resources & Help
    Replies: 6
    Last Post: 17-11-2013, 04:52 PM
  3. Limit Switches
    By Leadhead in forum General Electronics
    Replies: 1
    Last Post: 16-10-2013, 09:41 AM
  4. Limit/home switches - how are you mounting 'em?
    By HankMcSpank in forum General Discussion
    Replies: 2
    Last Post: 13-11-2011, 12:42 PM
  5. The best solution for limit / home switches on a mill is .....what ?
    By NICKMODELMAKER in forum Gantry/Router Machines & Building
    Replies: 1
    Last Post: 29-05-2010, 12:38 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts