CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > Gecko Drives


Gecko Drives Discuss all Gecko drives here and get direct support!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-10-2007, 11:19 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road
Gecko PID step motor servo

Please see PID_servo.gif and G320_PID_servo.gif for the results.

This is it. A step motor running as a PID servo and doing a darn good job of it too.

The PID_servo.gif yellow trace is the position error summing node. That is the difference between the command location and the motor's actual location. The scale is 14 degrees per volt, center line equals zero position error. The motor is commanded to turn 600RPM and the direction is reversed every 100mS.

The stepper servomotor develops a peak 15 degree following error on the direction change, overshoots by 2 degrees before settling to zero error in 28 mS. All this before I've even tried adjusting the PID coefficients.

For comparison, I added a G320_PID_servo.gif to contrast a DC servomotor under the identical conditions. The scale 9.2 degrees per volt, centerline equals zero position error. The DC servo develops a peak following error of 23 degrees, overshoots by 1.8 degrees before settling to a 1 degree following error in 45 mS. The following error is eventually taken up by the integral term but not in the 100 mS before direction changes again.

The step motor servo trace looks much better (even before PID optimization) by comparison. As a servomotor, the stepper accelerated more quickly and settled far more rapidly to zero error than the DC servomotor. This is exciting.

The servo control algorithms were developed in assembly language on a Rabbit RCM3720 and it is what's running the step servo in real time. These algorithms will be translated in VHDL and will go into a CPLD. This will bring a large increase in performance because execution will not be limited by the constraints imposed by a sequential machine like a microprocessor.

The final PID step motor servo control algorithm is unlike anything I had ever imagined at the beginning of this project. It is also unlike any other servo control algorithm I've ever dealt with before. I simply followed what the motor needed and this is the result.

The step motor is an MCG IH23014 3A/phase NEMA-23 run at 24VDC, the DC servomotor is an DGM D860-30B7 NEMA-34 24VDC rated 60W servomotor. Both motors are roughly comparable in power output at 24VDC.



Mariss
Attached Thumbnails
Click image for larger version

Name:	PID_servo.gif‎
Views:	403
Size:	10.8 KB
ID:	43418   Click image for larger version

Name:	G320_PID_servo.gif‎
Views:	371
Size:	11.2 KB
ID:	43419  

Last edited by Mariss Freimanis; 09-10-2007 at 11:35 PM.
Reply With Quote

  #2   Ban this user!
Old 09-11-2007, 06:28 PM
 
Join Date: Mar 2005
Location: ENGLAND
Age: 47
Posts: 1,655
Oldmanandhistoy is on a distinguished road

Mariss,

I won’t pretend to understand most of that but note your excitement and satisfaction. I would just like to wish you luck with further developments and hope they aren’t too expensive so I can buy some.

Regards,
John
Reply With Quote

  #3  
Old 09-11-2007, 08:11 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Then this should get you excited too. It probably won't cost much more than a G203V.

Mariss
Reply With Quote

  #4  
Old 09-11-2007, 08:21 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,453
ger21 is on a distinguished road
Buy me a Beer?

Mariss, will this just be a standalone stepper drive, or will the G100 be required?
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #5  
Old 09-11-2007, 08:46 PM
*Registered*
 
Join Date: Apr 2004
Location: USA
Posts: 63
Rube is on a distinguished road

Originally Posted by Mariss Freimanis View Post
Then this should get you excited too. It probably won't cost much more than a G203V.

Mariss
OK...even though I just bought a set (3 each) of G203V and G320's...now I want some of these And silly me thought this hobby would be cheaper than my other ones...HAHAHAHAHAHA.
Reply With Quote

Sponsored Links
  #6  
Old 09-11-2007, 08:58 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

It will be stand-alone servodrive. It will make your motors two to three times as powerful compared to open-loop step motor drives. It also will have a % of available torque being used signal. This will go back to the G100 to signal it to decrease the command velocity when torque load nears 100%. That combination will make up the "unstallable step motor" project.

Mariss
Reply With Quote

  #7   Ban this user!
Old 09-11-2007, 09:00 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Congratulations!!

I have been thinking for a while about doing something similar with an inner PI torque loop (error signal = phase difference between rotor position and coil current) acting upon the peak current reference voltage, and an outer velocity PID loop (error signal = desired position vs current position), using a high ppr quadrature encoder.

As usual, you are almost finished while I am still sitting on the starting line...

Regards,

Kreutz.
Reply With Quote

  #8   Ban this user!
Old 09-11-2007, 10:51 PM
 
Join Date: Jun 2003
Posts: 1,984
turmite is on a distinguished road

