CAD CAM EDM DRO - Yahoo Group Archive

RE: [CAD_CAM_EDM_DRO] DIY AC servodrive questions

Posted by leslie watts
on 2006-06-05 14:42:43 UTC
Anders,

Long ago when computers were slower and encoders therefore were coarser many
systems
offloaded the velocity loop to an analog tach with a feedback loop in the
amp. This gave
smoother response when the coarse encoder pulse rate got very slow.

There is little need to do that these days. Generally amps are set up as
voltage controlled
current sources, and the computer PID sends out torque commands. The D in
PID closes a velocity loop.
Particularly with feedforward such systems produce very low following error
with very high speed.

If you do have a velocity drive take care not to use much D in the computer
as that would
create a potentially unstable fourth order system.

Lots of info on this on the Galil website. You have to register to see it.

Les

Leslie M.Watts
L M Watts Furniture
Tiger Georgia
(706) 212-0242

Main page:
http://www.lmwatts.com
Engineering:
http://www.lmwatts.com/shop.html
Cnc surplus for sale:
http://www.lmwatts.com/forsale.html
Carved signs:
http://www.lmwatts.com/signwp.html


-----Original Message-----
From: CAD_CAM_EDM_DRO@yahoogroups.com
[mailto:CAD_CAM_EDM_DRO@yahoogroups.com]On Behalf Of Anders Wallin
Sent: Monday, June 05, 2006 4:58 PM
To: CAD_CAM_EDM_DRO@yahoogroups.com
Subject: [CAD_CAM_EDM_DRO] DIY AC servodrive questions



Hi Group,

I'm working on an AC servodrive to control Sanyo P5 brushless servos
(the ones from surpluscenter last fall).

So far the prototype spins the motor and commutation works almost
flawlessly, there is still some hissing and humming left when turning
the motor in one direction which I will have to iron out. There are two
pictures at:
http://electronics.physics.helsinki.fi/personal/awallin/pic1.jpg
and
http://electronics.physics.helsinki.fi/personal/awallin/pic2.jpg

differential encoder and hall signals come in at the left, get converted
to single ended signals, and are fed to the dsPIC30F3011 which controls
the whole thing. The dsPIC outputs six PWM wavefors (row of LEDs at
45deg) to the powerstage (right) which is an IRF IRAMS10UP60B.

The drive now runs in open-loop mode as far as speed goes, i.e. an
analog input controls the amplitude of the sinewaves.

I'm going to be controlling these servodrives with EMC2 using a Mesa
5i20 servo-card. So I feed EMC with the encoder signals, a postion PID
loop runs in realtime(1-10 kHz update time) on the PC, and a speed
command is fed out from the 5i20 to the servodrive.

Now for my question:
Is it going to be worthwile, in terms of overall performance of my servo
system, to close a current or speed PID loop in the servodrive ?

The current loop would look at two of the phase currents (big black
sense resistor at lower edge of powerstage card), compute the phase
currents from that, and increase/decrease voltage if neccessary. I now
have IR2175 chips on the powerstage card which could do this but the
implementation/debugging etc. is not going to be trivial.

The speed loop would look at the incoming speed command from the 5i20,
compare that to the actual speed measured with either the hall sensors
or the encoder, and increase/decrease torque (if there is a
current-loop) or voltage (if there is no current loop). This is also not
trivial since measuring speed over a wide range is tricky ( encoder
counts at 400kHz during max rpm and maybe 10 Hz during sloooow moves)

Seems to me that EMC should be able to close the position loop just fine
eventhough the servodrive does not guarantee the speed that is fed to
it. The position PID loop in EMC can run at a 10kHz update rate which
should be plenty fast. Any current loop or speed loop in the
microcontroller could not be made to run or update much faster than this
since the PWM period is 20 kHz.

Once again, what will be gained from having separate speed and current
PID loops in the servodrive - compared to letting the EMC position PID
loop worry about everything ?

Comments ?

--
Anders Wallin

PS. In due time, the schematics, pcb, and code will be available, probably
under GPL. What I have right now is hacked and improved version of
microchips AN1017:
http://ww1.microchip.com/downloads/en/AppNotes/01017A.pdf



Addresses:
FAQ: http://www.ktmarketing.com/faq.html
FILES: http://groups.yahoo.com/group/CAD_CAM_EDM_DRO/files/
Post Messages: CAD_CAM_EDM_DRO@yahoogroups.com

Subscribe: CAD_CAM_EDM_DRO-subscribe@yahoogroups.com
Unsubscribe: CAD_CAM_EDM_DRO-unsubscribe@yahoogroups.com
List owner: CAD_CAM_EDM_DRO-owner@yahoogroups.com, wanliker@...,
timg@...
Moderator: pentam@... indigo_red@... davemucha@...
[Moderators]
URL to this group: http://groups.yahoo.com/group/CAD_CAM_EDM_DRO

OFF Topic POSTS: General Machining
If you wish to post on unlimited OT subjects goto:
aol://5863:126/rec.crafts.metalworking or go thru Google.com to reach it if
you have trouble.
http://www.metalworking.com/news_servers.html

http://groups.yahoo.com/group/jobshophomeshop I consider this to be a
sister site to the CCED group, as many of the same members are there, for OT
subjects, that are not allowed on the CCED list.

NOTICE: ALL POSTINGS TO THIS GROUP BECOME PUBLIC DOMAIN BY POSTING THEM.
DON'T POST IF YOU CAN NOT ACCEPT THIS.....NO EXCEPTIONS........
bill
List Mom
List Owner


Yahoo! Groups Links

Discussion Thread

shadi_salhab_78 2006-06-04 12:08:07 UTC Tacho Generator To Incremental Encoder Anders Wallin 2006-06-05 13:57:57 UTC DIY AC servodrive questions leslie watts 2006-06-05 14:42:43 UTC RE: [CAD_CAM_EDM_DRO] DIY AC servodrive questions Anders Wallin 2006-06-05 15:32:40 UTC Re: [CAD_CAM_EDM_DRO] DIY AC servodrive questions leslie watts 2006-06-06 04:54:22 UTC RE: [CAD_CAM_EDM_DRO] DIY AC servodrive questions leslie watts 2006-06-06 05:48:02 UTC RE: [CAD_CAM_EDM_DRO] DIY AC servodrive questions Anders Wallin 2006-06-06 12:53:59 UTC Re: [CAD_CAM_EDM_DRO] DIY AC servodrive questions Anders Wallin 2006-06-11 12:46:18 UTC Re: [CAD_CAM_EDM_DRO] DIY AC servodrive Bob Muse 2006-06-11 14:03:25 UTC Re: [CAD_CAM_EDM_DRO] DIY AC servodrive David Bloomfield 2006-06-11 18:15:59 UTC Re: DIY AC servodrive