![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CNC Breakout Boards How does my PC talk to my machine? The breakout board is used to interface between your PC and the various motor controls, relays, and other devices you want to control on a CNC machine. There are several different types of breakout boards and related devices used to deliver this I/O (Input/Output) capability, including parallel breakout boards, usb breakout boards, keyboard emulators, and motion control boards. Parallel Breakout Boards Parallel breakout boards connect to your PC's parallel port and convert those signals to screw terminals which you may then use in point-to-point wiring to connect up the rest of your system. These are the most commonly used type of breakout board. They're simple, and relatively inexpensive. They have a few drawbacks. First, the parallel port itself is a bit of a throwback to the early days of the PC. There are limitations on its performance, particularly when used with Windows software, such as with Mach 3. You will be limited in how quickly you can send and receive the signals from the board, which may in turn limit the performance of your CNC. For most low end applications, this is not a problem. The second limitation is that of compatibility. PC manufacturers are gradually phasing out parallel ports altogether in favor of USB, and in the meantime, they are sharply controlling the power consumption of these interfaces. As a result, many later model PC's use 3.3 volt signals instead of 5 volts. Some breakout boards work fine with this while others have problems. Be sure to check whether the board you are looking at will be compatible with your PC. Laptops are a particular source of this kind of problem. Lastly, parallel ports have relatively few I/O channels. Boards typically support 11 or fewer outputs and only 5 inputs. As you can imagine, these go quickly, especially if you are trying to connect an elaborate control panel to your machine. For this reason, you either have a choice to "keep it simple", or you will need to add one or more additional boards to get the job done. It should be noted that you can add a second parallel port to most computers using a PCI card. Obviously this won't work with a laptop, because they have no PCI slots. In addition, some card/PC combinations can be finicky when used with Mach 3. Be sure to check with others to see if they have been successful with the particular combination you'd like to try. Lastly, it is important to purchase a board that incorporates opto-isolation (you can look it up in the CNC Dictionary if you are curious). This feature isolates your PC's motherboard from any bad connections, noise, or power surges that may occur in the rest of your circuitry. If you directly connect the parallel port without opto-isolation, you run the risk of destroying the expensive motherboard. Suppliers of parallel breakout boards include: USB Breakout Boards USB breakout boards are a relatively recent development, but one I'm sure we'll see continue to grow in popular. USB, or Universal Serial Bus, is the preferred replacement for the parallel port. So far, you cannot use it as a total replacement for a parallel breakout board with Mach 3. Rather, it is to be used as a way of gaining more I/O capacity than a single breakout board can provide. As I write this, the only version I am aware of is one called ModIO that was developed by an Australian company called Homann Designs. This board is capable of adding 8 inputs, 8 outputs, as well as 3 analog inputs, so it is quite powerful. This board is very well supported by the CNC community, so if you need the extra I/O, I would highly recommend it. I've dealt with Peter Homann on occasion and he is extremely helpful and works hard to give what he can to the CNC community. Someday, I expect you will be able to generate step and direction pulses from a USB board with Mach 3, but I am not aware of any such product yet. Keyboard Emulators Keyboard emulators are another approach to extending the basic I/O provided by a parallel breakout card. They do this by converting on/off input signals to simulated key sequences. For example, you could connect a switch labeled "Flood Coolant On" to an input on a keyboard emulator and when the switch closed, it would forward a key sequence to Mach 3 which could be interpreted to turn on the coolant. Keyboard emulators are simple to hook up, they typically accept your keyboard's plug and you use a keyboard extension cable to go from the emulator to the PC's normal keyboard input socket. There are a number of keyboard emulators out there, but I believe the most popular is the iPac, which is sold Ultimarc. The basic iPac provides an additional 28 inputs, which is substantial. There is an enhanced version that even allows 56 inputs. The thing about an iPac is that since they're just sending key sequences, they have a pretty slow response time. You wouldn't want to use one for any application that required rapid responses or a good sense of "touch" or "feel". For example, I would tend to avoid using them with joysticks. But they are a good way to pick up all the extra buttons on your control panel. Motion Controllers At the high end of the breakout board spectrum are the motion controllers. They are so high their makers probably object to comparing them to breakout boards. I only do so because they replace the breakout board. Presently, Mach only works with the Gecko GRex, however, it has a general purpose plug-in interface for these kinds of products and Art is rumored to be working on a driver for the popular Galil motion controllers. Another maker of this type of board is DeltaTau. No word on whether Mach will be supporting DeltaTau or not. These boards offer a tremendous performance upgrade over parallel boards and the like. Their primary disadvantage is they're a much less mature technology. Since they haven't been with us for long, you are more likely to run into a problem or discover a limitation. As I write this, we are waiting for a firmware upgrade to GRex before it will support lathe threading, for example. Still, the capability here is breathtaking. From Left to Right: GRex, Gecko Drives, and DC Stepper Power Supply for my CNC Lathe project... As an example, I am using a GRex with my CNC Lathe project. I did so because I had so many inputs and outputs it would have required a parallel breakout board, a ModIO USB breakout board, and a keyboard emulator to provide enough I/O connections. Take a look at all the connections I'm using:
Try that with these older technologies! Before taking any final steps on any of this for your own project, I highly recommend you spend a lot of time getting acquainted with the Yahoo Boards for Mach 3 and Gecko for the GRex. Other Black Boxes Suppose you have an older CNC machine, or perhaps some surplus servo drivers, and you want to run them with Mach 3, but the controllers expect analog rather than step + direction? You could junk the controllers and buy new Gecko or Rutex Step/Dir servo drivers, but that is an expensive proposition if you believe the drivers you have are working. This is especially true for the higher powered servos on a larger machine. Fortunately, there is a solution to this problem in the form of a board known as the Skyko Pixie 100. I confess I do not know an awful lot about them, but if you think you have a need, they're worth researching. There are a few threads on CNCZone from people who are fooling with these boards. What about spindle speed control? In most cases, VFD's and other speed controllers want a voltage that is proportional to the desired spindle speed. Mach 3, on the other hand, puts out digital pulses, so you need a board to convert from the digital world of Mach 3 on one output pin to the analog realm expected by the VFD. Hopefully the board will isolate the sensitive digital electronics from any potential for line voltages to get back into the digital side as well. Homann Designs comes to the rescue once again with a couple of boards to perform this function. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
All material © 2001-2006, Robert
W. Warfield.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||