{"id":585,"date":"2009-11-27T11:59:27","date_gmt":"2009-11-27T16:59:27","guid":{"rendered":"https:\/\/cubcadetman.com\/cc\/?p=585"},"modified":"2014-03-03T14:50:07","modified_gmt":"2014-03-03T19:50:07","slug":"converting-a-table-top-mill-to-cnc","status":"publish","type":"post","link":"https:\/\/cubcadetman.com\/cc\/special-projects\/2009\/11\/converting-a-table-top-mill-to-cnc\/","title":{"rendered":"Converting a Table Top Mill to CNC"},"content":{"rendered":"<p>NOTE:\u00a0 This is an article that I&#8217;ve been working on quite some time.\u00a0 I have to go back and look up a lot of records to determine what I did and why so it&#8217;s going really slowly.\u00a0 I finally decided I&#8217;d go ahead and put what I have on the web and add\/change it when I get time.\u00a0 So, if parts seem out of order or the end drops off rather quickly, that just means I haven&#8217;t had time to finish it.\u00a0 It will eventually be completed.<\/p>\n<p>Note:\u00a0 I&#8217;ve completed the majority of the article.\u00a0 I hope to eventually add a small &#8220;G-code&#8221; program at the end.\u00a0 I hope you find the article useful and enjoyable.<\/p>\n<p>I have found that a CNC (Computer Numerical Control) milling machine is a valuable piece of equipment for my hobby of making mini tractors (H, 560 and Cub) and implements to go with them. A CNC mill can be used to make necessary parts such as wheel spacers or add that special touch to an implement such as a mini-plow.<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-823\" alt=\"CNC pic 2\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-2.jpg\" width=\"300\" height=\"247\" \/><\/a><\/p>\n<p>For a wheel spacer, a CNC mill will not only cut out the center hole for a piece of 2\u201d diameter tubing, it will also accurately locate the holes for drilling and tapping for lug bolts. Likewise, a CNC mill will locate a hole pattern on a radius to allow for depth adjustment on a mini-plow \u2013 as well as cutting out a neat profile. Having a milling cutter controlled by a computer permits all kinds of interesting possibilities.<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-824\" alt=\"CNC pic 1\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-1-299x300.jpg\" width=\"299\" height=\"300\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-1-299x300.jpg 299w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-1-150x150.jpg 150w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-1.jpg 300w\" sizes=\"auto, (max-width: 299px) 100vw, 299px\" \/><\/a><\/p>\n<p>When I first got serious about my hobby, I had access to a CNC mill through my employer. I knew with retirement I would loose that benefit. So the year I retired, I decided to give myself a retirement gift of a CNC mill. While I have a basic knowledge of how \u201celectrical things\u201d work, I started this project knowing very little about what was required to build a CNC machine. My shop was too small to hold a full size milling machine (Don\u2019t we always build them too small!!), and the small machines available on the market were not capable of milling steel parts the size I was interested. With a limited budget and a lot of unfounded confidence, I decided I would build my own machine. This article is the result of that process.<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-826\" alt=\"CNC pic 3\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-3-183x300.jpg\" width=\"183\" height=\"300\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-3-183x300.jpg 183w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-3.jpg 300w\" sizes=\"auto, (max-width: 183px) 100vw, 183px\" \/><\/a>The first step in the process was to find a mill that I could convert. After some research and reading several reviews, I settled on a Rong-Fu 31 mill\/drill combination from ENCO. It has an 8\u00bc by 28 inch table with an 18 1\/8\u201d longitudinal travel (x-direction) and a 6\u00bc inch cross travel (y-direction). And, just when I had settled on the Rong-Fu it went on sale with free shipping. You can\u2019t beat that for timing. I didn\u2019t purchase the base as shown in the picture. I made my own.<\/p>\n<p><span style=\"line-height: 1.5;\">The next step in the process required deciding on the type of motors that would be used for the conversion.\u00a0\u00a0\u00a0 With a little research, I discovered this decision involved deciding between stepper motors and servo motors. I don\u2019t want to get too technical here, but while stepper motors are much easier to setup and install, servo motors permit a lot more control and accuracy. After some more research and because of my limited expertise in this area, I decided to go with the stepper motors.\u00a0\u00a0 Basically, a stepper motor consists of a magnetic armature surrounded by field coils. By varying which coils current flows through and in which direction the current flows, the coils can produce a magnetic field which causes the armature to rotate (a north pole attracts a south pole type thing). The compete system works something like this: The computer sends the correct number of steps to a \u201ccontroller\u201d to move the mill table a specified distance. The controller \u201ccontrols\u201d a voltage source that produces the magnetic field in the stepper coils corresponding to each pulse to cause the stepper motor to rotate the correct amount for each step. The stepper motor rotation rotates the lead screw on the mill producing the desired movement.<\/span><\/p>\n<p>While this is a simple procedure, there is one serious problem. Let\u2019s say we want the milling table to move one inch in the longitudinal (x) direction. We program the computer to do that. It sends the appropriate pulses to the controller and the controller does its part. But, let\u2019s assume the table hits a stop before it moves an inch.\u00a0 The computer and controller have no way of knowing that and are programmed to assume the correct distance has been achieved. If the table moves three quarters of an inch before hitting the stop, then all subsequent moves in the x-direction will be off by a quarter inch. The same thing can result with too high of a feed rate. If you program the computer to move the cutter at a feed rate faster then the stepper motors can power the table, there will be a discrepancy between the actual table movement and what the computer program thinks has occurred. (While a servo motor uses a feedback system to prevent this problem, the electronics are a lot more complicated and expensive.)<\/p>\n<p>At the same time I was involved with ordering and installing stepper motors, I started looking at various software packages for the computer. I had previous experience using a couple different packages but they weren\u2019t on a PC. I wanted one that was designed specifically for a PC and settled on a program called \u201cMach 3\u201d published by Artsoft (<a href=\"http:\/\/www.machsupport.com\/\">http:\/\/www.machsupport.com\/<\/a>). Artsoft provides a trial download that can be used for programs less then 500 lines. It\u2019s a reasonably priced program and there\u2019s a forum to get any questions answered. It is a really great program. I\u2019ll include a sample program later in this article if you\u2019ve never worked with CNC code (called G-code) before.<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-827\" alt=\"CNC pic 4\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-4.jpg\" width=\"300\" height=\"224\" \/><\/a>With the software selected (and actually while I was looking at different software packages), I was looking at stepper motors and controllers. With no real expertise in this area, I wanted to go with \u201cplenty big\u201d to make sure the motors were powerful enough to move the mill table without missing any steps. I selected a 500 oz-in Model No. RS23-500 stepper motor sold through\u00a0<a href=\"http:\/\/www.homeshopcnc.com\/\">http:\/\/www.homeshopcnc.com\/<\/a> . The RS23-500 has a rated voltage of 3 volts and a rated current of 3 amps (That\u2019s important information as you\u2019ll see later). These motors are bipolar 4-wire, 2 phase and have a 1.8 degree step angle.\u00a0 When I did all the research I could explain what all that meant.\u00a0 For now, the important stuff is that it has 4 wires (two circuits) and a 1.8 degree step angle.\u00a0 Homeshopcnc has a promotion that allows the purchase of a Geckodrive G201 controller at a reduced price with the purchase of each stepper motor. The G201 is manufactured by Geckodrive Motor Controls (<a href=\"http:\/\/www.geckodrive.com\/\">http:\/\/www.geckodrive.com\/<\/a>). Originally I only purchased one stepper motor and controller to make sure I could get everything to work. Eventually I purchased a total of 3 stepper motors and 3 controllers \u2013 one for each axis of the mill.\u00a0 I should also mention here that the 500 oz-in was just a really wild guess.\u00a0 I used a spring scale to measure the force I had to apply to the horizontal feed on the Rung-Fu to get an approximation of the torqure required.\u00a0 I went &#8220;plenty big&#8221; from the value I obtained.<\/p>\n<p>Mounting the stepper motors was one of the easiest parts of the process. I made plates to hold the stepper motors and mounted them by using longer bolts in the end supports for the x and y lead screws. The plates had slots machined to allow for final belt adjustment.\u00a0 I purchased timing belt pulleys from D J Manufacturing (<a href=\"http:\/\/www.janick.com\/dj\/\">http:\/\/www.janick.com\/dj\/<\/a>).\u00a0\u00a0 I found D J Manufacturing to be a very good company to deal with. I used a 2 to 1 reduction from the stepper motor to the lead screw in order to double the torque from the motor to the lead screw.\u00a0\u00a0 All the timing pulleys were double flanged with a 3\/8\u201d pitch and a \u00bd\u201d belt width. The pulley on the stepper motor had 12 grooves and the one on the lead screw had 24 grooves.\u00a0\u00a0 For the pulley that went on the end of the lead screw, I cut out material to match the hand pulley mounts. The pulley shown is one purchased when I\u2019d planned to have a 1 to 1 ratio on the pulleys. The 2 to 1 reduction gave me more torque, and the Mach3 software has an easy way to handle the speed reduction between the stepper motor and lead screw.\u00a0 The timing belts were purchased from McMaster Carr (<a href=\"http:\/\/www.mcmaster.com\/\">http:\/\/www.mcmaster.com\/<\/a>).\u00a0 There\u2019s an exact formula that can be used when you pick a center distance between your pulleys, but you can get a close approximate by adding half the circumference of each pulley to twice the center distance. I actually calculated the center distance, but if you make provision for some adjustment the method I mentioned above should be close enough.\u00a0\u00a0 The formula is pretty complicated.<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-828\" alt=\"CNC pic 5\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-5.jpg\" width=\"300\" height=\"244\" \/><\/a><\/p>\n<p>The x-axis mount looks like:<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-829\" alt=\"CNC pic 6\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-6.jpg\" width=\"300\" height=\"220\" \/><\/a><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-830\" alt=\"CNC pic 7\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-7.jpg\" width=\"300\" height=\"219\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>It\u2019s not easy to see in the pictures, but the plate that holds the stepper motor is connected to the plate connected to the mill with three pieces of all thread. That allowed for adjustment in and out to align the two pulleys.\u00a0 You can see the two bolts that holds the plate to the mill table.<\/p>\n<p>&nbsp;<\/p>\n<p>The y-axis mount looks like:<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-831\" alt=\"CNC pic 8\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-8.jpg\" width=\"300\" height=\"226\" \/><\/a><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-9.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-832\" alt=\"CNC pic 9\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-9.jpg\" width=\"300\" height=\"245\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Since the y-axis drive is mounted to the milling machine base rather then the table, it had to be mounted lower to allow the table to move over the top of it.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The z-axis presented a greater challenge. There was no easy method of connecting a supporting plate to the spindle depth control. There were some mounting holes that would\u2019ve been used if I\u2019d purchased the power feed option. So, I made a bracket that ran from that location at the back of the machine to the front that could be used to mount the stepper motor.<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-10.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-834\" alt=\"CNC pic 10\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-10.jpg\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Because of the limited space available the z-axis used a 1 to 1 reduction drive. Again, the Mach3 software easily accommodated the different speed reduction.\u00a0 As can be seen in the photo above, the z-axis support also was the location of the E-stop (emergency stop).<\/p>\n<p><span style=\"line-height: 1.5;\"><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-11.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-835\" alt=\"CNC pic 11\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-11.jpg\" width=\"300\" height=\"226\" \/><\/a>With the hardware all mounted, it was time to return to wiring in the controls.\u00a0 The G201 connects to the computer through the computer\u2019s parallel port. I purchased an interface board to simplify the wiring between the computer and controller. The interface board is a C1G \u2013 Parallel Port Interface Card manufactured by CNC4PC (<a href=\"http:\/\/www.cnc4pc.com\/\">http:\/\/www.cnc4pc.com\/<\/a>). The C1G card allowed me to run a standard parallel cable from the computer to the card without messing with a lot of small wires. The C1G has a screw terminal for each pin on the parallel port connector. For someone that didn&#8217;t want the hassle of trying to identify which pin was connected to which small wire, that made the connections a lot simpler and bullet proof.\u00a0 Individual wires are run from each screw terminal on the C1G card to each controller (3 wires to each controller). The C1G interface card also allows for the simple installation of an emergency stop and \u201chome\u201d limit switches. I used the emergency stop function but not the home limit switches.<\/span><\/p>\n<p>Fortunately for the \u201celectronically challenged\u201d the Gecko website has a lot of useful information and simple schematics. I found their basic tutorial to be very useful. (<a href=\"http:\/\/www.geckodrive.com\/upload\/Step_motor_basics.pdf\">http:\/\/www.geckodrive.com\/upload\/Step_motor_basics.pdf<\/a>) If you just scan through the beginning of the article, the middle of the article contains the good stuff \u2013 how to power your stepper motors.\u00a0\u00a0 As mentioned earlier, the controller (powered by a 5 volt d.c. source) controls a power source to the stepper motor field windings to energize them and cause a step. Gecko recommends an unregulated power source capable of supplying from 3 to 25 times the motor\u2019s rated voltage. (The higher voltage can be used because of the manner in which the G201 pulses each step.\u00a0 A continuous voltage of that magnitude would cause the motor to overheat.)\u00a0\u00a0 Since the motor I chose is rated at 3 volts, I needed a power source that supplied between 15 and 75 volts. Below is a schematic for an unregulated power supply.<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-12.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-836\" alt=\"CNC pic 12\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-12.jpg\" width=\"300\" height=\"137\" \/><\/a><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-13.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-837\" alt=\"CNC pic 13\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-13.jpg\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I located a 24 volt (12 amp) transformer which will produce around 34 volts output to the controller \u2013 (1.414 * 24 = 33.94) &#8212; it\u2019s an electrical thing!!! The rectifier had to be capable of handling 9 amps.\u00a0 (Worst case, the motors each draw 3 amps.\u00a0 3\u00a0 motors X 3 amps\/motor = 9 amps.)\u00a0 A friend supplied me with a rectifier capable of handling 10 amps. The Gecko website gives an equation to calculate the minimum required capacitance based on the motor\u2019s rated voltage and current. (C = 80,000 * I\/V) Since the motor I chose has a rated current of 3 amps and the supply voltage is 33.94, C = 80,000 * 3\/33.94 = 7,071 microfarad. I located a 13,000 microfarad, 24 volt capacitor, and I was ready to start wiring.<\/p>\n<p><span style=\"line-height: 1.5;\">I located an old computer and removed all the \u201cinternals\u201d except the on\/off switch and the power supply. I originally used the computer power supply to supply 5 volts d.c. for the C1G and the G201. But, when I first tried the system, the computer power supply did not supply enough current. So, a good friend supplied me with a 5 volt d.c. power supply capable of doing the job. Sorry that I can\u2019t tell you much more then that about it, but he just said it was \u201cplenty big enough.\u201d<\/span><\/p>\n<p><span style=\"line-height: 1.5;\"><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-14.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-838\" alt=\"CNC pic 14\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-14-291x300.jpg\" width=\"291\" height=\"300\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-14-291x300.jpg 291w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-14.jpg 300w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-15.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-839\" alt=\"CNC pic 15\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-15.jpg\" width=\"300\" height=\"279\" \/><\/a>On the left is the C1G schematic supplied by the manufacturer. On the right is a picture of the actual board. The wiring is pretty simple. (Selecting all the components is the hard part.) A parallel interface cable is run from the computer to the C1G. (The connector is on the middle of the left side of the board in the picture.)\u00a0 The Mach 3 software lets you specify the output for each pin of the parallel connector. You can also specify a pin to use as an emergency stop (Estop).<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I downloaded the Mach 3 software and installed it according to the manufacture\u2019s instructions. The opening menu for the Mach 3 software looks like:<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-16.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-840\" alt=\"CNC pic 16\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-16-300x208.jpg\" width=\"300\" height=\"208\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-16-300x208.jpg 300w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-16.jpg 1015w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Each of the stepper motor controllers (G201 controller) must receive two signals (a signal to step and a signal to indicate the direction) as well as a common (ground) from the C1G board (which receives it&#8217;s signal from the computer).\u00a0 The Mach3 software allows you to specify what signal is sent on each pin number.\u00a0 Notice the top menu of the Mach3 software contains a &#8220;Config&#8221; tab that can be used for this purpose.<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-17.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-841\" alt=\"CNC pic 17\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-17-300x15.jpg\" width=\"300\" height=\"15\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-17-300x15.jpg 300w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-17.jpg 477w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The drop down menu for the Config tab is:<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-18.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-842\" alt=\"CNC pic 18\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-18-148x300.jpg\" width=\"148\" height=\"300\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-18-148x300.jpg 148w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-18.jpg 218w\" sizes=\"auto, (max-width: 148px) 100vw, 148px\" \/><\/a><\/p>\n<p>I&#8217;ll talk about some of the others later, but for right now we&#8217;re just interested in the Ports and Pins selection.\u00a0 The Ports and Pins menu is used to assign outputs to the parallel port pins.\u00a0 Selecting Ports and Pins:<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-19.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-843\" alt=\"CNC pic 19\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-19-300x184.jpg\" width=\"300\" height=\"184\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-19-300x184.jpg 300w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-19.jpg 828w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Notice from the figure above that for the way I have it set up for the x-axis, Pin 2 is used for the direction and Pin 3 is used to indicate a step.\u00a0 Likewise Pins 4 and 5 are used for the y-axis and Pins 6 and 7 are used for the z-axis.\u00a0 That means that screw terminals 2 and 3 on the C1G board will have the outputs for the x-axis, screw terminals 4 and 5 will have the outputs for the y-axis and terminals 6 and 7 will have the outputs for the z-axis.<\/p>\n<p><span style=\"line-height: 1.5;\">The 5 volt supply (and ground) is also connected to the C1G (lower left corner in the picture). +5 volts must also be supplied to the EN position shown in the lower left corner. This connection can be used in conjunction with the G201 for an emergency stop.\u00a0 Three wires must be run from the C1G to each of the G201 controllers corresponding to a step command, a direction command and common (ground).<\/span><\/p>\n<p><span style=\"line-height: 1.5;\"><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-20.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-844\" alt=\"CNC pic 20\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-20.jpg\" width=\"300\" height=\"286\" \/><\/a>Since the wiring for each axis is basically the same, I&#8217;ll just explain the wiring for the x-axis.\u00a0 The cable that runs from the computer to the C1G is a standard parallel cable.\u00a0 Additionally, as explained above, the 5 volt supply has to be connected to the C1G.\u00a0 Next is the wiring for the G201 shown at the left.\u00a0 The common and voltage from the unregulated power supply connects to the first two terminals (bottom left in the picture).\u00a0 The G201 instructions recommends a fuse be placed in the voltage line between the unregulated power supply and the G201 connection.\u00a0 I used a 5 amp fuse.\u00a0 The next 4 connections are for the 4 wires from the stepper motor.\u00a0 The important thing here is to make sure the connections to Phase A and Phase B make a complete circuit and the connections to Phase C and Phase D make a complete circuit.\u00a0 I used an ohm meter to check for continuity to determine which pair of wires on the motor formed a completed circuit.\u00a0 Either pair can be connected first.\u00a0 If after everything is connected and running the stepper motor rotates in the wrong direction, just switch the connection from Phase A to Phase B and from Phase B to Phase A.\u00a0 That will reverse the direction of rotation.\u00a0 I didn&#8217;t use the next connection &#8212; Disable.\u00a0 For the x-axis, I ran a wire from Screw Terminal 2 on the C1G board to the Dir connection on the G201 (Remember this was specified in the Mach3 software).\u00a0 Likewise, the Step connection required a wire from Screw Terminal 3 to the Step connection on the G201.\u00a0 Additionally, a wire was run from a Common Screw Terminal on the C1G (there&#8217;s lots of common terminals available) to the Common Terminal on the G201.\u00a0 The value of the resistor that goes between the last two terminals can be determined from the table on the G201 module.\u00a0 Since the stepper motor I used was rated at 3 amps, I located a 36K ohm resistance and connected it between the two terminals.\u00a0 And, that&#8217;s the wiring for the x-axis.<\/span><\/p>\n<p><span style=\"line-height: 1.5;\">The wiring for the other two axes is basically the same.\u00a0 Obviously the Direction and Step connection would have to be with the correct connection on the C1G.\u00a0 Also, the G201 instructions specify that independent connections must be run from the unregulated power supply to each G201 contoller and each connection should contain it&#8217;s own fuse.<\/span><\/p>\n<p><span style=\"line-height: 1.5;\">And that&#8217;s all the wiring.\u00a0 There&#8217;s still some &#8220;software stuff&#8221; that has to be done before the system is ready to go, but we&#8217;re getting close!!!<\/span><\/p>\n<p>For the system to work properly, the Mach3 software must send the correct number of pulses to the stepper motor to get the exact movement required. Remember the Config menu:<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-21.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-845\" alt=\"CNC pic 21\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-21-148x300.jpg\" width=\"148\" height=\"300\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-21-148x300.jpg 148w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-21.jpg 218w\" sizes=\"auto, (max-width: 148px) 100vw, 148px\" \/><\/a><\/p>\n<p>Selecting \u201cSelect Native Units\u201d<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-22.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-846\" alt=\"CNC pic 22\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-22-300x258.jpg\" width=\"300\" height=\"258\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-22-300x258.jpg 300w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-22.jpg 304w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I set my system for Inches since my lead screw used inches. The Mach3 manual has a good discussion on using mixed units if one so desired. With the units set, I could configure the software to match the motors. The lead screws on the mill had 10 threads per inch or a pitch of .1 inches\/thread. That means the lead screw has to turn 10 revolutions\/inch. Since I used a 2:1 reduction from the motor to the lead screw, the stepper motor must turn 20 revolutions\/inch of table movement in the x and y directions. (Remember the z-axis was 1:1 so that stepper motor would turn 10 revolutions\/inch.) The stepper motor moves 1.8 degrees per step. So, it would require 200 steps\/revolution. (360 degrees\/revolution\u00a0 \/\u00a0 1.8 degrees\/step\u00a0\u00a0 =\u00a0\u00a0 200 steps\/revolution) The G201 sends out 10 pulses\/step. (That was in the literature \u2013 it\u2019s nothing to be calculated.) Since it takes 200 steps\/revolution and the G201 sends out 10 pulses\/step, it will require 2000 pulses\/revolution. (200 steps\/revolution X 10 pulses\/step = 2000 pulses\/revolution.) Therefore, the Mach3 must send out 40,000 pulses\/inch (2000 pulses\/revolution X 20 revolutions\/inch = 40,000 pulses\/inch). While this may seem a little complicated if you\u2019ve never dealt with it before, the Mach3 manual does a good job of stepping you through the process. What we need to know is that it requires 40,000 pulses\/inch for the x and y-axis and half that, 20,000 pulses\/inch, for the z-axis.<\/p>\n<p><span style=\"line-height: 1.5;\">Now, again under the Config menu, there\u2019s a Motor Tuning option:<\/span><\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-23.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-847\" alt=\"CNC pic 23\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-23.jpg\" width=\"300\" height=\"193\" \/><\/a><\/p>\n<p><span style=\"line-height: 1.5;\">Enter 40000 in the Steps per box. The Mach3 manual has a good discussion on setting the velocity and acceleration, but I just tried it and found what would work. Be sure to save your settings and repeat the procedure for each axis.<\/span><\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-24.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-848\" alt=\"CNC pic 24\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-24-154x300.jpg\" width=\"154\" height=\"300\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-24-154x300.jpg 154w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-24.jpg 372w\" sizes=\"auto, (max-width: 154px) 100vw, 154px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The system is now ready to try out!!! I did all my trials before actually installing the timing belts to make sure everything was working properly. The easiest way to make a quick check is to hit the \u201cTab\u201d key and the Mach3 software displays:<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>And you can mouse click on the appropriate axis to \u201cJog\u201d it to a new location. Holding down the \u201cshift\u201d key while you click on the appropriate tab will result in rapid traverse. If everything is installed correctly, the axis you\u2019ve chosen should move. Note: You\u2019ll have to hit the Reset button on the opening menu before you can jog any axis. The red button above the Reset button should turn green if everything is ready to go.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The other method of checking your work is to use the \u201cImmediate Mode\u201d. Notice on the opening menu, there\u2019s several menu selections:<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-25.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-850\" alt=\"CNC pic 25\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-25-300x12.jpg\" width=\"300\" height=\"12\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-25-300x12.jpg 300w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-25.jpg 1014w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Selecting the second menu item (MDI Alt2) puts you in the immediate mode:<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-26.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-851\" alt=\"CNC pic 26\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-26.jpg\" width=\"300\" height=\"210\" \/><\/a><\/p>\n<p>Entering a command in the Input line and hitting the return key will execute that command. Again, I should point out the button above the reset button must be green; not red as shown in the above picture.<\/p>\n<p>And, that\u2019s it. The Mach3 has a world of capability not discussed here. There\u2019s a lot more that you can do with it, but I\u2019ve just covered the basics here. There is one more thing you must do before doing any actual machining. Under the Config menu you may have noticed a \u201cBacklash\u201d item. Before doing any milling you must determine the amount of backlash for each axis and enter it here:<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-27.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-852\" alt=\"CNC pic 27\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-27-206x300.jpg\" width=\"206\" height=\"300\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-27-206x300.jpg 206w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-27.jpg 362w\" sizes=\"auto, (max-width: 206px) 100vw, 206px\" \/><\/a><\/p>\n<p>Be sure you check the \u201cBacklash Enabled\u201d box.<\/p>\n<p>And, that\u2019s it. As I said at the beginning, this was completely out of my area of expertise. For that reason it was one of the most satisfying projects I\u2019ve completed and, to be honest, I was rather proud of myself when it all worked. I learned a lot and I\u2019m sure I\u2019ve forgotten over half of what I learned. One of the main reasons for writing this article was so I\u2019d have a record if I ever need to change or redo something. I\u2019m not a machinist by trade or training so I just use the basic stuff from the Mach3. But, if you are a machinist or plan to do some serious machining the Mach3 has a whole lot more capability then what I\u2019ve discussed here.\u00a0 I barely touched on it&#8217;s capabilities above.<\/p>\n<p>Here&#8217;s a picture of the finished project.\u00a0\u00a0 It&#8217;s hard to get a good picture where it&#8217;s located in my shop, but this should give an idea of what it looks like:<\/p>\n<p><a href=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-28.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-853\" alt=\"CNC pic 28\" src=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-28-227x300.jpg\" width=\"227\" height=\"300\" srcset=\"https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-28-227x300.jpg 227w, https:\/\/cubcadetman.com\/cc\/wp-content\/uploads\/2009\/11\/CNC-pic-28.jpg 434w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><\/a><\/p>\n<p><span style=\"line-height: 1.5;\">I hope you find the article useful. If you plan to convert a mill, I hope you get as much enjoyment out of the project as I did. I didn\u2019t keep a real accurate record, but I think the entire conversion cost me around $600 not including the cost of the mill. Of course, I had the electronics for both the 5 volt and unregulated power supplies given to me by friends.<\/span><\/p>\n<p>When I get a chance I\u2019ll add a simple G-code program to this article. I\u2019m planning on illustrating how to cut a 1\u201d long, \u00bc\u201d slot in a 2\u201d by 2\u201d piece of \u00bc\u201d steel. That\u2019s pretty simple but it will illustrate how simple G-code programming can be.<\/p>\n<p>As always, if you have any questions or comments, you can contact me through this website.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE:\u00a0 This is an article that I&#8217;ve been working on quite some time.\u00a0 I have to go back and look up a lot of records to determine what I did and why so it&#8217;s going really slowly.\u00a0 I finally decided I&#8217;d go ahead and put what I have on the web and add\/change it when [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4],"tags":[],"class_list":["post-585","post","type-post","status-publish","format-standard","hentry","category-special-projects"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lT6g-9r","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cubcadetman.com\/cc\/wp-json\/wp\/v2\/posts\/585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cubcadetman.com\/cc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cubcadetman.com\/cc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cubcadetman.com\/cc\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cubcadetman.com\/cc\/wp-json\/wp\/v2\/comments?post=585"}],"version-history":[{"count":9,"href":"https:\/\/cubcadetman.com\/cc\/wp-json\/wp\/v2\/posts\/585\/revisions"}],"predecessor-version":[{"id":822,"href":"https:\/\/cubcadetman.com\/cc\/wp-json\/wp\/v2\/posts\/585\/revisions\/822"}],"wp:attachment":[{"href":"https:\/\/cubcadetman.com\/cc\/wp-json\/wp\/v2\/media?parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cubcadetman.com\/cc\/wp-json\/wp\/v2\/categories?post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cubcadetman.com\/cc\/wp-json\/wp\/v2\/tags?post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}