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 > Granite Devices


Granite Devices Discuss about servo & stepper drives made by Granevices and get direct support!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #49   Ban this user!
Old 04-16-2008, 11:28 AM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Jerry,

Responses look fairly good. However, you should use much smaller test travel so you can see small errors easier. Separated PID curves may help spotting a problem such as source of oscillation or overshoot, but there is no much more use for them.

You're right that legends are hard to read. This is a feature of Qwt library which is being used in plot window. We need to modify the library to make thicker lines.

Acceleration limit applies only in tuning/SPI mode and velocity limit works in all modes. Accel limit is disabled in step/dir to avoid double limiting because CNC software does limiting too.
Reply With Quote

  #50  
Old 04-16-2008, 12:24 PM
Moderator
 
Join Date: Sep 2005
Location: Canada
Posts: 1,613
JerryFlyGuy is on a distinguished road

Thanks Tero! I might try pushing that servo a bit more on the PID but... at this point I'm pretty happy in regards to how it runs. I'm running 750ipm max speed w/ a 13in/s/s accel in Mach3. 0-750ipm in well under 1 second.. Max following error is ~40-50 counts which equates to 0.0005" or so.. on shorter/slower [ie; normal cut speeds up to 400ipm] runs its down at ~10 counts..

Thanks for all of your excellent and patient help w/ getting me up to speed on tuning servos!!

Jerry
__________________
JerryFlyGuy
The more I know... the more I realize I don't
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
  #51   Ban this user!
Old 06-18-2008, 11:29 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi,
(Continuing discussion from this thread)

I've played some more with my setup and made plots of the commanded/achieved torque - they are attached as pictures to this post. It seems like it's outputting 12.5A although I asked for 15A but IIRC there's a bug in the presenation in GDTool, and I am getting 15A - correct?

I wonder where that nasty looking negative spike in plot number two comes from....

I have 14400 counts/rev, the multiplier setup for a total ratio of 14.4 (Multiplier 81, Divider 90, Filter 16). With the following error limit set to 7200 I can get to 2000rpm in around 0.5 seconds without faulting, lowering the limit to 3600 or loading the motor slightly makes the drive fault during acceleration.

I haven't plotted the HV voltage bus but the supply is a sturdy 4kVA 3-phase transformer, 3-phase bridge and two 15000uF caps in parallel, giving me around 130V DC.

Any hints, clues, pointers or ideas on what I could try to increase the performance is much appreciated.

/Henrik.

Oh, almost forgot.... If I read the settings from the drive or a file the step multiplier Filter setting resets to 1 even though it has been set to 16 (or whatever) when saving the settings (to drive and/or file).
Attached Thumbnails
Click image for larger version

Name:	1 - Torque response 15000mA.jpg‎
Views:	64
Size:	46.2 KB
ID:	61719   Click image for larger version

Name:	2 - Stepresponse achieved torque 1000 steps.jpg‎
Views:	70
Size:	45.2 KB
ID:	61720  
Reply With Quote

  #52   Ban this user!
Old 06-18-2008, 12:04 PM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Henrik,

How were these plots produced? I guess the first is torque step test and second a position mode step response. Am I correct?

When acceleration limit is set correctly, the torque command should not saturate badly in step test. If it saturates (like in the second picture) then it tries to accelerate faster than possible and position error grows as motor lags behind commanded position.

Drive seems to be following commanded torque fine, except in the second picture when output goes negative. You could plot also output voltage amplitude to see what torque controller is doing to get this torque. The error is not so bad, though. Spiky appearance of torque target is typical in position mode.

Current reaches 15A since it is actually 819 clicks per amp in the figure (scope signals are not properly scaled yet in current GDtool version). I think you have found a bug in filter setting loading. That should be fixed in the next version.
Reply With Quote

  #53   Ban this user!
Old 06-18-2008, 02:35 PM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi Tero,
Yes, first plot is torque step response (15000mA) and second one is position step response (1000 steps).

After reading your response I went out and played some more. I changed the settings in the Trajectory Planner so the effective velocity limit was ~2300rpm and effective acceleration limit was ~0.25s (roughly what you calculated). Now, I thought that the acceleration limit didn't have any effect when running S/D-mode but it now performs much much better.

Running Mach3, I'm reaching 2000rpm's in ~0.5 seconds and have been able to reduce the following error limit from 7200 to 1800 and I can hold a towel around the motor pulley, applying 'reasonable' pressure while doing back-and-forth moves without faulting on following error

However, sometimes it still faults out with the red and green blinking simultaneously indicating possible over current or other fault. I don't know how to simulate those conditions in GDTool in order to find out what the problem might be.... I'm using an unneccesary long encoder cable at the moment, can encoder signal problems cause this fault condition?

I'm attaching a Step-response plot of 2500 steps with the output voltage plotted as well. At first I thought it looked REALLY strange untill I realized the 16bit register must have overflowed....except from that it looks pretty good, I think.

Still a bit to go but feeling a lot better, thank you!

/Henrik.
Attached Thumbnails
Click image for larger version

Name:	Position step response 2500steps.JPG‎
Views:	69
Size:	107.7 KB
ID:	61729  
Reply With Quote

  #54   Ban this user!
Old 06-18-2008, 04:01 PM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Looks like you're on right track :-)

Acceleration limit is effective only in SPI/tuning mode in latest firmware. However, it is important to set realistic limit during tunig to get proper behavior and possibilize decent PID tuning. In step/dir the limiter deactivates since pulse source usually has a limiter.

The error could be caused by overvoltage or overcurrent. Ovecurrent would be caused by overshooting response of torque controller (some overshooting/instability is visible in your previous plots). Try adjusting torque PI a bit lower (especially I).
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
Servo drive / Servo Amplifier Ken_Shea Servo Motors and Drives 9 07-10-2007 05:12 PM
pic servo drive R.thayer PIC Programing / Design 1 02-22-2007 07:39 PM
Cutting documentation kalmah General Metalwork Discussion 1 02-05-2007 04:25 PM
Servo drive R.thayer General Electronics Discussion 2 01-27-2007 05:00 PM
CNC Documentation a must Al_The_Man General Metal Working Machines 4 10-08-2004 06:05 PM




All times are GMT -5. The time now is 06:18 AM.





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