RE: [CAD_CAM_EDM_DRO] Re: DC motor controller
Posted by
Mark Vaughan
on 2006-11-12 12:15:48 UTC
Not really, this is why we like to have more encoder counts than we do steps
on a servo control.
Think is you tell it to do 10 steps. The servo will count the steps up to 10
and store this.
Then say one step equals 8 count because our encoder CPR is 8 times the step
resolution we need.
So our step count of 10 needs to be 80 encoder steps. The motor will start
to move towards 80 steps, it may overshoot and hit 82 before it reverses and
gets to 80.
So it overshot by two encoder steps, but this is 2/8 of our control input
steps so your have a quarter of a step input error.
On the other hand if your 10 input steps needed 10 encoder steps. Your
overshoot of 2 steps now is quite significant, it's eight times worse. You
could use finer steps in your control software so a couple of input step
errors are smaller and don't matter, but then your speed is limited and
slower based on the maximum pulse output frequency of your PC interface.
The servo will never be instantaneously spot on with its encoder count,
unless it is very slow, it needs to be allowed to overshoot a little. Using
the multiplier in the servo gives you small overshoot compared to your input
steps
There is one omission in my above statement. When the servo takes it's input
step count, this is the error, it will reduce this count as the motor moves
closer to position. All controlled by an up/down counter controlled by the
step inputs, and the encoder as it moves.
I hope that makes sense
Regs Mark
_____
From: CAD_CAM_EDM_DRO@yahoogroups.com
[mailto:CAD_CAM_EDM_DRO@yahoogroups.com] On Behalf Of John Hansford
Sent: 12 November 2006 15:25
To: CAD_CAM_EDM_DRO@yahoogroups.com
Subject: [CAD_CAM_EDM_DRO] Re: DC motor controller
Hi Mark,
I can follow along with that, But doesn't overshoot & undershoot
still equate to missed steps or even added steps? Ruined work?
The encoders I ordered are these...
http://www.surplusc
<http://www.surpluscenter.com/item.asp?UID=2006111209105239&item=10-1834&cat
name=electric>
enter.com/item.asp?UID=2006111209105239&item=10-1834&catname=electric
200 cpr. Is it workable.
I think I understand...It's all in the tuning.
If I used a spindle head at say 1200 rpm one day then a 30000 rpm
router the next, does all this tuning need to be redone.
It can just be slowed down in mach3?
John
--- In CAD_CAM_EDM_ <mailto:CAD_CAM_EDM_DRO%40yahoogroups.com>
DRO@yahoogroups.com, "Mark Vaughan" <mark@...> wrote:
on a servo control.
Think is you tell it to do 10 steps. The servo will count the steps up to 10
and store this.
Then say one step equals 8 count because our encoder CPR is 8 times the step
resolution we need.
So our step count of 10 needs to be 80 encoder steps. The motor will start
to move towards 80 steps, it may overshoot and hit 82 before it reverses and
gets to 80.
So it overshot by two encoder steps, but this is 2/8 of our control input
steps so your have a quarter of a step input error.
On the other hand if your 10 input steps needed 10 encoder steps. Your
overshoot of 2 steps now is quite significant, it's eight times worse. You
could use finer steps in your control software so a couple of input step
errors are smaller and don't matter, but then your speed is limited and
slower based on the maximum pulse output frequency of your PC interface.
The servo will never be instantaneously spot on with its encoder count,
unless it is very slow, it needs to be allowed to overshoot a little. Using
the multiplier in the servo gives you small overshoot compared to your input
steps
There is one omission in my above statement. When the servo takes it's input
step count, this is the error, it will reduce this count as the motor moves
closer to position. All controlled by an up/down counter controlled by the
step inputs, and the encoder as it moves.
I hope that makes sense
Regs Mark
_____
From: CAD_CAM_EDM_DRO@yahoogroups.com
[mailto:CAD_CAM_EDM_DRO@yahoogroups.com] On Behalf Of John Hansford
Sent: 12 November 2006 15:25
To: CAD_CAM_EDM_DRO@yahoogroups.com
Subject: [CAD_CAM_EDM_DRO] Re: DC motor controller
Hi Mark,
I can follow along with that, But doesn't overshoot & undershoot
still equate to missed steps or even added steps? Ruined work?
The encoders I ordered are these...
http://www.surplusc
<http://www.surpluscenter.com/item.asp?UID=2006111209105239&item=10-1834&cat
name=electric>
enter.com/item.asp?UID=2006111209105239&item=10-1834&catname=electric
200 cpr. Is it workable.
I think I understand...It's all in the tuning.
If I used a spindle head at say 1200 rpm one day then a 30000 rpm
router the next, does all this tuning need to be redone.
It can just be slowed down in mach3?
John
--- In CAD_CAM_EDM_ <mailto:CAD_CAM_EDM_DRO%40yahoogroups.com>
DRO@yahoogroups.com, "Mark Vaughan" <mark@...> wrote:
>x number
> If you go to the Rutex site they show a graph of output position against
> time to a step response input.
>
> In control systems a step response is when you tell the servo to go
> of pulses in zero time. Obviously this is impossible it will takesome time
> to accelerate, and then decelerate to position.keep
>
> (To those control systems engineers out there, I am going to try and
> this simple and avoid PID, nyquist, poles and zero's etc)it gets
>
> There are several things that can happen to a step response.
>
> In a slow system you see it move to position, and slow down before
> there taking a long time to move the last little bit to position.itself back
>
> In a fast system, overshoot (go past it a little), and then pull
> to position. But it may get to position, or it may oscillate aboveand below
> for a while.but too
>
>
>
> The servo drive has a gain figure which controls how quick it gets there
> when there is an error, more error and it must get there quicker,
> fast and it will overshoot, and too much gain causes thisoscillation which
> you don't want.then add
>
> You normally up the gain until you get a little oscillation, you
> some damping to stop the oscillation.work
>
>
>
> Depending on the servo control there are then other adjustments that
> slightly differently with each manufacturers servo drive.the limits
>
>
>
> Remember the step response is not a real situation, it's a standard test
> method, software like mach3 would control the acceleration within
> of the machine, and then the servo's work is much easier.so it
>
> The thing is to allow the servo to know when there is a slight error
> can correct it within a few encoder pulses, you give it room toplay, but so
> fine you never see it.stop and
>
>
>
> If you watch commercial machines with controls of the 1980's and early
> 1990's fitted with hand wheels perform a fast G0 move to position before
> slowing to cut, you will actually see the index on the hand wheel
> reverse a bit. As a control systems engineer, the control is rathersloppy,
> but a normal cut is very much slower so the system is then much moreyou put a
> precise. Most of these machines typically use 250 cpr encoders, if
> 2500 CPR encoder on and run mach3, you won't see any over or undershoot.finish, the
> It's real impressing to CNC operators that think our DIY stuff might be
> inferior.
>
> This is also why we tend to rough cut, and then finish cut with a slower
> feed which is more accurate as well as having a better surface
> older machines suffered from a lot more positional lag during normalup the
> operation.
>
>
>
> To get a fast machine running well might take several hours to set
> servo drives. I never really know when to stop. I like to see a fastBut I
> response with very very little overshoot, perhaps 1 to 2 counts max.
> also see machines especially some of the old ones with analogue controlshard you
> that are very sloppy and they still work quite well, it depends how
> push them.DRO@yahoogroups.com
>
>
>
> Hope this gives you a little insight
>
> It will all make sense when you start to play.
>
>
>
> Regs Mark
>
>
>
> _____
>
> From: CAD_CAM_EDM_ <mailto:CAD_CAM_EDM_DRO%40yahoogroups.com>
> [mailto:CAD_CAM_EDM_ <mailto:CAD_CAM_EDM_DRO%40yahoogroups.com>DRO@yahoogroups.com] On Behalf Of John Hansford
> Sent: 12 November 2006 11:44DRO@yahoogroups.com
> To: CAD_CAM_EDM_ <mailto:CAD_CAM_EDM_DRO%40yahoogroups.com>
> Subject: [CAD_CAM_EDM_DRO] Re: DC motor controller<mark@> wrote:
>
>
>
> Thanks Mark,
>
> I'm trying to follow along, but I've never seen a servo setup
> run. I feel like I did 4 years ago when I got my first kit
> from stepperworld with 80 oz motors. The vids I've seen show
> them(servos) zipping around with real authority.
>
> I am greatly appreciative of all this help and advice.
>
> I've got some stuff ordered to get into "Trial & Error" phase
> as soon as possible. I guess a great deal will become clear
> when Hook-up time comes.
>
> I'll refer back to these posts many times.
>
> I usually build a machine 2-3 times before I'm satisfied with it,
> so I'm not counting on getting it right the first time.
> The main reason the machine's 80% MDF.
>
> For anyone interested, I'm going with the treadmill motors &
> cheap encoders from surpluscenter. Gecko G320's.
> Mainly because something similar has worked for Les for years.
> I need to run ANY servo to get an idea of what to expect.
> I can't go wrong having these motors on hand.
> The parts I need(for now) are basic geometric shapes from MDF.
> I won't know what I want to improve til I see something running.
> The Gecko's are akin to currency...If I can't use them somebody
> else can.
>
> I want to do this in a way that the next guy can learn from it too.
>
> We're all very fortunate to have such helpful and informed people
> from all around the world giving their input.
>
> Thanks Mark,
>
> John
>
> --- In CAD_CAM_EDM_ <mailto:CAD_CAM_EDM_DRO%40yahoogroups.com>
> DRO@yahoogroups. <mailto:DRO%40yahoogroups.com> com, "Mark Vaughan"
> >accuracy and
> > Les wrote >>. Higher CPR encoders make it easier for the drive to
> > compensate.
> >
> >
> >
> > This is a very good point for diy'ers. Many diy'ers look at the
> output speed
> > of programs like mach3 together with acceptable accuracy/resolution to
> > decide how many count they will select for their encoder. But
> resolution and
> > accuracy are not necessarily the same.
> >
> > Many modern servo controllers have a divider to allow you to set one
> step
> > input pulse to correspond to several encoder output pulses. This
> allows you
> > to use a hi count encoder so the servo drive has very good
> > several counts per step so it can see errors within each step andselecting a
> keep those
> > error small to much less than one step resolution. The divider then
> lets you
> > set the step resolution, and maintain speed with your step
> resolution being
> > pretty much your maintained accuracy even with a little over and
> undershoot
> > error. (cogging problems excluded in poor servo motors). Try
> > pulse count resolution of at least 4 times your step resolution.Newell
> >
> >
> >
> > Regs Mark
> >
> >
> >
> > _____
> >
> > From: CAD_CAM_EDM_ <mailto:CAD_CAM_EDM_DRO%40yahoogroups.com>
> DRO@yahoogroups. <mailto:DRO%40yahoogroups.com> com
> > [mailto:CAD_CAM_EDM_ <mailto:CAD_CAM_EDM_DRO%40yahoogroups.com>
> DRO@yahoogroups. <mailto:DRO%40yahoogroups.com> com] On Behalf Of Leslie
> > Sent: 12 November 2006 09:29cogging.
> > To: CAD_CAM_EDM_ <mailto:CAD_CAM_EDM_DRO%40yahoogroups.com>
> DRO@yahoogroups. <mailto:DRO%40yahoogroups.com> com
> > Subject: Re: [CAD_CAM_EDM_DRO] Re: DC motor controller
> >
> >
> >
> > Hi John,
> >
> > The servo drive will have to work to reduce the effect of the
> > Modern drives are pretty good and can mask most of it. On my mill,if I
> > watch the pulleys very closely I can just see the motor speed varyingHigher
> > slightly at certain feed rates. It appears to have no discernible
> > effect on accuracy or surface finish so I don't worry about it.
> > CPR encoders make it easier for the drive to compensate.com/photos/26361144@N00/> com/photos/26361144@N00/>
> >
> > Les
> >
> > John Hansford wrote:
> > > Hi Dave,Ron,
> > >
> > > Pictures...
> > > http://www.flickr <http://www.flickr
> <http://www.flickr <http://www.flickr.com/photos/26361144@N00/>
> > com/photos/26361144@N00/[Non-text portions of this message have been removed]
> > >
> > > I took the CW to mean the nut would probably fly off if it ran
> > > the other way. I opened it ...Nothing flew apart.
> > >
> > > What's the Bad news...How _BAD_ could they be as servos?
> > >
> > > I wouldn't have noticed the very slight cogging if I weren't
> > > trying to find it.
> > >
> > >
> > > John
> > >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Discussion Thread
kz1927
2006-11-09 16:33:02 UTC
Treadmill motors as Servos
Rich Goldner
2006-11-09 17:25:21 UTC
Re: Treadmill motors as Servos
Rich Goldner
2006-11-09 17:27:03 UTC
Re: Treadmill motors as Servos
Rich Goldner
2006-11-09 17:29:33 UTC
Re: Treadmill motors as Servos
kz1927
2006-11-09 17:47:25 UTC
Re: Treadmill motors as Servos
Thom Carr
2006-11-09 19:16:07 UTC
Re: [CAD_CAM_EDM_DRO] Treadmill motors as Servos
Bill Vance
2006-11-09 23:26:56 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
kz1927
2006-11-10 00:20:16 UTC
Re: Treadmill motors as Servos
Leslie Newell
2006-11-10 01:52:20 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
kz1927
2006-11-10 03:28:10 UTC
Re: Treadmill motors as Servos
protman16
2006-11-10 05:31:36 UTC
Re: Treadmill motors as Servos
kz1927
2006-11-10 09:51:58 UTC
Re: Treadmill motors as Servos
Leslie Newell
2006-11-10 11:41:04 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
kz1927
2006-11-10 14:02:33 UTC
Re: Treadmill motors as Servos
Leslie Newell
2006-11-10 15:16:47 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
kz1927
2006-11-10 16:22:05 UTC
Re: Treadmill motors as Servos
Leslie Newell
2006-11-10 17:07:06 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
kz1927
2006-11-10 18:05:50 UTC
Re: Treadmill motors as Servos
Terry Owens
2006-11-10 18:47:39 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
William Perun Sr
2006-11-11 02:55:11 UTC
Re: Treadmill motors as Servos
kz1927
2006-11-11 04:00:18 UTC
Re: Treadmill motors as Servos
Leslie Newell
2006-11-11 06:08:16 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Leslie Newell
2006-11-11 06:10:42 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Leslie Newell
2006-11-11 06:11:34 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Terry Owens
2006-11-11 09:31:42 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
John Hansford
2006-11-11 10:10:21 UTC
Re: Treadmill motors as Servos
John Hansford
2006-11-11 12:20:42 UTC
DC motor controller
Steve Blackmore
2006-11-11 13:59:21 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Wayne Weedon
2006-11-11 15:58:46 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
jesse Brennan
2006-11-11 16:04:47 UTC
Re: [CAD_CAM_EDM_DRO] DC motor controller
John Hansford
2006-11-11 17:40:57 UTC
Re: DC motor controller
jesse Brennan
2006-11-11 18:42:00 UTC
Re: [CAD_CAM_EDM_DRO] Re: DC motor controller
R Rogers
2006-11-11 19:08:56 UTC
Re: [CAD_CAM_EDM_DRO] Re: DC motor controller
turbulatordude
2006-11-11 20:57:28 UTC
Re: DC motor controller
John Hansford
2006-11-11 21:37:51 UTC
Re: DC motor controller
Mark Vaughan
2006-11-12 00:58:05 UTC
RE: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Leslie Newell
2006-11-12 01:26:18 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Leslie Newell
2006-11-12 01:28:19 UTC
Re: [CAD_CAM_EDM_DRO] Re: DC motor controller
Leslie Newell
2006-11-12 01:31:06 UTC
Re: [CAD_CAM_EDM_DRO] Re: DC motor controller
Leslie Newell
2006-11-12 01:54:10 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
John Hansford
2006-11-12 02:03:33 UTC
Re: DC motor controller
John Hansford
2006-11-12 02:18:06 UTC
Re: Treadmill motors as Servos
Mark Vaughan
2006-11-12 02:37:41 UTC
RE: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Mark Vaughan
2006-11-12 02:48:26 UTC
RE: [CAD_CAM_EDM_DRO] Re: DC motor controller
John Hansford
2006-11-12 03:46:31 UTC
Re: DC motor controller
turbulatordude
2006-11-12 05:22:39 UTC
Re: DC motor controller - CW ?
John Hansford
2006-11-12 06:07:22 UTC
Re: DC motor controller - CW ?
Mark Vaughan
2006-11-12 06:50:31 UTC
RE: [CAD_CAM_EDM_DRO] Re: DC motor controller
John Hansford
2006-11-12 07:28:40 UTC
Re: DC motor controller
turbulatordude
2006-11-12 07:44:02 UTC
Re: DC motor controller - spindle or step and direction ?
John Hansford
2006-11-12 08:08:09 UTC
Re: DC motor controller - spindle or step and direction ?
Leslie Newell
2006-11-12 09:06:39 UTC
Re: [CAD_CAM_EDM_DRO] Re: DC motor controller
Leslie Newell
2006-11-12 09:13:48 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Leslie Newell
2006-11-12 09:45:27 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
turbulatordude
2006-11-12 10:23:48 UTC
Re: DC motor controller - spindle or step and direction ?
turbulatordude
2006-11-12 11:04:56 UTC
Re: DC motor controller - servo errors
turbulatordude
2006-11-12 12:08:18 UTC
Re: DC motor controller - CW ?
Mark Vaughan
2006-11-12 12:15:48 UTC
RE: [CAD_CAM_EDM_DRO] Re: DC motor controller
Wayne Weedon
2006-11-12 16:07:53 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Mark Vaughan
2006-11-12 23:55:42 UTC
RE: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Steve Blackmore
2006-11-13 00:35:03 UTC
Re: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Mark Vaughan
2006-11-13 02:45:15 UTC
RE: [CAD_CAM_EDM_DRO] Re: Treadmill motors as Servos
Yujie Han
2006-11-13 07:45:21 UTC
motor and stage for Japan chuo seiki ms-c2 5-phase stepping motor 2-axis drive key/joy ms-k