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-28-2003, 09:11 AM
Max's Avatar
Max Max is offline
 
Join Date: Apr 2003
Location: US
Posts: 53
Max is on a distinguished road
Serial or Parallel port drive

I'd like to know some thoughts on whether it's better to build using Software and Driver boards made for the Serial Port or the Parallel Port.

I guess it's one of those questions like Stepper v. Servo

Also, I've seen where there is some software that is able to use the usb port
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 05-28-2003, 04:10 PM
 
Join Date: May 2003
Location: malta
Posts: 69
marting is on a distinguished road

Hi Max,
I think your best bet is to go for the parallel port, naturally if you have only one which might be used by the printer then you'll be needing to buy another one. That's what I've on mine. Most software use this port.
Regards
Martin
__________________
Martin G
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 05-28-2003, 04:35 PM
balsaman's Avatar  
Join Date: Mar 2003
Location: Canada
Posts: 2,139
balsaman is on a distinguished road

What Martin said. 99% of the (inexpensive) software uses the parallel port.

Eric
__________________
I wish it wouldn't crash.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 05-28-2003, 05:15 PM
 
Join Date: May 2003
Location: Virginia
Posts: 20
Bill C is on a distinguished road

So Balsaman,

What are you saying? I understand the 'inexpensive software' part but are you inferring that 'good' or 'better' (expensive)software uses the serial port? The question was good and I have read some on this but you seem to have an answer there somewhere. Which and why? Do you mean that there is only 1% of the software (inexpensive) that uses the serial port or, that 'expensive' software uses the serial port as a rule?

Bill C.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 05-29-2003, 01:41 PM
 
Join Date: May 2003
Location: USA
Posts: 109
bcromwell is on a distinguished road

On the techie side of things, Serial is slower, and has less I/O than the parallel port. So I don't see why you would want to use serial.
.002$
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-29-2004, 12:28 AM
 
Join Date: Sep 2004
Location: USA
Posts: 34
c_nut is on a distinguished road

The only real difference between serial and parallel and USB is the hardware connector and the software driver. They all do the same job - get data out of the computer. Parallel has a wider path, ie. eight bits however serial does the same eight bits one at a time and with the speed or non speed of CNC it doesn't make a hoot of a difference. No matter how fast your CNC goes the serial port will stay ahead of it.
The only noticable difference would be with over 4 axises would require a second parallel cable while serial could handle more than four axises with one cable. It has always been my creed and I preached it to all of my customers. Buy the software you need to do your job then get the hardware required by that software. You never ask what size tires would be best on a car?
c_nut
In the swamps north of I10 mile post 223.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 10-29-2004, 12:52 AM
 
Join Date: Jul 2004
Posts: 11
d.miller is on a distinguished road

To control a motor from the PC you basically need to be able to tell it which direction to rotate, and when to rotate a given amount. When you're controlling stepper motors this comes down to a pin for direction and a pin for stepping. The vast majority of stepper motor controllers require these 2 inputs, a step and a direction.

This makes the parallel port a great way to communicate with motor controllers. You can manipulate the bits in the various registers (and therefore the voltages on the pins of the ports) very easily. And with the parallel port you can do this for 6, 8, even 12 output pins at the same time.

Also, the parallel port has been around for a long time, and is pretty much the same from OS to OS, and there are a lot of readily available tools to get your software to communicate with the parallel port.

With the serial port you can only manipulate the signals on one pin basically, so you move the timing and movement logic from the PC to the controller, requiring a microcontroller or some other device. This means there has to be some set of commands to communicate the movements, and without a standard communication language each set of software would have to have its own controller that spoke its language.

Same type of issues with USB, I would think. And USB seems like it would be more subject to the timing issues in Windows than the serial or parallel port.

Of course, as I write all this I'm developing a serial port stepper motor controller. Man, looking back over this I've written some pretty obvious stuff. I apologize. It's late.

Daniel
Salem Controls Inc.
http://www.salemcontrols.com/
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 10-29-2004, 09:10 AM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 269
imserv is on a distinguished road

Originally Posted by Max
I'd like to know some thoughts on whether it's better to build using Software and Driver boards made for the Serial Port or the Parallel Port.
In MS Windows the priorities are controlled by the operating system. Until about 3 years ago, there were no applications that could achieve more than a couple thousand steps per second.

Since that time, parallel port controllers have been released that achieve up to about 45000 steps per second. (There are also a few bus based controllers for windows, but the price is considerable higher)

There is now a Serial port controller that will achieve 128,000 steps per second.

A serial port controller uses a higher level communications protocal to communicate with an external dedicated microcontroller. In this manner many bits passed through the parallel port are reduced to a simple line or arc command. The dedicated microcontroller easily processes the motion commands into discrete step and direction signals for multiple axes.

Parallel port controllers usually require a breakout board to manage the electrical interface from the computer parallel port, to the motor driver electronics, limit switches, relays, etc. of the cnc machine. The external controller board provides this functionality with the serial port systems.

With Windows, the cost of parallel port software and a breakout board is about the same as a serial port controller board and software.

Fred Smith - IMService
http://www.cadcamcadcam.com
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 11-02-2004, 01:20 AM
 
Join Date: Apr 2004
Location: Martinez, CA
Posts: 40
Ryobiguy is on a distinguished road

Parallel can be better for simple high speed/critical timing applications, like pulsing a motor driver to hold a controlled velocity. You can turn a pin on or off in one operation, so it's quick. Since the pins are hardwired to specific control circuitry, it's very fast saying to what thing you're changing the binary value.
Serial (on a stock PC) is great if you have things that you want your PC to talk to on a slower pace. The data you send/receive can be simple (like a data byte) or quite complex like a string of characters. Things like: a simple DRO, a tachometer, or a keypad would probably be good applications for serial, as long as it's not too performance critical.
Serial has to clock in (pulse a clock signal after setting the data line on or off,) some minimum number of bits to do anything really useful, so you have to wait for at least 8 clock cycles (115k/second [or higher]) to write out a byte. Since it took some thought to explain that, you can understand that the complexity is a lot more than parallel. (USB is even more complicated.)

So, it depends what you're doing. Motor drivers call out for parallel - cheap, fast, easy.
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
DNC with parallel port (Bridgeport BOSS 5)? hobbymat General CAM Discussion 3 07-20-2009 12:16 PM
Adding a serial port - please comment DareBee Machine Problems, Solutions , Wireless DNC, serial port 11 03-22-2006 08:26 AM
Parallel port circuit Kerri Ann General Electronics Discussion 12 03-19-2005 01:23 AM
Parallel Port Options JasonCroyle General Electronics Discussion 4 01-12-2005 08:23 AM
Parallel Port Shanghyd Computers and Networking 1 11-22-2004 12:56 PM




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