A Start and Stop position are not absolutely essential, but they are very nice if one wishes to produce a captive thread. Captive threads are pretty unusual except when creating a worm gear. Even then, many designs employ a shaft whose diameter is smaller than the minimum diameter of the worm. If you already have this implemented, I would be happy to use it.I'm working on this threading sync problem on my own, fairly modified, Clough42 ELS. I'm solving it in a pretty simple way: my ELS already allows feeding into a previously-set stop. I set a stop at the right hand side of the work, and at the shoulder I'm feeding in to. Now I can just press my "Feed Left" button, and it will feed up to the shoulder. Retract, press Feed Right, and it feeds back, repeat.
Exactly. It is not necessary to calculate or keep track of the total number of rotations derived from the encoder output. As long as the half nut is locked, there will always be a 1:1 correlation between the feed screw position determined by the controller's output to the motor and the position of the spindle. Since the spindle does not move in the Z direction (or one had better hope not!!!), only the simple polar coordinate providedc by the encoder is needed.Because this system knows the starting position (the right stop), my modification for threading is just going to be to wait for the correct spindle position before beginning the feed. As long as you use the same spindle position every time, from the same starting point, it should work perfectly.
Ouch! Let me know if I can help in any way. Certainly I would like to be a tester once the code is ready for testing.Unfortunately I've been set back a bit by somehow losing quite a bit of my previous code, so I'm rebuilding it now.
No, but they are not too terribly involved, either. If I knew any C++ at all, I am pretty confident I could already be a fair way along. At the very least, I would be done with the code which starts and stops the servo.The changes to do all of this aren't trivial - I'm not a master coder, but nevertheless it has taken me quite a few hours to get to this point. James' extremely good ELS was only designed to be a simple replacement for change gears, so you need to make a lot of changes to keep track of things.
Let me ask you this: "How do you enter and exit the shoulder stop mode?" I would definitely like to be able to stop the lead screw even though I am not threading or turning to a shoulder. As I mentioned, I envision using the <Set> button to enter and exit the mode. I had envisioned using the <Set> button for reversing the lead screw, but I could certainly work with using the left and right arrow buttons. It would make my idea of flashing the <Fwd> and <Rev> LEDs unnecessary (which is OK), but I still think it a good idea to flash a notification every few seconds when the lead screw is stopped.