{tool} reference in custom GCode menu

I am using the Redline configuration in the custom GCode menu. When I try and edit the “tool change” field using the {tool} reference (T{tool}), the output for {tool} does not output the tool number, but rather a random decimal value. This is what the example below the field shows: T0.118

When I save the GCode, the {tool} value ends up being random decimals for each tool change.

My controller end up giving me an error saying this is not a true tool value.

What did you assign to each field for the tool in the Tool Library?

My tool change GCode looks like this:

Tool 3, 2 flute 1/8” endmill

Here is my config for the tool change:

Here is my tool settings (The tool should result in a T2):

And here is the saved GCode result:

From what I understand the result should be:
T2
M6

I’m willing to bet that this is a bug where the tool number is incorrectly being converted from mm to inches when using inches as the unit.

This would be way too much of a coincidence:

0.0787 in = 2 mm
0.118 in = 3 mm

1 Like

You were totally right! I changed my device units to metric, and the tool number is showing accurately now.

So I guess it is a bug.

1 Like