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
  #13   Ban this user!
Old 01-16-2010, 06:08 AM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Hi Steve,

How does the GDtool on new computer exactly fail? One reason may be some other plugged-in USB device that uses the same FTDI usb chip that software can confuse to USB adapter. So, if GDtool fails at very beginning when connecting, try unplugging other USB devices (except mouse & keyb) on the new computer.

You may also try the latest FTDI driver from chip manufacturer:
http://ftdichip.com/Drivers/CDM/CDM%...0Certified.zip
Reply With Quote

  #14   Ban this user!
Old 01-16-2010, 02:23 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

The failure happens when I go through the connection process. I follow the instructions and when I apply power to the drive, and press the Next button, a popup message that says:

"Connection failed - Error - Connection failed. Please check connections."

There isn't anything interesting in the event log, but I could attach that if you thought it might help.

I did unplug my other USB device (Netgear WG111v2) and actually uninstalled all the drivers and utilities for it. Then I reinstalled the GDTool USB driver. Same result. Mouse and keyboard are non-USB. So, the only attached USB device is the cable to the VSD-E.

I will go ahead and install the latest FTDI driver. My machine is now at XP SP3, with all the updates installed, and that didn't help either.

I am beginning to think it must be this particular PC's hardware (IBM ThinkCentre S50-8183). The parallel port had some issues in the past, so it's possible that the USB could be a bit funky. I can use my old machine for the time being, and ultimately the drives will be connected to my "production" machine, which is a Dell. This is just a testing setup.

Any other thoughts or ideas would be appreciated. Thanks,

Steve
Reply With Quote

  #15   Ban this user!
Old 01-16-2010, 07:20 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

I have a workaround. If I unplug my parallel port cable from the VSDE-PI, then I can connect to the VSD-E drive with the USB cable.

As I suspected, it's nothing to do with USB, GDTool, etc. It has something to do with the parallel port on that machine - which I know has issues. There were several pins where the voltages were inconsistent. It never affected step/direction, so I felt like it would still be ok for testing.

I haven't had time to really diagnose it and understand what is going on, but at least I can connect and configure the drives from the new machine.

Thanks for the pointers.

Steve
Reply With Quote

Sponsored Links
  #16   Ban this user!
Old 01-18-2010, 01:43 PM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Steve,

Yes, the CMD flat cable should be unplugged from drive when using GDtool. The CMD cable will disturb the connection as some pins are shared between drive's SPI and CMD connectors.
Reply With Quote

  #17   Ban this user!
Old 01-20-2010, 11:09 AM
 
Join Date: Feb 2008
Location: Finland
Posts: 57
ftec is on a distinguished road

I had a lot of problems with the BL150, i.e. the smaller one of the GD servo motors with VSD-A drive, while the BL300 servos work nicely. Apart what Xerxes says in his reply #7, I found out how to avoid the "Connection failed - Error in my machine with the small motor.

In the HV circuit I have a main contactor which must be closed to power the motors. When I turn the power on, all drives first get the logic voltage and only after the contactor is closed from a separate switch the drives will get the HV. GDtool always connects to drives without problem if the HV circuit is open and only logic voltage is present.

Then, if the current values in the Motor Setting or PID values are too high or wrong in some other way, the connection will instanly fail when HV is applied. Starting with low current and PID values helped with this machine. So, if connection fails you could first try with logic voltage only.

One other thing (not directly related to this topic but good to be aware of anyway) is the Acceleration Limit in Trajectory Planner. One so easily wants to set the Acceleration-Time-to-Full-Speed value to a low value and this, with heavy loads, can lead to over current faults.

For a heavy CNC machine - which are so different from light and fast moving pick and place robots - this value can be set to meet the acceleration needed for machining. Acceleration value of appr 500 mm/s/s (~20i/s/s) is what is recommend by some end mill manufacturers, say, like precisebits.com. This same value was used in a "ship size" metalworking CNC machine to size all the motors and gears- i.e. a generally accepted value. I have set the Acceleration Time to 0.3s which gives me appr 555 mm/s/s leaving a little reserve for the 500 mm/s/s I have in Mach for acceleration for all axes. With this value even the X axis with a heavy load works nicely.
Reply With Quote

  #18   Ban this user!
Old 01-20-2010, 01:32 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

I guess I'm still a little confused (no surprise there).

The VSDEPI config file has User I/O "Disable In" as Analog 2, inverted, non-filtered.
The cooresponding Mach setting has pin 14 as Enable1, Active High.

So, it seems the drive will connect to GDTool with the ribbon cable detached, but the drive is not enabled (blue led flashing) and doesn't respond to movement commands (the test doesn't do anything) without the signal present on pin 14, and passed through to the drive.

If I unplug the ribbon cable, I have to then manually set "Disable In" to non-inverted (no signal present = drive enabled) and refresh the drive. The blue led goes to solid and then I can run my test and perform tuning.

I guess I could leave my setting alone and supply TTL +VDC to the correct pin on the VSD-E 16 pin connector.

What are people doing when they need to switch between Mach and GDTool? Changing software settings (drive) or faking the enable signal? Does this make sense?

Steve

