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 07-09-2005, 09:36 PM
 
Join Date: Mar 2005
Location: usa
Posts: 509
smarbaga is on a distinguished road
usb to breakout box

does anyone here redirect there software to the usb port to control there stepper, servo drives.
- i am asking because i considering making an interface to do so.
- if there is one out there i would like to see the spects and find out how well it works.
- also anyone using ethernet to printer port interface with a breakout box on the end of it.
- same .... if there is questions.
thank all
Reply With Quote

  #2   Ban this user!
Old 07-09-2005, 09:54 PM
DieGuy's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 420
DieGuy is on a distinguished road

I think realtime response with any of those methods are the issue.
Reply With Quote

  #3  
Old 07-09-2005, 09:57 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,448
ger21 is on a distinguished road
Buy me a Beer?

If your talking about software like TurboCNC or Mach2/3 it MUST be run using a parallel port. There will be a version of MachX, however that will control the new Gecko G100 pulse generator via usb or ethernet.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #4   Ban this user!
Old 07-09-2005, 10:08 PM
 
Join Date: Mar 2005
Location: usa
Posts: 509
smarbaga is on a distinguished road

the computers os will redirect the output/input to/from the usb or ethernet port.
the users software will think it is going to the printer port.
at the far end the data will be disassembled or assembled into the data, and control bits
Reply With Quote

  #5  
Old 07-09-2005, 10:21 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,448
ger21 is on a distinguished road
Buy me a Beer?

What software do you plan on using this with?
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-09-2005, 10:41 PM
 
Join Date: Mar 2005
Location: usa
Posts: 509
smarbaga is on a distinguished road

if the computers opperating system (be it - xp, me, 98 ,dos, linx) redirects the printer ports outputs or gets the printer ports inputs from somewhere somewhere else, it doesn't matter what software one is using.
the user's software only for example sends and recieves data to and from the ports handlers, the opperating system sets up the 8255 control register and moves data to and from ram to the ppc programable periferal controller.. etc etc.
i use acrobat distiller which (if i tell it to) makes all printer outputs into a pdf file.
Reply With Quote

  #7   Ban this user!
Old 07-10-2005, 01:16 AM
DieGuy's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 420
DieGuy is on a distinguished road

Thsi may be true but the interupt handler is directly connected to the hardware. With a printer port converter or usb the change in line state needs to be protocol converted then transmitted where it is buffered and then delivered to the device. This is acceptable for printers and like devices.

Somebody correct me if I am wrong but with most PC CNC software, a direct handler is written to talk to the hardware to keep the speed up and the service rates high. In the case of MACH 2/3 I believe it is a dll that interface via the HAL to the printer port taking it over and providing near realtime access. In the case of turbocnc I suspect it is a piece of assembly language placed in line in the pascal code. You need to remember that the line pluse train in these software generators operate at least 25 - 40 Khz in a controlled fashion across multiple axis of motion. Time is everything here.

An interesting development is the new Gecko product which in effect is it's own single purpose computer that just takes commands via ethernet/usb and then generates it's own pulse train directly driving the motor driver. The command structure is something simplistic like move in an arc from point A to point B at X feed rate. this intermediate computer then just generated the correct pulse train to feed the drives but at a whooping rate of 2Mhz or some silly fast number like that. I can't wait to see one in action.
Reply With Quote

  #8  
Old 07-10-2005, 05:55 AM
jerber's Avatar
Gold Member
 
Join Date: Nov 2004
Location: Netherlands
Posts: 140
jerber is on a distinguished road

I think it's possible with some sort of external clock source. You must have a way to
read the frequency of the step pulses generated by the software and set the external clock to the same frequency.

I believe Mach3 uses the modbus protocol (wich I think DieGuy refers to) and this is
perfect for such an interface. You can find lot's of info on www.modbus.org .
I'm playing with the idea of intergrating this in a atmega16 or another atmel cpu.
Maybe anonther cnczone opensource project ?
__________________
____________________________________
Jeroen
Reply With Quote

  #9   Ban this user!
Old 07-10-2005, 06:55 AM
 
Join Date: Mar 2005
Location: usa
Posts: 509
smarbaga is on a distinguished road

