. .
  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: 22-05-2023 Has been a member for 9-10 years. Has a total post count of 61. Received thanks 10 times, giving thanks to others 9 times.
    I use the same home/limit switch configuration as you. You need to set
    HOME_IGNORE_LIMITS = YES

    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:

    Code:
    [AXIS_0]
    TYPE = LINEAR
    HOME = 0.0
    MAX_VELOCITY = 0.95
    MAX_ACCELERATION = 30.0
    STEPGEN_MAXACCEL = 37.5
    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
    HOME_IGNORE_LIMITS = YES
    HOME_SEQUENCE = 1
    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: 22-05-2023 Has been a member for 9-10 years. Has a total post count of 61. Received thanks 10 times, giving thanks to others 9 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.

    [AXIS_0]
    TYPE = LINEAR
    HOME = 0.0
    MAX_VELOCITY = 20.0
    MAX_ACCELERATION = 100.0
    STEPGEN_MAXACCEL = 525.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
    HOME_IGNORE_LIMITS = YES
    HOME_SEQUENCE = 1
    Last edited by NB70; 15-03-2011 at 09:11 AM.

  5. #5
    Hi
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Wiring home and limit switches
    By Lee Roberts in forum General Electronics
    Replies: 24
    Last Post: 18-11-2023, 06:14 PM
  2. 24v Limit/Home switches. How to..?
    By Wal in forum General Electronics
    Replies: 6
    Last Post: 17-11-2013, 05:52 PM
  3. Limit Switches
    By Leadhead in forum General Electronics
    Replies: 1
    Last Post: 16-10-2013, 10:41 AM
  4. Limit/home switches - how are you mounting 'em?
    By HankMcSpank in forum General Discussion
    Replies: 2
    Last Post: 13-11-2011, 01: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, 01:38 PM

Bookmarks

Posting Permissions

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