Page tree
Skip to end of metadata
Go to start of metadata

A tool change in the control program is called using the macro M06, with or without Tx parameter (where x is the tool number).

The PUMOTIX software product provides users with the ability to change tools according to one of the 4 proposed scenarios.

Scenario 0: Default - installed in the program by default.

The call of the tool change command in the control program is ignored without notifying the user.

To use the tool change macro, go to “Configuration” → “Settings” → “G-code” → “G-code Interpretation Params” and uncheck the box “Ignore tool change (M06)”. Then click the “Apply” button and close the settings window.

The scenarios described below are implemented using various configurations of the M06 macro.

We recommend setting the required tool change mode immediately after installing PUMOTIX.

To apply the required configuration, go to %ProgramFiles%\PUMOTIX\DefaultMacros\\Toolchange and select the necessary script for the M06 macro in one of the folders (Auto or Semiauto). Then copy it and replace it in the folder at %UserProfile%\Local Settings\Application Data\Purelogic\PUMOTIX\Server\Macros.

Scenario 1: Pause control program.

This scenario is embedded in the standard macro M06 and will be executed without additional changes. When the tool change command is called from the control unit, the spindle rises to the SafeZ height, stops rotation and remains in place, allowing any changes to be made, including additional measurements to correct coordinates in the program.

Scenario 2: Semi-automatic tool change (the macro file is located in the Semiauto folder).

Semi-automatic tool change occurs sequentially according to the following algorithm of actions:

  1. Raising to a height SafeZ, if it has been set.
  2. Spindle shutdown.
  3. Moving to the tool change point. (more ...)
  4. Turn on standby mode (the "Replace" indicator flashes in yellow).All previous operations are performed automatically, receiving instructions from the macro.
  5. Replacement of the cutting tool (milling cutter) - is carried out manually by the operator, subsequent measurements are optional.
  6. After replacing the tool, the operator needs to click the "Start" button in the PUMOTIX interface so that the macro terminates the program.
  7. Auto-correction of tool length (auto-testing). The procedure does not require additional moves, since the probing point is by default located at the tool change point.
  8. Turning on the spindle, restoring the initial state of the system.
  9. Starting further execution of G-Code.


To change the behavior of the M06 macro, you can edit it yourself and lay down the logic of actions convenient for you! (More: How to Create a Custom Macro?)

Scenario 3: Automatic tool change (the macro file is in the Auto folder).

Automatic tool change occurs sequentially according to the following algorithm of actions:

  1. Raising to a height SafeZ, if it has been set.
  2. Spindle shutdown.
  3. Moving to the tool change point.

To analyze further actions, look at the “Tool Table” window directly in the PUMOTIX program (“Configuration” → “Tool Table”).

At the bottom of the window is the “Tool Change Mode” field, containing the selection and input of coordinates of the tool change point.

When you select "From the Tool table" for each of the tools added to the table, it becomes possible to enter individual shift coordinates. According to these coordinates, further actions take place that look as follows:

  1. Move to the cell of the current tool.
  2. Reset the current tool to a cell.
  3. Move to the cell of a new tool.
  4. Capture a new tool.

When selecting “Joint for all Tools”, a single change point is set, and the tool change itself contains the following steps:

  1. Moving to the shift point and reset the current tool.
  2. Capture a new tool.

In place of points 2, 4 and 6, the individual control logic is manually prescribed, based on the features of the apparatus for changing the tool, its connection and other conditions.

After capturing a new tool, the program automatically adjusts the height taking into account the “Length” parameter from the “Tool Table”, and then returns to the G-Code.

When using this scenario, user intervention is not required, all actions are performed as part of the control program.