I haven't used the positive limits yet and I can't think of a reason for needing them except for possibly an automated self-test. I will use the shaft encoders to check that the table is where I think it should be and halt if I find a significant discrepancy. That would indicate a firmware bug, tool crash or hardware failure.
The z-axis did not come with limit switches so I had to improvise. I wanted repeatability to within one half step, i.e. 50 μm. The software knows what the shaft position modulo 8 is because it knows the phase pattern applied to the motor. That means it only needs a limit switch with repeatability better than 0.4 mm. I decided to try a micro switch to see if I could find one good enough. As you can see I have managed to amass quite an extensive collection!
I picked one of the small ones on the bottom right and it seems to do the trick. Again it has significant hysteresis as one would expect. My homing routine steps upwards at speed until it activates the switch and then steps down slowly until the switch opens again. At this point I AND the motor position with 7.
Once the homing was sorted out I was ready to test the accuracy.
Wow! You've got piles of bits, don't you. :-0
ReplyDeleteWell I have been collecting stuff since I was a kid. The micro switches were just one box full, I have several hundred more each with a different type of thing in them. In fact the room I work in is 12ft square and most of the wall is shelved floor to ceiling or from desk to ceiling. Then there's the loft ...
ReplyDelete