
10-05-2009, 10:33 AM
|
 | | | Join Date: Apr 2005 Location: USA
Posts: 1,774
| |
Originally Posted by cwebs I did not know how to set Homing rapids to go in the correct direction or how to get the stepper config back so I could fix anything. Still have a problem with limits. I am using homing switches as limits but I can't find how to config my other limits. I have Z Y X conected together but find no option for that. |
I hate to tell you to read the manual but that is how I got mine working. The critical information is in the integrators manual under configuration:ini file:homing. You need to read that information to understand how the variables that control homing work. EMC2 offers a lot of control over how homing works that Mach doesn't. More control means more complexity.
I use combined home and limit switches, one switch at each end of travel.
Here is what I did in my ".hal" file. # create a signal for the limit switches
net both-home-x <= parport.0.pin-11-in
net both-home-y <= parport.0.pin-12-in
net both-home-z <= parport.0.pin-13-in
net both-home-x => axis.0.neg-lim-sw-in axis.0.pos-lim-sw-in axis.0.home-sw-in
net both-home-y => axis.1.neg-lim-sw-in axis.1.pos-lim-sw-in axis.1.home-sw-in
net both-home-z => axis.2.neg-lim-sw-in axis.2.pos-lim-sw-in axis.2.home-sw-in |
And here are the settings for the X-axis in my ".ini" file. HOME_OFFSET = -0.1
HOME_SEARCH_VEL = -1.500
HOME_LATCH_VEL = 0.250
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1 |
This says that my home switch is -0.1" from X0, that I search for home in a negative direction at 90ipm, that once I hit home I back off and search again at 15ipm, that I don't use an index in addition to the switch, that I ignore limits when searching for home and finally that the X axis is the second axis to home. I have Z set to HOME_SEQUENCE = 0 and Y is also set to HOME_SEQUENCE = 1. So it homes Z first and then X and Y simultaneously. If I was sharing a switch loop between multiple axii, then I could not home two axii simultaneously. So if yours is homing in the wrong direction you would change the sign on the HOME_SEARCH_VEL (and probably the HOME_LATCH_VEL as well).
Alan
__________________ http://www.alansmachineworks.com
Last edited by acondit; 10-05-2009 at 10:38 AM.
Reason: More Explanation
|