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 > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-12-2004, 10:49 AM
 
Join Date: Oct 2003
Location: Sweden
Age: 34
Posts: 398
arvidb is on a distinguished road
Designing a controller card

I posted this at the end of my long thread in the "DIY CNC Wood Routers", but maybe that isn't really the right forum. So here it is again - hoping for some comments:

---

I've been doing some work on my controller card. But I wonder a bit, what inputs and outputs are useful?

The card will be set up and controlled via RS232. It will be run with step/dir signals from the parallell port.

In normal "run" mode it will listen for step/dir signals and encoder signals and make sure they agree by telling the motors how fast to spin. It will also monitor for positive and negative overtravel and disable the servos in case those signals are hit. It will send out error count over RS232 so that one can see how well the actual position coincides with commanded position, and it will map overtravel and home signals to the parallell port somehow - please help me out here to what's practical, I mean, there's four (five?) inputs on the port and three signals per axis that want out...

There will also be a "home" mode where one can home and reset the counters for the individual axes via commands over RS232. This mode will use limit switches and the encoder index pulse to find a reliable home for each axis. Will this be compatible with the different controller programs (i.e. is it possible to just zero their counter after an "external" homing has been performed?)

I will also put in a "set-up" mode that will hopefully help set the parameters for the PID controller - here the motors will be run open loop so that one can watch their step response.

So all in all, the inputs and outputs to the card will be:
* A, B, Z encoder inputs for each axis
* pos, neg overtravel inputs for each axis
* a home switch input for each axis (if one would like to home with the parallell port controller program without the aid of index pulses - or for Z maybe this could be used for a 0 plate?)
* +/-10V motor speed outputs for each axis
* One Servo Enable output that will be active as long as there is no fault condition (will be tripped by encoder errors, excessive position errors, overtravel - anything else? )

Sorry for another one of my long posts... and please comment! What would you be missing if this were your controller card?

Arvid
Reply With Quote

  #2   Ban this user!
Old 05-12-2004, 03:31 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road
Re: Designing a controller card

Originally posted by arvidb


The card will be set up and controlled via RS232. It will be run with step/dir signals from the parallell port.
I assume you mean the PC to controller connection will be rs232, with no connection to the PC parallel port? And the controller will be driving a servo motor?

Phil
Reply With Quote

  #3   Ban this user!
Old 05-12-2004, 03:53 PM
 
Join Date: Oct 2003
Location: Sweden
Age: 34
Posts: 398
arvidb is on a distinguished road

Nah, it will use both parallel port and RS-232; the parallel port for the actual position control and RS-232 for configuration and reporting position tracking error.

The thing is, I have servo drivers that only accept +/-10 V speed reference. And since most hobby level (i.e. inexpensive) controller programs (like EMC) use the parallel port, I wanted a card to interpret the step/dir signals from the parallel port and translate to a speed reference signal for the servo drivers.

So the PC will be the controller, and my card will close the position servo loop.

Is there a standard (and open source or otherwise inexpensive computer programs that support it) for sending commands to a controller card via RS-232?

Arvid
Reply With Quote

  #4   Ban this user!
Old 05-12-2004, 04:35 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

How electronics savvy are you? What about closed loop systems? Are you sure you know what your getting into?
Reply With Quote

  #5   Ban this user!
Old 05-12-2004, 05:23 PM
lt paul's Avatar  
Join Date: Mar 2004
Location: london
Posts: 41
lt paul is on a distinguished road

rutex makes the r990 series ic which you can use to make a +/-10v system with limited external parts. the chip is $34 and not much else is needed. an example is in the data sheet. or you could use the r991 which is a +/-10v system board for $98.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-12-2004, 06:22 PM
 
Join Date: Oct 2003
Location: Sweden
Age: 34
Posts: 398
arvidb is on a distinguished road

Originally posted by pminmo
How electronics savvy are you? What about closed loop systems? Are you sure you know what your getting into?
*smile* well, I guess one can never be sure until it's done But yes, I have some experience from temperature PI controllers, and I have managed to write a large part of the VHDL code for my card already - and it actually seems to output sane values during simulation !

