-
14-03-2011 #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?
-
14-03-2011 #2
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
-
15-03-2011 #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
-
15-03-2011 #4
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 = 1Last edited by NB70; 15-03-2011 at 09:11 AM.
-
15-10-2014 #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
-
Wiring home and limit switches
By Lee Roberts in forum General ElectronicsReplies: 24Last Post: 18-11-2023, 06:14 PM -
24v Limit/Home switches. How to..?
By Wal in forum General ElectronicsReplies: 6Last Post: 17-11-2013, 05:52 PM -
Limit Switches
By Leadhead in forum General ElectronicsReplies: 1Last Post: 16-10-2013, 10:41 AM -
Limit/home switches - how are you mounting 'em?
By HankMcSpank in forum General DiscussionReplies: 2Last Post: 13-11-2011, 01:42 PM -
The best solution for limit / home switches on a mill is .....what ?
By NICKMODELMAKER in forum Gantry/Router Machines & BuildingReplies: 1Last Post: 29-05-2010, 01:38 PM
Bookmarks