Tool Changing

image_print
  Page Suggestions?

As you begin tackling more complex CNC projects, you’ll start to notice that running multi-tool jobs becomes a necessity. Using multiple bits on the same workpiece can save time or achieve greater detail and give you the carving flexibility you need; whether it’s a v-bit for engraving and an end mill for profiling, or an end mill for roughing and a tapered bit for finishing.

Method 1: Separate Files

This is the easiest and most straight forward approach to tool changing. Many CAM programs allow for each toolpath to be exported as separate files. By creating separate g-code files for each cutting tool you’ll be using, you can just:

  1. Start with your first tool and first file
  2. Wait for the file to complete then jog your router off to the side
  3. Change the cutting tool out for the second one
  4. Use a touch plate or tool length sensor to measure the new zero point (off your wasteboard or material, depending on how you set up the job)
  5. Reposition and run the second file
  6. Repeat this process until completion

Just be sure to give each file a clear naming scheme so you execute them in the right order and with the right tool. For example, your first file could be called “cat_1_v-bit”, then your second “cat_2_endmill”, and your third “cat_3_tapered”. You can also specify the tool size or angle, any other prompts that ensure you run the order of files successfully with their corresponding bits.

Method 2: Manual Editing

This method will also work for g-code sending programs that do not have tool changing functionality, the difference with this one is that all the toolpaths will be in one file. The instructions below are written in millimetre values, however you can replace the values to be in inches as long as the g-code was generated using inches.

This is a tool change method inspired by the work of Stuart McRae (a LongMill customer).

Setup

  1. Generate your g-code to the file format .nc or .gcode.
  2. Zero your machine in the X, Y, and Z on the mounted stock material.
  3. Open up the g-code using NC Viewer and check the first few lines for the call-out of the correct units (G20 for inches, G21 for mm) and for G90, absolute coordinates.
  4. Go line by line to find where the tool changes should occur, by looking at the toolpath visualization on NC Viewer. Use your mouse or keyboard to move to each line, and you should see an end mill following the coordinates called out in the g-code.
  5. Add the following g-code for each tool change.
    G-code Explanation
    Z20.00 Raises the bit to 20mm above your zero.
    X?.??Y?.?? Moves bit to a defined XY position. This is the location of your tool change. CHANGE THIS to a position in which the stock material hasn’t been cut, and is accessible.
    M0; Pauses job. This is when you turn off the router, change your bit and lower your router manually via Z-axis pulley to zero the bit with a piece of paper. Once you are done you will turn on the router and press PLAY on the g-code sender program.
    G92Z0.125 Sets the current Z position as 0.125mm (paper thickness) above your zero. So it now knows where the Z-axis zero is.
    G0Z25.00 Raises your bit 25mm above your zero.
  6. Save the g-code you just edited as a new file on your computer.
  7. Load the file into your g-code sender program.
  8. The machine will run through the first toolpath, cutting into the material, then will lift up and move to the bit changing position you defined. It will stop moving, in a HOLD state, until you press PLAY. Complete the tool change and zero the machine manually – note that the surface will be marked by the bit once you turn your router back on.
  9. Repeat Step 8 for each tool change.

Below are some examples of how to input the tool changing g-code, which are in bold.

EXAMPLE 1: Carbide Create

G90
G21
(Toolpath 3)
M05
M0 ;T102
M03S18000
G0X12.00Y10.41Z5.00
G1Z-1.00F457.2
X36.00F1524.0
Z5.00
(Toolpath 4)
Z20.00
X5.00Y20.00
M0 ;T201 // this line was already in the g-code
G92Z0.125
G0Z25.00
S18000
G0X12.26Y22.84
G1Z-1.00F381.0
X36.26F2286.0
Z5.00
M05
M02


EXAMPLE 2: CAMLab

G21
G90
G0 X7.2948 Y-8.1954 Z2.0
G1 Z-0.6522 F2000
G1 X-16.3552
G1 Y-8.2454
G1 X7.2948
G1 Y-8.1954
G0 Z2.0
G0 Y8.6204
G1 Z-0.6522
G1 Y8.6704
G1 X-16.3552
G1 Y8.6204
G1 X7.2948
G0 Z2.0
Z20.00
X5.00Y20.00
M0
G92Z0.125
G0Z25.00

Method 3: gSender Tool Change

The g-code for tool changing is an M6 command, in which the program will pause until the user tells it to continue, usually through a ‘Resume’ and/or ‘Confirm Tool Change’ button on the machine interface program. In CAM programs, this M6 will be inserted in your g-code if there are toolpaths using different bits, thus requiring tool changes. On gSender, you can program what happens when there is M6 in your g-code, therefore allowing you to easily change your bits with pre-programmed actions. Full instructions can be found here.

 

Tags: