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
  #1   Ban this user!
Old 05-04-2010, 06:01 AM
 
Join Date: Jun 2009
Location: Finland
Posts: 3
Esa Hippolin is on a distinguished road
VSD-A + emc2 + pluto-servo

Hello!

First, a BIG thanks for Tero for creating amazing cost-quality ratio!

It's been slow and sometimes even slower with this project, but now there seems to be some light at the end of the tunnel. I've been working to get pluto_p to work with VSD-A drives (bought these way too early, I would like to use the E-series... .

I now have one axis communicating well from the PC to the drives. My problem was for a long time, that I tried to make the pluto_p as a part of the servo drive box, but the card doesn't want to communicate unless it's directly connected to the PC.

The solution was to make a small BOB directly to the pluto_p. The ribbon cable from the BOB to the D25 cable also relieves the weight of the cable from the pluto_p. Now it lays on the table nicely. I also made a couple of modifications to the pluto_p itself, but they might not be necessary.

The other PCB is an optoisolator card with some logic for e-stop, limit switches and VSD error signals.

The design is based on the VSD-A Breakout board rev 2, so not all that much done from the scratch.

Intended features:
- 3 axis and spindle PWM control
- enable signal to drives
- enable signal to spindle
- one limit signal for all maximums
- e-stop signal
- drive error signal stops the machine
- Z signal is not used from the encoders

I still have a lot to do. PID have not been fine tuned to any axis. The .hal and .ini files are not final yet. I also haven't soldered the opto board completely and I have only tested one axis the limit switch signal. For the one axis, quadrature signals, PWM, and drive enable signal works well, so I'm assuming they should work for all axis.

This project should be quite easy to convert for the E series. Basically changing the cables connecting to the opto board should do the trick.

Please note that I used a male D25-PCB connector in the opto board because I already had made the front panel to have a gender changer attached to it. If you want to use a female connector, make changes to the design accordingly.
Attached Thumbnails
Click image for larger version

Name:	DSC01441.JPG‎
Views:	130
Size:	61.1 KB
ID:	106416   Click image for larger version

Name:	DSC01442.JPG‎
Views:	144
Size:	55.0 KB
ID:	106417   Click image for larger version

Name:	DSC01444.JPG‎
Views:	143
Size:	63.4 KB
ID:	106418  
Attached Files
File Type: zip pluto_p VSD-A interface.zip‎ (72.9 KB, 91 views)
Reply With Quote

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

Thank you for sharing your experiences and files, Esa! I hope these are useful for many people and also you get your new machine flying chips soon :-)

BTW, is there EMC experts who could tell whether RS232/422/485 can be controlled in real time manner from EMC? I'm interested of that because it seems that it would be possible to implement multidrop RS485 on VSD-E with tiny add-on card and firmware modification.
Reply With Quote

  #3   Ban this user!
Old 05-21-2010, 11:19 PM
 
Join Date: Mar 2008
Location: Australia
Posts: 55
evo4wrx is on a distinguished road

As long as you use a real time kernel and then compile on top of that you could communicate RT just fine.

Telco industry use real time linux kernels all the time with sound DSP equipment for timing control of voice over carrier networks.
Reply With Quote

  #4   Ban this user!
Old 07-09-2010, 09:26 AM
 
Join Date: Jun 2009
Location: Finland
Posts: 3
Esa Hippolin is on a distinguished road
Some progress finally

Hello!

I now have managed to get all axis working with decent accuracy (I might fine tune them more later on). I'm using 20mm pitch ballscrews for X and Y axis and at full speed (3000rpm) the movement is too scary to use... . So, as a learning experience I found out that 12000mm/min is quite enough for a small desktop hobby-scale machine. Maybe in the future I'll change the screws to 4mm pitch for better precision and torque.

About the electronics:
I had to change the pluto interface so that the VSD-fault signal uses a dedicated input. When it was ANDed with the e-stop the machine-on would not reset the VSD-drives' fault state and the whole thing had to be rebooted (not including the computer). So I made the needed changes to the PCB and schematics, but hacked the changes to the existing boards for the convenience. I'm assuming that the new version works ok .

I'll post the edited files when I have the EMC2 configuration working properly.

At this point I have tested all axis which seem to move rather nicely. Also the spindle signals work as they should (spindle-enable and PWM (which still needs fine tuning)). However, I'm experiencing heavy interference from the other drives and thus I cannot use more than one drive at a time, which sucks... . Also my table on which the machine rests is too shaggy and has to be reinforced .

Anyway, there is now light at the end of the tunnel and I'm getting exited of actually finishing this project after way too much time.

I'm quite pleased with the pluto-p board for it's low cost and good performance. I used only about the minimum IO signals for the machine and there's plenty of them left for other signals if needed.

I'm currently working on the axis pyvcp interface to have a spindle speed monitor and speed control. If you have experience with that one I wouldn't mind getting some help with it .
Reply With Quote

  #5   Ban this user!
Old 07-13-2010, 01:12 PM
 
Join Date: Jun 2009
Location: Finland
Posts: 3
Esa Hippolin is on a distinguished road
Looking good!

Hi!

I'm now rather satisfied with the machine.

I managed to get the UI almost like I planned. I set pyVCP panel for spindle speed monitoring and controlling. Please see the attached .png. The topmost monitors the spindle speed in rpm through lowpass. The G-Code/pyVCP radiobutton selects (via MUX) the source for the spindle speed. When G-Code is selected the S command controls the speed (motion.spindle-speed-out), otherwise spindle speed is controlled by the pyvcp scale element with 500rpm intervals. The UI also displays the set (gcode S) spindle speed so that you know what to expect if you accidentally select that.

Since there doesn't seem to be any reasonable way of putting the pyvcp scale element value to spindle speed and to have the option for controlling the spindle speed from g-code, I set up three buttons. ON and OFF send M3 and M5 respectively. S5000 send exactly that. If there's no spindle speed defined the M3 won't start the spindle so I made an extra button to click if I just want to turn the spindle on without controlling it directly from the g-code.

In the zip there are Eagle files for pluto BOB, VSD-A quadrature signals, and the opto board. As I mentioned in my previous message, I didn't actually made these revisions, I simply hacked the functionality to the previous boards and they seem to work ok. If you make then, please tell me if they also work properly .

The quadrature board should work so that changing the 4-pin connector to the other pins would change the motor direction in emc2. Didn't test that one either. The difference in the two rows is that other gives A, other -A. B is the same for both. This should change the motor direction according to some page I found.

So it seems that the software is set up and the pluto communicates correctly to each axis and the spindle. My next step is to change the motor cables into shielded ones and also change the internal wiring for better EMI protection.

Over and out.
Attached Thumbnails
Click image for larger version

Name:	VSD-UI.png‎
Views:	108
Size:	64.7 KB
ID:	110855  
Attached Files
File Type: zip VSD-pluto-servo.zip‎ (139.3 KB, 70 views)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-15-2010, 04:58 PM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Really nice to read about all the details!

I hope you could some day show us a video :-) No hurry though.
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
EMC2 - Pluto P (or Mesa 5120) - HBridge - DC Brush Servo DNB LinuxCNC (formerly EMC2) 20 11-08-2007 01:53 AM
EMC2 -- Pluto Servo -- Need Help TZak LinuxCNC (formerly EMC2) 4 03-02-2007 01:54 PM




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