# T-Code - Beyond G-Code?

**URL:** <https://klipper.discourse.group/t/t-code-beyond-g-code/21793>\
**Category:** Features\
**Created:** [February 2, 2025, 9:57pm UTC](https://klipper.discourse.group/t/t-code-beyond-g-code/21793 "2025-02-02T21:57:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dJOS\_500](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/djos_500/32/5001_2.png) [@dJOS\_500](https://klipper.discourse.group/u/dJOS_500)\
**Post date:** [February 2, 2025, 9:57pm UTC](https://klipper.discourse.group/t/t-code-beyond-g-code/21793/1 "2025-02-02T21:57:45Z")

</div>

One of the chaps on the teaching Tech forum (Dieter) came across this and I thought it was interesting enough to share here.

> **[Beyond G-Code: Hopkins Engineers Develop New Control Method for More Advanced...](https://engineering.jhu.edu/case/news/beyond-g-code-hopkins-engineers-develop-new-control-method-for-more-advanced-3d-printing/)**
>
> In a major advancement for 3D printing, researchers in the Whiting School of Engineering’s Department of Civil and Systems Engineering have developed a new 3D printer control method that promises…

More detailed info:

[https://www.nature.com/articles/s41467-025-56140-1](https://www.nature.com/articles/s41467-025-56140-1)

While the T-code concept is interesting, this graphic makes no sense to me, it just looks like the results from an old printer running Marlin that doesn’t have pressure advance or input shaping enabled?

 ![SCR-20250203-idvh](https://global.discourse-cdn.com/free1/uploads/klipper/original/3X/b/6/b6f9928960e7a9eed9b1393610212ffa35ca205a.jpeg)

I’m curious as to what others think, is this something worth adding to Klipper in some form (eg under the hood re-processing), or is it based on a flawed understanding of current printer firmwares like Klipper?

---

<div class="post-metadata">

**Author:** ![koconnor](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@koconnor](https://klipper.discourse.group/u/koconnor)\
**Post date:** [February 3, 2025, 2:57am UTC](https://klipper.discourse.group/t/t-code-beyond-g-code/21793/2 "2025-02-03T02:57:19Z")

</div>

For what it is worth, the authors of that Nature article don’t seem to be aware of the common 3d printing firmware techniques. For example, they state, “this limitation stems from the line-by-line execution of G-Code, requiring the printer to decelerate and stop at each new line”. That hasn’t been true of 3d printers since the very early days of RepRap. All modern firmware implement “lookahead” to avoid full stops between moves. Klipper (and others) can also process “auxiliary” commands between movements without introducing zero velocity pauses.

I didn’t see an example of their “T-Code”, but at a very high-level the Klipper host code translates G-Code to precisely timed commands that are sent to the MCUs. So, in a sense, one could say Klipper is a G-Code to “T-Code” converter. In my brief scan of that paper it wasn’t clear to me if that’s what the authors were describing though.

Also, the paper seems to be about “Direct Ink Writing” which may have sufficient differences from Fused Filament type 3d printers. So, I don’t know if programs like Klipper would apply to their goals.

Cheers,  
-Kevin

---

<div class="post-metadata">

**Author:** ![dJOS\_500](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/djos_500/32/5001_2.png) [@dJOS\_500](https://klipper.discourse.group/u/dJOS_500)\
**Post date:** [February 3, 2025, 3:10am UTC](https://klipper.discourse.group/t/t-code-beyond-g-code/21793/3 "2025-02-03T03:10:03Z")

</div>

> [@koconnor](#):
>
> For what it is worth, the authors of that Nature article don’t seem to be aware of the common 3d printing firmware techniques.

Oh good, I wasn’t imagining things, thank you for the well thought out answer. 👍

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [April 4, 2025, 3:10am UTC](https://klipper.discourse.group/t/t-code-beyond-g-code/21793/4 "2025-04-04T03:10:57Z")

</div>

Closed on April 4, 2025, 3:10am UTC

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