some newer laptops have no printer ports, and newer printer are usb.
- i think the day is not far off when we will see the centronics printer port disapear altogether.
- i know there are cables out there, with micro's in them that are usb on one end and the 50 pin centronics connector on the other.
used for machines without printer ports.
- i suspect within 12 months the printer port will disapear from newer machines, just like the cassette port did, years ago, the rs232 port will go the way of the dodo as well. ( where's the pc104 bus, and scsi port )
- the theory is , why use 18-25 wires and a bulky 25 pin connector when you get away with 4, sometimes 6, also they call it a UNIVERSAL serial bus, and has a bit of smarts.
usb mice (not rs232), usb keyboards, ... goodbye printer port

Last edited by smarbaga; 07-10-2005 at 07:11 AM.
Reply With Quote

  #10  
Old 07-10-2005, 09:41 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,448
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by smarbaga
- the theory is , why use 18-25 wires and a bulky 25 pin connector when you get away with 4, sometimes 6, also they call it a UNIVERSAL serial bus, and has a bit of smarts.
usb mice (not rs232), usb keyboards, ... goodbye printer port
Because it just won't work. But you're welcome to try. Sure the parallel port will go away. But by then, there will be low priced external pulse generators like the Gecko G100, or DeskCNC,which are already available that will give far better performance and are already usb or ethernet. I suspect that there will be cheaper and faster ones as time progresses, and noone will need the parallel port anyway.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-10-2005, 11:15 AM
 
Join Date: May 2003
Location: USA
Posts: 550
fyffe555 is on a distinguished road

Originally Posted by smarbaga
if the computers opperating system (be it - xp, me, 98 ,dos, linx) redirects the printer ports outputs or gets the printer ports inputs from somewhere somewhere else, it doesn't matter what software one is using.
the user's software only for example sends and recieves data to and from the ports handlers, the opperating system sets up the 8255 control register and moves data to and from ram to the ppc programable periferal controller.. etc etc.
i use acrobat distiller which (if i tell it to) makes all printer outputs into a pdf file.

No, not entirely true. Step direction management of CNC machines required a timed synchronous datastream. Printers do not.

Dos based turbocnc has direct unshared access to the hardware printer port and takes its timing from the PP hardware. Thats why , in part , it does that max speed check on startup. Its not the processor its testing and using for timing, it's the PP hardware.

Windows applications do not have direct hardware access, it's through a windows driver and that's fine for time independant apps like printer drivers where there's handshaking or driver supported protocols ( usually time independant) going on. It doesn't work for any apps that require *application* synched time events. That's why Turbocnc doesn't run well in a windows box - its using windows managed PP instead of dedicated direct access.

Mach2/3 entirely *replaces* the windows PP driver with a driver that allows the MACH2 app direct control of the port - and to take it's timing from.

USB is a serial conection. just two wires do the work and the ends manage a serial link. entirely different to a parallel port operation. And theres no reasonable means to maintain the timing (interupt handler) across usb to parallel to whatever while using the available software.

thats why Gecko have spent a year of so developing the USB or ethernet connected G100 which manages the timing off the PC.
Reply With Quote

  #12  
Old 07-10-2005, 12:30 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?

There seems to be a general move by most of the automation manuf. in the direction of the Industrial Ethernet Protocol such as earlier mentiond ModBus and others like Galil and drives like AMC are using Canopen http://www.a-m-c.com/canopen/default.htm
BTW for anyone developing a Pic setup using a Modbus setup there is this program that I have found usefull for testing.
http://www.oceancontrols.com.au/modbus/modview.htm
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

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
Parallel Breakout Board Sanghera General Electronics Discussion 31 03-13-2012 08:06 PM
Breakout Board ckirchen Product Announcements & Manufacturer News 11 06-20-2005 11:52 AM
Port to Breakout to Drives? LeeWay General Electronics Discussion 3 05-11-2005 08:38 AM
How to use a DB25 serial breakout box HuFlungDung General Electronics Discussion 11 03-25-2005 05:05 AM
in lieu of a breakout board fly_champ General Electronics Discussion 3 03-01-2005 09:42 PM




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