| CncPlayer www.CncPlayer.com |
|
| Home | Help | Down |
Fo |
Shop | Mem |
Im |
| Cnc Software CncPlayer |
Direct cnc connection or 2 pc mode? An overview.The CncPlayer is a cnc software that controls your stepper motor cnc machine (up to 4 axes). The CncPlayer is a work in progress. No production level, yet.
Yes, it is basically possible to directly connect your CNC machine to the Windows PC as shown above
Even if you have Windows 9x as your operating system your CNC machine will run jerky and sound noisy (if you have really low requirements you might live with it and find it acceptable). "Why?" Windows is not a real-time OS and its multitasking will suspend the CncPlayer often from work. That causes the jerks. "But my movies play fine!" Yes, but they work at a frame rate of 25 Hz (Pal) or 30 Hz (NTSC). A little delay of a few ms doesn't matter. The CncPlayer works at e.g. 10.000 Hz and much more, so delay matters. "But product XXX from company YYY can do it!" For money you get anything. With the use of a dedicated Windows driver (that runs in kernel mode) one can actually get much out of Windows and one can use it to directly control a CNC machine at an acceptable level. Though, device driver writing requires a lot of time / money. I have the skills to write CNC device driver and actually I have even finished one that works fine in experimental mode. But it's a long way from experimental level to end user level. Currently, I do not have the resources (time / money) for a device driver, so I put it on halt in favor of the "2nd DOS PC" solution.
Better motor performance With a second PC an extra computer can concentrate on the motor controlling without being interrupted by any multitasking. That means the motor performance will be better. Clean micro stepping is easier possible. Better Windows multitasking The multitasking of your Windows PC will improve while the machine is milling since two dedicated PCs can share the load. Space for future enhancement A second PC offers space for future enhancement, e.g. for a closed loop control. That requires an add on card and a rotary encoder for each motor and will prevent work pieces from being damaged by lost motor steps. Without a second PC it would be very difficult (= expensive) to provide such a solution with a single Windows PC. Low cost A second DOS PC is cheap, maybe 25 $ second hand and it will protect your expensive Windows PC or your Windows notebook from being damaged by experiments on the printer port and such. Serves as electronic housing The second DOS PC can be used as a nice case for your do-it-yourself motor electronic. You could put it e.g. into the 5 1/4" bay(s). Drain the +5Volt logic power from the PC's power supply and your motor power supply will be much easier to be built (a transformer, 4 diodes and a big capacitor will do it, no stabilized output needed). Linux Port for more flexibility In my opinion, Microsoft Windows is a questionable software, e.g. both in privacy and security matters. With XP Microsoft has gone too far. That's why I do not want to put too much effort into very OS specific programming like device driver writing for Windows. I'll rather use that time to port the CncPlayer to Linux one day. PC/104 for smallest size If you don't like a second big desktop PC for whatever reasons you could replace it by a single board PC of PC/104 style. These are ordinary PCs but shrinked to about only 100 mm x 100 mm in size. They require only +5Volt power. You can attach a floppy drive but they have a 2 MB silicon disk on board. So you can omit the floppy drive and run the software from the silicon disc. No memory is lost during power off . Since a PC/104 is very small you might put it into your existing electronics' or machine's case. PC/104 have graphics on board, Com Port, Printer board and all you know from a "real" PC. Yes, CPC.EXE will run on a PC/104. In fact, many commercial cnc machines have a PC/104 built in. A PC/104 is a great piece of technology but it's round about 250,- Euro, to give you a raw image. Baby board is small and affordable A cheaper solution than a PC/104 board would be the usage of an ordinary baby AT board or one of the newer micro ATX boards. FLEX ATX boards are even smaller. You could attach a common Compact Flash Memory Card to the board and use it as your drive, boot and run any program from it. That's really cool, small and cheap. Though, that solution is bigger in size than a PC/104 and it also requires an ordinary PC power supply (while +5 Volt will do it for a PC/104). If size and full blown power supply doesn't matter then its really a small yet affordable option. BTW, PC power supplies from web server are very small. Only 40 mm x 80 mm x 220 mm in size. There are lots of advantages a 2nd PC offers. Give it a try. |
|||||||||||||||||||||||||||||||||||
| Saturday, 2010.07.31 - 08:49:26 |
|
|||||||
|