Is there anything in EMC2 that compensated for home and limit switch bounce. I get errors often when trying to home saying that the switch was active before homing once it hits the switch the first time.
Also, for the limit switches, they always seem to trip when the table is in operation even though the table is nowhere near them. I've used capacitors across the switch and at the connection on the controller but they still falsely trip. I've tried NO and NC with the same results.
Ah, just thought of something - on your first problem - are your home/limit switches combined?
Right now I have the limit switches disabled and am only using home switches. They still bounce and are occasionally difficult to get a good home with them.
Right now the home is triggered by the switch going from off to on so I guess it is right on top of the home. Is there an offset setting in EMC2 that I missed? I will get details of the exact error message generated when homing later today.
What I meant was what is your homing sequence? Post your ini file segments for homing on each of your axes.
Here's a good section in the docs that deals specifically with homing, and the variables you can use in each of the homing sections:
LinuxCNC.org - Homing Configuration
Look at sections "0.1.3.6 HOME_OFFSET" & "0.1.3.7 HOME" for information on how to set your "home" position.
I'm showing an offset of 1" on Z which is causing the most trouble. However, when the unit homes it stops right on the switch.
I'll read up on the document you linked to.
If your switch is located all the way up, then 1." would be outside of travel?
Did you try diffferent Values here for example Home = 0. and Homeoffset=-.25" seams to make sense to me.
As in hit the switch then back of .25 and call this 0.
May be worth a Try.
I sent the wrong file by mistake. The offset is 0 currently. I tried it at .125 and .250 but all that did was move the axis by that amount after the homing was completed.
The error I get when zero fails is "Home switch active before start of latch move"
I changed the velocity to a lower value and will see how it goes. I still think the switch is bouncing causing the error above. I have some circuits that I will try to filter the bounce and see how that goes.
The wire is shielded and grounded as it should be, I think I just have cheap switches. Where do you put the debounce code, do you need to use Classicladder or just add it to the ini file on the home line?