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 > Viper Servo drives



This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-25-2007, 11:03 AM
 
Join Date: Sep 2004
Location: USA
Posts: 141
Blog Entries: 3
sbalder is on a distinguished road
Thumbs up Viper 200 Initial Impressions and Experiences

My Viper 200 Servo Drivers arrived the other day and I have had the chance to work with them over the past 2 evenings. I thought I would post some of my experiences and I encourage others to do the same.

These will be for a Milltronics Partner mill that I am restoring. I am using the original DC brushed servos, made by SEM, rated 4000RPM at 140Volts and 11 Amps. One motor had a bad encoder, so I have replaced all encoders with 300-line units from US Digital. I have worked with several stepper systems before, but this is my first experience with servos and I am learning as I go.

I started by making a power supply and the necessary cables. Larken included all of the mating connectors for the board to make it easier (although I do wish they had included enough jumpers for setting all parameters on the board- c'mon they are like a penny a piece!) Salvaging transformers, caps, and a rectifier from the Milltronics hulk I built a power supply that runs on 120V and outputs a clean 86Vdc. This should give me about 2500 RPM or 250IPM as the mill is currently geared- well more than enough speed.

The instructions are adequate, but not exceptional. I'd suggest a few changes:
+Adding to the "connections" photo explanations of all the lights
+Better details on configuring the pc terminal program (including a screenshot)
+A true step-by-step set of setup instructions (or even an online video!)
+Clearer instructions on how to wire encoders with only one wire per channel

My testing: I hooked everything up, testing the low voltage control stuff first. The pc interface using a serial terminal works well and provides nice clear information. The default values in the drive were set way too high, causing an oscillation (I=6). I hooked a function generator up along with some switches to provide manual step and direction for testing. Upon first startup the motor shook violently, and I reversed motor connections per the manual to correct the condition.

I fumbled blindly through my settings, not knowing what is "normal". I wound up with P=700, I=1, and D=1400. This gave a strong motor hold at stop, a crisp stop from 500RPM, and no unwanted oscillation or humming. I've looked at current/response curves on different websites, but was unable to get my oscilloscope to pick up a clean trace. I'd like a slightly more scientific way to test my settings other than "that looks about right". A test point that I could hook my scope to, like in the Gecko drives, would be nice.

All in all, a nice product so far. I'll post more as I get more experience.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 05-26-2007, 10:58 AM
 
Join Date: Feb 2007
Location: canada
Posts: 559
Larken is on a distinguished road

Wow, it didn't take long for you to get it running. I just mailed them last friday.
Have you got the mill moving with mach 3 yet?

Don't forget to connect the fault output back the the Estop, so it stops your machine if you overload it.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 05-26-2007, 11:13 AM
 
Join Date: Sep 2004
Location: USA
Posts: 141
Blog Entries: 3
sbalder is on a distinguished road

Like I said, they were easy to setup so it really didn't take long to get them running on the bench. The mill itself is still in pieces completing the restoration so maybe another week or so. As for software I am sticking with TurboCNC for a couple of reasons.

Do my PID settings seem reasonable or are they too high? Also, is there a way to test or tune these setting that is better than "feel"? I tried to hook up a scope to measure current where it would do a single sweep when the direction is changed, but mine requires the external trigger to be on the same ground path so I couldn't make it work.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 05-26-2007, 12:50 PM
 
Join Date: Feb 2007
Location: canada
Posts: 559
Larken is on a distinguished road

Do my PID settings seem reasonable or are they too high? Also, is there a way to test or tune these setting that is better than "feel"?
No, they seem about right. Did you change the L (looptime) parameter. This is the one that adjusts to the motors responce time.

I hope to have a software tuning program that displays error vs time soon.

What diameter are those motors ? size 42 or bigger ? I was looking to buy one of those mills for my shop years ago, but bought a Leadwell V40 instead.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 05-27-2007, 08:09 AM
 
Join Date: Sep 2004
Location: USA
Posts: 141
Blog Entries: 3
sbalder is on a distinguished road

These servos are Nema 42, I believe. I moved the loop timing up to 5 and found 0 to be the best "I" factor.

Being a novice to servos I didn't think about using the servo error reading for tuning. I wrote a simple VBA application in an Excel workbook that reads the servo error 1000 times. While it is running I switch on the pulse generator (to start the motor spinning) and flip the direction a few times. Then it is simply a matter of plotting the direction change. Based on this I increased my Derivative 100 points and got what I hope is a nice pattern:



The servo error hovers around 70 while running. For fun and education I put in some deliberately bad parameters just to see what it would look like. Here's a P of 100 and a D of 200:





The curves look about the same, but the error hovers around 500!
Then I set a moderate P (400) and a very low D (100). Here you can the servo underdamped as it oscillates back and forth during a reverse:








Anyone who wants this spreadsheet please send me a PM.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-27-2007, 04:54 PM
 
Join Date: Feb 2007
Location: canada
Posts: 559
Larken is on a distinguished road

So, your reading the error over the serial port? How many times a second? Does it do the HEx to decimal conversion ?
Are you getting a good comunication with low error rate. I program mostly in Delphi for the PC, but i don't have a good serial interface routine.

I am going to add a FeedForward setting soon to reduce running error. Without a Feed forward, a step/servo will produce a error proportional to speed.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 05-27-2007, 07:29 PM
 
Join Date: Sep 2004
Location: USA
Posts: 141
Blog Entries: 3
sbalder is on a distinguished road

I am reading the error through the serial port. I moved the application to Visual Basic 6 so I could add time measurements and got an average of 47 milliseconds per reading with a standard deviation of 6 milliseconds. This is about 5 readings per second slower than just in the VBA Excel worksheet, so I am inclined to keep it the worksheet where I can get a solid 25 readings per second. This is not stunning resolution, but I think it is adequate for tuning purposes.

The program reads the returned text string, and parses it into the Excel workbook. Then I use the Hex2DEC worksheet function to convert the output into decimal. I'm most comfortable with graphing in Minitab, but obviously once this data is in Excel you can use Excel's graphing functions to make the same kind of charts.

As for the serial interface, I'm kind of a newbie at that kind of programming. I came across an ActiveX freeware control that is similar to Microsoft's non-free comm control called NetComm. Anyone using my application would have to have to download and install this control here:

http://home.comcast.net/~hardandsoftware/NETCommOCX.htm


I put the Excel workbook application here:

http://www.geocities.com/eba1972/ViperServoAnalyzer.xls
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 06-28-2007, 08:25 PM
DennisCNC's Avatar  
Join Date: Aug 2005
Location: Clearwater, FL US
Age: 29
Posts: 816
DennisCNC is on a distinguished road

How is this project going?
__________________
Dennis
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 06-29-2007, 08:38 AM
 
Join Date: Sep 2004
Location: USA
Posts: 141
Blog Entries: 3
sbalder is on a distinguished road

I have had to put more work into the basic machine than I thought I would, taking nearly everything down to the castings for cleaning and refinishing. If this thing was any filthier the Discovery Channel would be featuring me on Dirty Jobs!

I'll have the basic machine assembled by the end of the weekend, all repainted and with servos, sensors, and lubrication installed. Then I can finish fabricating and installing the electronics!
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 11-02-2007, 08:51 AM
 
Join Date: Sep 2004
Location: USA
Posts: 141
Blog Entries: 3
sbalder is on a distinguished road

Wow how my life is passing me by so fast! I can't believe it was 6-29 when I last posted on this. I got diverted on several other projects and the work on the Milltronics mill took more effort than I thought. Anyway last night I finally finished the mill and got everything working! The Viper servo drives have performed well in initial tests, but the Y-axis was "jumpy" and weak at low jog speed only. Hooking the serial cable up I was able to adjust the parameters (mostly lowering the derivative) and got all 3 axes running.

This weekend I'll finish fine tuning and cut some test parts. I'll post a few pictures of the final setup.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-04-2007, 09:56 PM
 
Join Date: Sep 2004
Location: USA
Posts: 141
Blog Entries: 3
sbalder is on a distinguished road
Smile

I got to work this weekend and tied up all the little loose ends on the mill project, such as calibrating each axis and cleaning up the horrible mess I have made in my shop! Anyway here are a few pictures of the completed mill/electronics setup.
Attached Thumbnails
Click image for larger version

Name:	Mvc-001f.jpg‎
Views:	434
Size:	132.9 KB
ID:	46343   Click image for larger version

Name:	Mvc-003f.jpg‎
Views:	411
Size:	132.5 KB
ID:	46344   Click image for larger version

Name:	Mvc-005f.jpg‎
Views:	494
Size:	124.8 KB
ID:	46345   Click image for larger version

Name:	Mvc-006f.jpg‎
Views:	447
Size:	126.2 KB
ID:	46346  

Click image for larger version

Name:	Mvc-007f.jpg‎
Views:	1524
Size:	126.1 KB
ID:	46347  
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 11-05-2007, 04:43 PM
 
Join Date: Mar 2003
Location: USA
Posts: 93
routerman is on a distinguished road

Nice job, looks clean. What program is that running ?
Tweet this Post!Share on Facebook
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
Haas GT 20 First impressions Geof Haas Mills 15 05-31-2010 12:20 PM
Viper lathes Rune General Metal Working Machines 4 08-27-2007 03:45 PM
First Impressions JPATTE09 Industrial Hobbies (Support forum) 5 05-01-2007 03:33 PM
EMC2 First impressions davidmb LinuxCNC (formerly EMC2) 2 04-09-2007 11:29 PM
First Impressions for CNC mini mill conversion CNCadmin General Metal Working Machines 4 11-16-2004 09:37 PM




All times are GMT -5. The time now is 01:38 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