Arvid
Reply With Quote

  #7   Ban this user!
Old 05-12-2004, 06:46 PM
 
Join Date: Oct 2003
Location: Sweden
Age: 34
Posts: 398
arvidb is on a distinguished road

lt paul,

The Rutex site is interesting. The R991H card is almost exactly what I'm building, except it seems there are no position error feedback from the card, and you set the PID parameters with pots.

The IC's they sell don't seem to support what I want to do; the R990 is for driving a DC brush motor (it has PWM outputs for connection to a H-brigde, it seems).

The R510A card and the RT900 STEPEX IC are interesting since they are controlled by RS-232 only. Unfortunately the command format seems to be supported only by Rutex own pCut software? It would be great to find a standardised set of commands that were supported by a few different software programs, then I could throw out the parallel interface...

Arvid
Reply With Quote

  #8   Ban this user!
Old 05-12-2004, 07:15 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Arvid,
Sorry, just had to ask. I'm sure you understand that there are plenty of hobbiests out there that just because they can hook a few components together.... didn't want some body headed down an over simplistic path and not have the technical knowledge to understand.
Phil
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #9   Ban this user!
Old 05-13-2004, 05:45 AM
 
Join Date: Oct 2003
Location: Sweden
Age: 34
Posts: 398
arvidb is on a distinguished road

Phil,

no problem There's certainly more to building a "step/dir to +/-10V converter" than it sounds...

Arvid
Reply With Quote

  #10   Ban this user!
Old 05-13-2004, 07:22 AM
 
Join Date: Jan 2004
Location: GTA CANADA
Posts: 122
davesaudio is on a distinguished road

since this "beast" does almost everything ( I like it)
have you thought about supporting the Gecko G2002 "protocol"?
Dave
__________________
maybe...
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-13-2004, 12:51 PM
 
Join Date: Oct 2003
Location: Sweden
Age: 34
Posts: 398
arvidb is on a distinguished road

Dave,

before I read your message I didn't know what the G2002 was. I have spent a couple of hours since then browsing the geckodrive group at Yahoo to try to get an idea of what it is.

It seems kindof advanced, being able to function as a g-code interpreter in "smart" mode (?), and with USB/Ethernet interface. (I'm not sure how much if this is actually working already though).

But in "dumb" mode I think it performs about the same tasks as I had planned for my card.

It (the G2002 protocol) also don't seem to be finalized in any way. Perhaps I should write a simple g-code interpreter software for Windows and use my own protocol via RS232 to send instructions like "move this axis at this speed for this time" (for linear moves) or "move this axis sinusoidally from angle a to b at this speed for this time" (for circular moves)?

This would let me skip the parallel interface, and bring the added benefits of moving the time critical parts from the PC, while keeping as much as possible of the heavy math stuff where the processing power is (i.e. the PC). The bad part is of course all the programming I would have to do... would this ever get finished?

How is non-linear and non-circular moves descibed in g-code? A parabolic move for instance? Broken up in lots of circular and/or linear moves?

Arvid
Reply With Quote

  #12   Ban this user!
Old 05-13-2004, 02:46 PM
lt paul's Avatar  
Join Date: Mar 2004
Location: london
Posts: 41
lt paul is on a distinguished road

if you look at the bottom shematic on the 990a ic it will do a +/-10v control
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
controller card swiftden Stepper Motors and Drives 4 06-09-2007 07:48 PM
Taig Mill, US Digital MS23, Controller??? marjamar Taig Mills & Lathes 3 02-07-2007 09:16 AM
Open Source CNC Controller Specification gregmary DIY-CNC Router Table Machines 28 12-04-2005 09:58 PM
Help to find controller card & step motors... Mikael CNC Wire Foam Cutter Machines 2 09-11-2004 05:05 PM
hobby cnc controller card sixpence DIY-CNC Router Table Machines 11 02-23-2004 02:52 PM




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