aboutsummaryrefslogtreecommitdiffstats
path: root/docs/G-Codes.md
diff options
context:
space:
mode:
authorStefan Dej <meteyou@gmail.com>2022-10-05 21:02:28 +0200
committerGitHub <noreply@github.com>2022-10-05 15:02:28 -0400
commitb0ffb269d2ac8dc19ae6879d80718b8c60ab60de (patch)
tree5cbe91c7c1ba712a8b5ebcd20565e80f7514f566 /docs/G-Codes.md
parenta2482d4f952e0ffd908e4381cae9e45ab1148773 (diff)
downloadkutter-b0ffb269d2ac8dc19ae6879d80718b8c60ab60de.tar.gz
kutter-b0ffb269d2ac8dc19ae6879d80718b8c60ab60de.tar.xz
kutter-b0ffb269d2ac8dc19ae6879d80718b8c60ab60de.zip
print_stats: add `SET_PRINT_STATS_INFO` G-Code for pass slicer variables to Klipper (#5726)
This adds a gcode command that can be used insight the slicer to pass the total layer count and current layer information. Signed-off-by: Stefan Dej <meteyou@gmail.com>
Diffstat (limited to 'docs/G-Codes.md')
-rw-r--r--docs/G-Codes.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/G-Codes.md b/docs/G-Codes.md
index 3e4e177f..d9cefd80 100644
--- a/docs/G-Codes.md
+++ b/docs/G-Codes.md
@@ -888,6 +888,18 @@ the paused state is fresh for each print.
#### CANCEL_PRINT
`CANCEL_PRINT`: Cancels the current print.
+### [print_stats]
+
+The print_stats module is automatically loaded.
+
+#### SET_PRINT_STATS_INFO
+`SET_PRINT_STATS_INFO [TOTAL_LAYER=<total_layer_count>] [CURRENT_LAYER=
+<current_layer>]`: Pass slicer info like layer act and total to Klipper.
+Add `SET_PRINT_STATS_INFO [TOTAL_LAYER=<total_layer_count>]` to your
+slicer start gcode section and `SET_PRINT_STATS_INFO [CURRENT_LAYER=
+<current_layer>]` at the layer change gcode section to pass layer
+information from your slicer to Klipper.
+
### [probe]
The following commands are available when a