Originally Posted by Mariss Freimanis View Post
It will be stand-alone servodrive. It will make your motors two to three times as powerful compared to open-loop step motor drives. It also will have a % of available torque being used signal. This will go back to the G100 to signal it to decrease the command velocity when torque load nears 100%. That combination will make up the "unstallable step motor" project.

Mariss

Estimated time of release?

Mike
__________________
No greater love can a man have than this, that he give his life for a friend.
Reply With Quote

  #9  
Old 09-12-2007, 11:42 AM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Kreutz,

Your comment is especially appreciated since it comes from a peer. I have been at this for 3 years, 2 of which were wasted chasing a method I ultimately concluded could never work.

I cannot go into how it works because we are applying for a patent. The method is an unusual mix of analog and digital circuitry. Release of a commercial product is at least 6 months away, governed by refining the method and securing legal protections for it.

Mariss
Reply With Quote

  #10   Ban this user!
Old 09-12-2007, 01:20 PM
 
Join Date: Jul 2007
Location: Finland
Posts: 10
jahonen is on a distinguished road

Kreuz,

I have been thinking about using a field oriented (vector)control method which I believe should do the job. That however requires a DSC, but that is not a problem nowadays. For example dsPIC30/33F, TI TMS320F28xx or Freescale 5683xx-series MSC would be a good choice.

The basic idea (at least how I understand it, and I'm not a motor drive expert) is to measure the motor phase currents using a simultaneous sampling ADC of the MSC and then do a a,b->d,q-transformation (we'll rotate the current phasor so that PID controllers see DC-values) to control q (quadrature, torque producing) and d (direct, field producing) components (which is set to zero). The angle required to do this transformation comes from the encoder attached to the rotor. PID-controller outputs (voltage phasor) is then inversely transformed to a rotating a,b-frame and so on. This regulation loop is best performed at each PWM period. The torque reference comes from the velocity error loop output, which in turn is controlled by the position error loop. This way, since the voltage phasor always tracks the rotor angle, we should not loose any steps, since the voltage phasor never looses sync with the rotor as long the encoder keeps track of the actual position.

Regards,
Janne
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-12-2007, 03:34 PM
bunalmis's Avatar  
Join Date: Jul 2003
Location: Turkey
Posts: 246
bunalmis is on a distinguished road

@jahonen

Yes, Field oriented control best method for electric machine.

8 wire stepper may good choice for sensorless closed loop applications.
2 half phase coil for excitier, other 2 half coil for positions feadback.

This is only idea.
Reply With Quote

  #12   Ban this user!
Old 09-12-2007, 05:14 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Originally Posted by jahonen View Post
Kreuz,

I have been thinking about using a field oriented (vector)control method which I believe should do the job. That however requires a DSC, but that is not a problem nowadays. For example dsPIC30/33F, TI TMS320F28xx or Freescale 5683xx-series MSC would be a good choice.

The basic idea (at least how I understand it, and I'm not a motor drive expert) is to measure the motor phase currents using a simultaneous sampling ADC of the MSC and then do a a,b->d,q-transformation (we'll rotate the current phasor so that PID controllers see DC-values) to control q (quadrature, torque producing) and d (direct, field producing) components (which is set to zero). The angle required to do this transformation comes from the encoder attached to the rotor. PID-controller outputs (voltage phasor) is then inversely transformed to a rotating a,b-frame and so on. This regulation loop is best performed at each PWM period. The torque reference comes from the velocity error loop output, which in turn is controlled by the position error loop. This way, since the voltage phasor always tracks the rotor angle, we should not loose any steps, since the voltage phasor never looses sync with the rotor as long the encoder keeps track of the actual position.

Regards,
Janne
Yes, Field Oriented control is probably a good way to get it, DSPs are recommended to do the transformations on the fly, otherwise you will need big tables and lots of RAM, Although there is a lot of recent noise about going sensorless, I think that a sensorless approach is adequate for speed control, but still consider that positioning applications require a high resolution encoder for feedback.

Regards,

Kreutz.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Equivalent servo system of step motor bunalmis Servo Motors and Drives 4 11-22-2006 05:33 PM
Gecko 6202 Wont step Please help foocat Gecko Drives 7 05-26-2006 11:07 PM
Servo motor, step/dir driver and Mach. Darc Mach Mill 0 04-11-2006 12:23 AM
Units Per Step For Servo bgolash Mach Software (ArtSoft software) 1 02-14-2006 01:46 PM
Xylotex or Gecko step driver for my Mill/Drill? pfeist General Electronics Discussion 10 07-20-2004 01:42 AM




All times are GMT -5. The time now is 05:43 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361