M codes tell the machine what to do, M01 is an optional stop, M03 starts the spindle. So far we've brought the tool changer to position 1 but the tools not in the spindle yet. Haas lathes dont use the offset number, instead they use the mill format 'T01' and 'T1'. Bachin CNC-2418 Software-Candle Use Tutorial This calls up tool number 1 and applies off set 01 to it, before a tool change you'll need to program 'T' to clear the offest before the next tool. On cnc lathes it will be trailed by an off set number like 'T'. This should look like this 'T01' or possibly just 'T1'. First type in the letter 'T' and follow it with a number. This step is for people lucky enough to have an automatic tool changer ATC. Now this leaves us safely at the machine home position. G49, to cancel the cutter height compensation. G21, to select metric G40, to cancel cutter compensation. G20, to select the inch coordinate system. G17, to select the x, y circular motion field. G80, to cancel any previously used canned cycles. Following that I have: G90, for absolute position mode. It will be in rapid so we program 'G00' this tells the machine that it should move as fast as it can or is programmed to. Once the program has a name its time to think about safety, the third line. After the capital O and with no spaces there should be 4 or 5 letters. If the character there is a zero the machine will throw an error code. The next line should start with a capital 'o'. Did you use this instructable in your classroom?Īdd a Teacher Note to share how you incorporated it into your lesson.