j.t.d
10-02-2007, 06:44 PM
I have two new laptops, neither has a serial or printer port. It seems that's the way things are going.
So the question is: How do I get a popuar solution e.g. Mach 3 to talk through a USB port.
I have a neat little pcb that has 3 8-bit ports, A/D the whole lot. At only £25 it was a snip and has allowed me to test my drivers but it uses a simple proprietory command set e.g. OUT3 A6
That means send to port 3, Hex A6 (Dec 166)
There must be an inexpensive answer to this common problem...
Torchhead
10-02-2007, 07:17 PM
Because Mach uses the internal PC's processor to generate the high speed Step & dir (often thousands of pulses per second for each axis) timing is critical. With a parallel port you can predict the timing and output semi stable high speed pulse trains. Actually only Art has figured out how to do that at a level that provides pulses up to (now) 100,000 per axis per second.
USB has some short comings. It is a serial shared resource and the timing is not predictable nor can you grab the resource and control it easily to get predictable real time pulsing. The approach has to be to send a description of where you want to go (trajectory planning) and have external pulsing hardware/firmware on the USB port do the realtime pulse train. Seems simple enough, but so far the attempts have been less than sterling and the added cost of hardware and processing power is a detraction. As in everything the devil is in the details. Moving 3 or more axis in coordinated and high speed (compared to just rotating a single motor at 100 RPM) is not easy.
There are other reasons USB may not be the best answer for CNC motion control even IF the costs get more reasonable.
There are some things being worked on with MACH and USB but the price point may not hit your mark and at this point a 25.00 USD paralllel port plug in card is a better solution.
Using laptops for CNC control is a poor choice of resources. The PC you use for the machine really needs to be dedicated and clean of anything but the control software. I don't know about your shop but mine is a hazard to any small piece of portable gear, and jerking a laptop off a table because one of the cords gets hung in a passing person/object/thing is a lot more expensive than smashing a 5.00 keyboard. (been there done that). Laptops are banned in our shop.
I use a laptop in the house with a wireless networking card to be able to draw and generate the g-code for my cutting. I use the workstation at the CNC to receive and run the G-code.
Tom Caudle
www.CandCNC.com
OzarkCNC
10-03-2007, 01:56 AM
There must be an inexpensive answer to this common problem...
There are 2 answers to your question and neither are inexpensive. Well sort of...
#1: As stated by Torchhead, a dedicated PC is you best bet. I'm sure you could yard sale a decent PC just for your CNC project. Our thrift stores here always have some sort of computers for $50+ and up. Or ebay and older 1GHZ system.
#2: Docking Station: This will turn your Laptop into a PC with room for LPT ports and more. You MAY be able to pick one up on ebay depending on the brand. If you have to buy new, you will pay out the nose.
I'd go with option 1.
CountZero
10-03-2007, 04:46 AM
Perhaps this could be an option: http://www.usbcnc.com/
I have not tried it myself, but fear that I have to search for a similar solution in the future..
Edit: For now I am going with a dedicated PC, components are cheap enough these days and it probably will end up more powerful than my main pc anyway :)
DareBee
10-03-2007, 08:23 AM
http://www.transdigital.net/info.htm