From 0938a85bf6eb25e8032712cab040b2c7ff0f03f1 Mon Sep 17 00:00:00 2001 From: KevinOConnor Date: Tue, 16 Sep 2025 16:23:25 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Klipper3?= =?UTF-8?q?d/klipper@8db5d254e077e10583cfaff0d9e70e08263383e5=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code_Overview.html | 92 +++++++++++------- .../__pycache__/mkdocs_hooks.cpython-38.pyc | Bin 983 -> 983 bytes .../__pycache__/mkdocs_hooks.cpython-38.pyc | Bin 983 -> 983 bytes fr/sitemap.xml.gz | Bin 229 -> 229 bytes .../__pycache__/mkdocs_hooks.cpython-38.pyc | Bin 983 -> 983 bytes hu/sitemap.xml.gz | Bin 229 -> 229 bytes .../__pycache__/mkdocs_hooks.cpython-38.pyc | Bin 983 -> 983 bytes it/sitemap.xml.gz | Bin 229 -> 229 bytes search/search_index.json | 2 +- sitemap.xml.gz | Bin 229 -> 229 bytes .../__pycache__/mkdocs_hooks.cpython-38.pyc | Bin 983 -> 983 bytes zh-Hant/sitemap.xml.gz | Bin 229 -> 229 bytes .../__pycache__/mkdocs_hooks.cpython-38.pyc | Bin 983 -> 983 bytes zh/sitemap.xml.gz | Bin 229 -> 229 bytes 14 files changed, 59 insertions(+), 35 deletions(-) diff --git a/Code_Overview.html b/Code_Overview.html index 223931422..99891df85 100644 --- a/Code_Overview.html +++ b/Code_Overview.html @@ -1605,19 +1605,36 @@ some functionality in C code.

Initial execution starts in klippy/klippy.py. This reads the command-line arguments, opens the printer config file, instantiates the main printer objects, and starts the serial connection. The main -execution of G-code commands is in the process_commands() method in +execution of G-code commands is in the _process_commands() method in klippy/gcode.py. This code translates the G-code commands into printer object calls, which frequently translate the actions to commands to be executed on the micro-controller (as declared via the DECL_COMMAND macro in the micro-controller code).

-

There are four threads in the Klippy host code. The main thread -handles incoming gcode commands. A second thread (which resides -entirely in the klippy/chelper/serialqueue.c C code) handles -low-level IO with the serial port. The third thread is used to process -response messages from the micro-controller in the Python code (see -klippy/serialhdl.py). The fourth thread writes debug messages to -the log (see klippy/queuelogger.py) so that the other threads -never block on log writes.

+

There are several threads in the Klipper host code:

+

Code flow of a move command

A typical printer movement starts when a "G1" command is sent to the Klippy host and it completes when the corresponding step pulses are @@ -1639,7 +1656,7 @@ provides further information on the mechanics of moves.

the timing of printing actions. The main codepath for a move is: ToolHead.move() -> LookAheadQueue.add_move() -> LookAheadQueue.flush() -> Move.set_junction() -> - ToolHead._process_moves(). + -