Drill File issue, T0 purpose?

when creating a drill file the export adds a T0 second line from the bottom. This unfortunately is causing some issues to an online cnc program copper.carbide3d.com . Is there a way to suppress this?
I have to manually delete this one line for the online cnc prep program to read the file. Eagle does not add a T0 near the end. At least it is working now. But have to remember to delete this line each time.
example output of a drill file.

M48
METRIC,TZ
T1C0.700
T2C0.800
%
G90
G05
T1
X7620Y8890
X7620Y3810
X15240Y8890
X15240Y3810
T2
X3810Y3810
T0 <-delete this
M30

JP just removed it in master: Pcbnew, Excellon export: remove an useless line at end of file (f6bbf498) · Commits · KiCad / KiCad Source Code / kicad · GitLab

I saw this change now when exporting the drill files when using 7.0.10 and I am curious what is the function of this T0. Do you guys have any idea?

Edit: ChatGPT said T0 is a tool change command. Is it right this time?

T is for Tool

Both Gcode and Mcode can use T but, usage depends on the Code Post-Processor that produces the G/M code. They can also extend the T to include Cutter/Bit type…

In your post above, T1C0.700 refers to Tool #1, Diam=0.7mm The ‘C’ most likely refers to 'C’utter or 'C’onical or 'C’Cylindrical

You can try using differet Tool types and inspect the G/Mcode to see what it does to tool syntax.

Screenshot below is for my CNC Mill and shows T14M06

T14 refers to my tool’s number in the list of tools. M06 is the mcode for Tool change. (EM 0.7mm) speaks for itself…

You could look for this kind of stuff on internet

Screen Shot 2024-01-05 at 13.03.08

T# is Tool Selection command.

T0 command will “leave no tool in spindle”, according to Bug #1475348 “Unnecessary/Invalid Excellon command in NC drill f...” : Bugs : KiCad

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.