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! > Machine Controllers Software and Solutions > General CNC (Mill and Lathe) Control Software (NC)


General CNC (Mill and Lathe) Control Software (NC) General Discussion of CNC (Mill and Lathe) control software here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-26-2005, 03:23 PM
 
Join Date: Apr 2003
Location: US
Posts: 307
cbcnc is on a distinguished road
Parallel to Serial

Is it possible to convert LPT parallel output to serial output in order to use a controller that uses a Com port input?

Chris
Reply With Quote

  #2  
Old 07-26-2005, 03:32 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,538
Al_The_Man is on a distinguished road
Buy me a Beer?

You could do it with a USART ic, I used to use Intersil IM6402/6403 but I don't know wether you can still get them but there should be a USART out there that would do, these IC's transmit and recieve parallel to serial, otherwise a PIC processor would probabally do also.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #3   Ban this user!
Old 07-26-2005, 04:52 PM
Chris D's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 390
Chris D is on a distinguished road

Originally Posted by cbcnc
Is it possible to convert LPT parallel output to serial output in order to use a controller that uses a Com port input?

Chris

Search for parallel to serieal on the Jameco website. I believe they have a device that can do that - around $50.00 in a dongle sized device.

Chris
Reply With Quote

  #4   Ban this user!
Old 07-26-2005, 09:34 PM
 
Join Date: Apr 2003
Location: US
Posts: 307
cbcnc is on a distinguished road

Is it as simple as that? In other words to just turn the parallel bytes into a bitstream and a standard controller could read them?
To be more specific I have an older API Controls DM-2205i stepper controller. There are no inputs for step and direction. All communications are done thru the Com port. Can I drive that with say TurboCNC or Mach 2/3 if the parallel bytes are turned ino serial data?
I'm digging back into what little knowledge I have about COM port devices. Doesn't each device in a daisy chain have an address and will listen if data is sent to that address?
On the parallel port the data for each controller or axis (2 bits) is mixed into 1 or 2 bytes. It seems that more translation would be necessary for each controller.
I know I am thinking out loud and am beginning to answer my own question.
I had better do some more reading before I ask any more stupid questions. I do appreciate your answers.

Thanks,
Chris
Reply With Quote

  #5   Ban this user!
Old 08-09-2005, 07:18 AM
CLaNZeR's Avatar  
Join Date: Jul 2005
Location: UK
Posts: 101
CLaNZeR is on a distinguished road

The parallel port sends data out in parallel. Each pins represents a bit.
So if you wanted to send out 1 byte of data you would break the byte down into bits and use 8 pins by setting them high or low to represent the byte.

The serial port in basic use, uses 2 wires, one for transmit and one for recieve.
You transmit bytes back and forth by breaking them down into bits and pulsing the transmit line high or low to correspond to the bits.

You will probably find that your controller with serial port has a processor inside it that expects to receive serial data from this port.
Serial data is sent from the software running on your computer to the processor and the commands are then interepted into step and direction for each Axis.
The processor pins now control the correct Step and direction pulses on the motor control circuit.

With a parallel port each pin can be controlled indidually by the software running on the computer and usually the pins are then taken straight out to the Motor control circuit.

So your main problem really is knowing what custom codes are sent down to the serial controller for step and direction and also finding software that suits this controller and matches the same protocol it expects.

With parallel port it is easy to configure most software out there as you just tell it what pins do the X,Y,Z steps and direction.

Hope this helps

Regards

Sean.
__________________
********************
http://www.cncdudez.co.uk
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-09-2005, 10:21 AM
 
Join Date: Aug 2004
Location: US
Posts: 2,786
ViperTX is on a distinguished road

cbcnc...without step and direction you should look at EMC. I don't believe TurboCNC or MachX will work without step/direction.
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





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