Spindle Encoder / Leadscrew stepper threading leadscrew idea

Advert

Spindle Encoder / Leadscrew stepper threading leadscrew idea

Home Forums Manual machine tools Spindle Encoder / Leadscrew stepper threading leadscrew idea

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #246323
    Rainbows
    Participant
      @rainbows

      So something like this has probably been done by the guys who convert lathes to CNC but in this scenario I am just considering a way to get rid of pesky gears without using MACH 3 or any CNC business.

      So using timing pulleys geared down this incremental encoder would be set to pulse 1200 times per rotation of the lathe spindle (the encoder goes 600 pulses/rev but I'm thinking of a 1:2 belt ratio).

      Meanwhile the lathe leadscrew (4mm pitch) is attached to a stepper motor with a 1.8 degree resolution (0.02mm per step).

      E.g.: For a pitch of 2mm a computer of some sort counts 12 pulses from the encoder then tells the stepper motor to step once.

      Just checking around to see if anyone had done something similar here.

      Advert
      #12720
      Rainbows
      Participant
        @rainbows
        #246334
        JasonB
        Moderator
          @jasonb

          There was a long thread a few months ago on just the subject.

           

          Edit, this is the thread, should keep you quiet for a whilewink 2

          Edited By JasonB on 12/07/2016 08:08:10

          #246337
          Marcus Bowman
          Participant
            @marcusbowman28936

            Sounds like the well-established electtronic leadscrew project (ELS):

            **LINK**

            for which there is a large Yahoo group.

            There is also a version based around an Arduino; and there are youTube videos of that.

            #246365
            Neil Wyatt
            Moderator
              @neilwyatt

              You need a subscription to Model Engineers' Workshop – a recent issue described one. There was also a dividing attachment using the rotary encoder which keeps appearing in the top banner ad that could probably be adapted to work as part of an ELS system.

              Neil

              #246376
              Rainbows
              Participant
                @rainbows

                Only update on my design would be that I found an inexpensive encoder that would allow 6000 pulses/revolution.

                Of 23 standard metric pitches it would be theoretically perfect for 17.

                0.45, 0.7, 1.75, 3.5,4.5,5.5 lead to a fractional number of pulses per step

                Anyone know what an acceptable tolerance is to thread pitch? The closest I could get to a 0.7 pitch is 0.70175 pitch. As the thread gets coarser the innacuracy increases. 1.75 becomes 1.739, 5.5 becomes 5.454545.

                 

                 

                I would say about 50% of that thread went over my head. If LinuxCNC gets that confusing when people are debating about how confusing it is then I hate to see how confusing it is to use it. That said there was a video of a guy using the same set up as I planned with a 1040 pulse encoder.

                There was a link in a link about how to double or quadruple the pulses from a encoder but sadly it lead to a dead website. Anyone know what that might be referencing?

                 

                Side projects that would would come off the spindle encoder were going to be a speed control and maybe a dividing attachment though 6000 doesn't fit nicely into 360. Though I think the dividing head DRO systems is selling can't be used with a spindle thats being turned by a motor/ any high speed.

                 

                And now I have to make a yahoo account to check out that yahoo group. 

                 

                Edited By Rainbows on 12/07/2016 14:18:18

                #246378
                Another JohnS
                Participant
                  @anotherjohns
                  Posted by Rainbows on 12/07/2016 14:05:44:

                  Only update on my design would be that I found an inexpensive encoder that would allow 6000 pulses/revolution.

                  I understand (no personal experience) that Mach 3 can ONLY use one pulse/rev for a lathe for threading. Which either works incredibly well or incredibly poorly, depending on who is writing the blog post.

                  LinuxCNC expects an index pulse, and then a series of other pulses to determine spindle angularity. I'm going to try an encoder on the gear that is on the spindle of my lathe, 40 teeth. My understanding is that, properly set up with quadrature encoding, I'll get 160 direct divisions and rotational direction of the spindle. LinuxCNC will interpret between direct divisions when threading.

                  I do have my CNC mills "dual" configured; one config as a mill, the other as a lathe. when running in lathe mode, I can either use CAM-generated lathe GCODE, or I also have conversational programming via code written by a Brit named Andy Pugh.

                  Brilliant stuff.

                  (One of these days I'll resume my stalled lathe conversion – stalled as I have decided to focus on one project at a time to get things finished in a timely manner. Shay locomotive almost done! Approach works!! (of course))

                  #246381
                  Martin Connelly
                  Participant
                    @martinconnelly55370

                    Rainbows,

                    You need to mount the encoder off the spindle otherwise you loose the ability to pass material through it. Since you are mounting off the spindle it is an easy matter to use different size pulleys to change the counts per rev. If you have a pulley ratio of 4:1 then you increase the counts per rev by a factor of 4. When you do this it is usually necessary to add index detection to the spindle as the encoder index pulse will now happen a number of times per rev of the spindle. You can try to keep track of the spindle by counting the pulses in software but any loss of power or noise in the system messes that up.

                    Martin

                    #246382
                    Martin Connelly
                    Participant
                      @martinconnelly55370

                      John, regarding Mach3 and the single index pulse. If you have a machine with backgear and a large motor that does not stall or slip when under thread cutting loads then Mach3 works fine. Try using it with a weak motor without backgear (I'm thinking DC motor with electronic speed control here) and you are asking for trouble. I have the former, large 3 phase motor with VFD and backgear. I can thread with Mach3 without issues as long as I don't want to work at high speeds on big threads. I think there is an issue, though I have not encountered it yet, with thread length over 40mm.

                      If I run the motor at 100Hz with backgear the spindle speed is 120rpm. This is not a problem for the motor as it is a 1000rpm at 50hz motor so it does not reach the heady heights of a 3000 rpm motor even at 100Hz. With a coarse thread 120rpm is plenty fast enough.

                      Martin

                      #246385
                      Rainbows
                      Participant
                        @rainbows

                        The current plan is a Omron E6B2 encoder which has 2000 pulses per revolution and a max machanical speed of 6000RPM. With a max lathe speed of 2000RPM I can use a 3:1 ratio to get the 6000 ppr but can't get it any higher mechanically.

                        It might be a chinese copy considering it costs £20 off ebay and £161 from RS components but oh well.

                        Has A and B phases and I think Z phase refers to a index pulse. So I got an index pulse if I need it (though at 3 times per revolution isntead of 1).

                        I think there was a picture on the other thread about what happens when your index pulse creates innacuracys. Wasn't a thread I would want.

                        #246409
                        Ajohnw
                        Participant
                          @ajohnw51620

                          The problem with the PC driven ones is servicing the pulse rate. Linux offers a special extension that helps a lot in that respect so can handle higher pulse counts. The bits needed to use it are pretty cheap and I have wondered how well it would work out on a Ras Pi or something similar.

                          I assume both are set up to handle more than one axis so high pulse counts on a single axis should be more feasible. There is a Russian that has come up with a working system using a micro and I think I linked to it in the other thread. I'm not sure that full details are given though.

                          The Linux CNC forum can be pretty helpful for people who have problems using it. There are also all sorts of bits and pieces about on the web. Some of the bleats I have read on here about it miss the point that it does what the people who use it want to do with it. There is always a tendency for this with OS – if some one wants something different well the code is available so change it. That's how OS evolves.

                          John

                          #246415
                          Neil Wyatt
                          Moderator
                            @neilwyatt

                            The pulses don't need to go exactly into the screw pitch as the software should allow for that. a 1:12,000 maximum angular positional error is 0.0002 mm in a 2mm pitch thread and the error wouldn't be cumulative. Such errors would be swamped by other factors.

                            Neil

                            #246458
                            Ajohnw
                            Participant
                              @ajohnw51620

                              From posting and reading on the yahoo electronic leadscrew group some people were looking at going to closed loop motor speed control. That sort of put me off the kit that's available. There was mention of more pulses per rev but as far as I am aware it has never happened.

                              This set up stemmed from the original idea of using a phase locked loop and dividers replacing it with a PIC. Hope I remember that correctly. I lost interest years ago. One other aspect is that I just wanted to replace a gear box. I feel I can look after the other aspects myself and including bells an whistles is just more clutter.

                              I believe some inverters have a closed loop speed control capability now but I have no idea how good it is. I've seen no signs of it appearing where that sort of thing is used and the gear for that tends to be rather expensive.

                              John

                              #246460
                              Rainbows
                              Participant
                                @rainbows

                                Ok so a bit of extra maths worked out a way to use the pulses to find out how long it would take for the spindle to make one revolution then use that time to calculate how rapidly to fire the stepper. Actually get ~infinite pitches~ this way.

                                Is 3Nm enough force to turn a leadscrew? I can never conceptualize these things.

                                #246462
                                Ajohnw
                                Participant
                                  @ajohnw51620

                                  Wrap some thick string round a sizeable gear and measure the pull with a balance of some sort – fishing scales etc. Then work out ft lbs or what ever and use a web converter to get nm.

                                  The problem with software for this sort of thing is that it finds out that it has happened after it has and not before. That's why higher end cnc machines use closed loop speed control. if you follow the earlier lead about having a back gear in that should help a lot. Making use of any speed feedback on an inverter may too.

                                  crying I've written a lot of software that has to respond after it's happened.

                                  John

                                  #246464
                                  Michael Gilligan
                                  Participant
                                    @michaelgilligan61133
                                    Posted by Ajohnw on 12/07/2016 23:49:36:

                                    crying I've written a lot of software that has to respond after it's happened.

                                    .

                                    But have you written any that responds before it's happened question

                                    devil

                                    MichaelG.

                                    #246468
                                    Roger Head
                                    Participant
                                      @rogerhead16992
                                      Posted by Michael Gilligan on 13/07/2016 00:00:09:

                                      But have you written any that responds before it's happened question

                                       

                                      That's old-hat stuff Michael! Back in the '70s, in one of the IEEE journals (I think), there was a full article replete with oscilloscope photos, highly technical waffle that didn't really explain anything (because of the enormous commercial value etc) of a new solid-state negative time-constant device i.e. the output was generated before the input stimulus was applied. It was extremely well done, and drew comment in the following issue. Later it was announced as a joke – something written just as a bit of a laugh. It wasn't expected to draw 'learned discussion' blush .

                                      I don't know how many times I've kicked myself for not keeping a copy.

                                      Roger

                                      Edited By Roger Head on 13/07/2016 01:55:59

                                      #246474
                                      Marcus Bowman
                                      Participant
                                        @marcusbowman28936

                                        I assume the 'learned discussions' were printed in the journal the month before the article was published…

                                        More seriously;

                                        One difference between a one-pulse-per-rev system and a system which uses one index pulse plus a train of intermediate pulses is that while the 1ppr system calculates the stepper pulse rate needed for the next whole revolution, the multiple ppr system is capable of reducing ongoing and cumulative errors caused by variations between the theoretical pulse train and the actual motion of the work, in each revolution. So it produces a better match between prediction and actuality over the course of a single revolution, in an open loop system. Not quite responding before it happens, but certainly closer to continuous correction.

                                        I agree with the earlier comment about power and electronic motor speed. As far as I can see, the typical variable speed control boards for low powered lathes and mills also use a single pulse per rev and have a visible variation in speed under varying load, especially at low rpm. That is bound to lead to variations in pitch and in cutting performance.

                                        If there is a small range of optimum cutting speeds for a given material and diameter of work, why do we slow down for thread cutting? That seems illogical. I get better results when cutting at closer to theoretical optimum speeds. I suspect the low speed is to allow for operator thinking time, to allow for disengagement of the leadscrew half-nuts. I've had better results using higher speeds but arranging the direction of feed so that rapid disengagement is not required; or by using mechanical auto-disengagement or trip-switch electrical shut-off to cater for the fact that my own internal processing speed is very slow. An automated system, whether CNC or not, copes with this quite nicely. But I would not expect to have to make big compromises on the integrity of the pitch.

                                        Marcus

                                        #246485
                                        Ajohnw
                                        Participant
                                          @ajohnw51620
                                          Posted by Michael Gilligan on 13/07/2016 00:00:09:

                                          Posted by Ajohnw on 12/07/2016 23:49:36:

                                          crying I've written a lot of software that has to respond after it's happened.

                                          .

                                          But have you written any that responds before it's happened question

                                          devil

                                          MichaelG.

                                          Roger summed up the problems with that rather well Michael. In many respects when software control is dealing with the outside world it's often fundamentally impossible to predict what is going to happen but fortunately there are usually limitations on what can happen. Then comes faults.

                                          devilMaybe adding eyes and ears might help with some aspects but it all mostly comes down to sample rates in a digital world even when PID is used and even that needs certain response limitations on the thing it's controlling. It can only cope with things that change at certain rates and is designed for that – and the numbers are then in some cases played about with ad hoc to get it to work properly or it self tunes. There is a lot of hype about in other areas such as fuzzy logic aka previously ish logic and things like neural network.

                                          John

                                          #246541
                                          Michael Gilligan
                                          Participant
                                            @michaelgilligan61133

                                            Posted by Ajohnw on 13/07/2016 10:41:52:

                                            … Roger summed up the problems with that rather well Michael. < etc. >

                                            .

                                            I think the point was that Roger got the joke

                                            MichaelG.

                                            #246553
                                            Ajohnw
                                            Participant
                                              @ajohnw51620
                                              Posted by Michael Gilligan on 13/07/2016 22:03:15:

                                              Posted by Ajohnw on 13/07/2016 10:41:52:

                                              … Roger summed up the problems with that rather well Michael. < etc. >

                                              .

                                              I think the point was that Roger got the joke

                                              MichaelG.

                                              I don't think you got mine in reply Michael. devil you might need to think about that.

                                              John

                                              #246576
                                              Martin Connelly
                                              Participant
                                                @martinconnelly55370

                                                Marcus I have been thinking about your question about a small range of optimum cutting speeds. You have to consider what is optimum. In industry it is cost driven, time is money as they say but going too fast destroys tooling quicker. The optimum for industry is carefully calculated but is not the same for hobby use where time is not such a restraint, we are not working against a clock. Tooling costs override time costs. Often you see statements about recommended feeds and speeds being reduced for home use.

                                                If thread cutting needed to be done at high speed for a good finish then how could anyone ever produce a clean and well finished thread using hand taps and dies? I put my lathe in backgear for parting off and produce shiny swarf and a good finish on the cut faces using a good dark cutting oil and carbide tips. I was parting off some 316L last weekend without problems with surface speeds well below "recommended" and getting a good finish.

                                                But back to threading, the problem with threading large pitches at high speed is the rate the carriage needs to be driven. If you are using CNC then in order to accelerate the carriage up to speed quickly and then decelerate it again for reverse you need a very large motor to drive it. If you are using a conventional mechanical connection you may have a 2 hp motor working everything, most home CNC will not want a 2hp motor to drive the carriage. There usually has to be a compromise between speed of motion and size of Z axis motor and this will be true for the original concept in this thread as well. With CNC you have to be aware of the maximum speed you can move the carriage at so that you do not try to exceed this speed when threading.

                                                As an example consider am M6 thread in mild steel. Recommended RPM is about 1250 for turning. If thread cutting at this RPM with a 1mm pitch you would need to move the carriage at 1250mm per minute. This could easily be greater than what the machine is capable of. It is much easier to drop the RPM to a value that is well within the machine's capabilities and also does not cause the machine to slow when cutting starts. If you consider how much time it takes to cut the thread then you are talking a few seconds longer for typical thread lengths cut at these lower speeds so that should not be a consideration for a hobby machinist. Additionally with CNC the rapid speeds on a lathe are not the same as the maximum cutting speed because as well as having to move the carriage or cross slide around the motor needs to overcome the forces due to pushing a tool into the workpiece.

                                                I can produce a good finish on threads at low RPM so my optimum cutting speed range is clearly not a particularly small range and is also different from optimum in an industrial environment so there must be other factors affecting things beyond just surface cutting speed.

                                                For someone looking to fit a motor to the Z axis they will have to decide for themselves what size it will be, can it be direct drive or will it involve pulleys and how fast they want the Z axis to move when cutting. A small motor with speed reduction through timing belt pulleys will give good torque but low speeds but may be the best option. It does require that the lathe is able to cut good threads at low speeds though.

                                                Martin

                                              Viewing 22 posts - 1 through 22 (of 22 total)
                                              • Please log in to reply to this topic. Registering is free and easy using the links on the menu at the top of this page.

                                              Advert

                                              Latest Replies

                                              Home Forums Manual machine tools Topics

                                              Viewing 25 topics - 1 through 25 (of 25 total)
                                              Viewing 25 topics - 1 through 25 (of 25 total)

                                              View full reply list.

                                              Advert

                                              Newsletter Sign-up