Last edited by stevespo; 01-20-2010 at 02:17 PM. Reason: typo
Reply With Quote

  #19   Ban this user!
Old 01-20-2010, 03:56 PM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Ftec, that communication problem is related to electrical interference typically escaped from motor power cable and/or motor case. Cable should be shielded and grounded to drive GND and motor frame should be grounded too (via cable shield). This usually prevents the errors. Some people also have wrapped USB cable thru ferrite core to workaround in difficult cases.

Steve, that is normal behavior. Drive will disable for safety reasons if CMD cable is unplugged. You can workaround this just the way you're doing from GDtool or you can insert a jumper between CMD connector pins 14 and 16 which will enable it.
Reply With Quote

  #20   Ban this user!
Old 01-20-2010, 04:19 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

Xerxes, thanks so much. The jumper worked perfectly.

I'm in the process of mounting everything in a box (PC mATX case) and just wanted to understand how to go about configuring things so that I can do my motor tuning when everything is finally installed. I think I have a handle on it.

It sure would be nice if GDTool could enable the drive without having to install the jumper. It might be easier to do it via the GUI and save trying to get into that tight space.

This is a really nice product. So far, I'm very impressed with the hardware, docs, software, support - everything.

Thanks,

Steve
Reply With Quote

Sponsored Links
  #21   Ban this user!
Old 01-20-2010, 11:36 PM
 
Join Date: Feb 2008
Location: Finland
Posts: 57
ftec is on a distinguished road

Originally Posted by Xerxes View Post
Ftec, that communication problem is related to electrical interference typically escaped from motor power cable and/or motor case. Cable should be shielded and grounded to drive GND and motor frame should be grounded too (via cable shield). This usually prevents the errors. Some people also have wrapped USB cable thru ferrite core to workaround in difficult cases.
All cables are well shielded high quality cables and shields connected to drive GND as well as the motor case. Attention has been paid to minimize interference. The communications error only happened with the small motor type and with high current /PID values in it's setup. It's not a problem at the time being, I managed with the setup the way I described and the motor has been working since.
Reply With Quote

  #22   Ban this user!
Old 01-25-2010, 01:35 PM
 
Join Date: Jan 2006
Location: USA
Posts: 1,764
keebler303 is on a distinguished road

Few Comments:

Some newer USB ports (esp. laptops) have less than 5V supply, which means that the ftdi device may not be able to drive the optocoupler hard enough to provide reliable communication. To be sure this is not the issue, a powered USB hub can be used.

When the drive first turns on, if there are a few encoder counts of error, the high gain of the controller might cause a brief pulse of power to correct the error. This would look like a step error input to the drive, which would command a step current response. A sharp voltage or current pulse will tend to introduce electrical noise. Maybe a sort of "soft start" feature would be nice here to avoid the jolt when the drive is first turned on, similar to the soft error recovery which I think already exists. This is pure speculation by me but I would think that applying the HV and then enabling the drive would be much better than applying HV while the drive is already enabled, if that is even possible.

Matt
Reply With Quote

  #23   Ban this user!
Old 01-25-2010, 02:57 PM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

VSD optocouplers are 3.3V compatible, so USB voltage will be always enough.

Also haven't seen connection break on current peaks in motor output. Instead a mechanical switch contacting/arcing can introduce additional clock pulse to SPI bus wires which causes an error in connection. Most connection error problems are caused by a interference spike in the SPI clock signal.

I found out that optoisolator makes a huge difference in noise sensitivity. In VSD-A the original socketed HCPL-2531 optocoupler can be replaced by HCPL-2631 to improve noise tolerance (also a 1-1.5 kOhm opto pull-up resistor may be needed because the original is 10k in VSD-A). We started using that opto in VSD-E-160 and the connection errors have been almost inexistent since then.
Reply With Quote

  #24   Ban this user!
Old 01-26-2010, 07:49 PM
 
Join Date: Feb 2008
Location: Finland
Posts: 57
ftec is on a distinguished road

Originally Posted by Xerxes View Post
...
Also haven't seen connection break on current peaks in motor output. Instead a mechanical switch contacting/arcing can introduce additional clock pulse to SPI bus wires which causes an error in connection. Most connection error problems are caused by a interference spike in the SPI clock signal.
...
In our case the contactor is more than 30cm away from the VSDs and the SPI wire even further away from it so I doubt that was the case in this cabinet/machine. Besides, it does not explain why only the small size motors were problematic. But as I said this has been overcome.

For Matt: I haven't noticed any jolts with the VSD-As, IMO they seem to start quite softly. I don't know exactly how VSD initiates the motors but seems as if the rotor is first aligned with the smaller programmable current? When step pulses are applied the rotation then starts from this initial position?
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
trouble with configure and testing R990H servo drive visky Rutex Products 1 11-01-2007 07:40 PM
How to configure.../ anything simplier? venomx999 TurboCNC 4 07-30-2007 06:59 AM
configure run button xtihc Mach Software (ArtSoft software) 1 05-25-2006 04:57 PM
Mach3 configure question? dmgdesigns Mach Mill 2 11-14-2005 01:57 PM
configure axis with different advances dfv Mach Software (ArtSoft software) 2 07-06-2005 05:20 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