aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/G-Codes.md12
-rw-r--r--docs/Status_Reference.md8
2 files changed, 18 insertions, 2 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
diff --git a/docs/Status_Reference.md b/docs/Status_Reference.md
index 99d4f0f3..e6595ddb 100644
--- a/docs/Status_Reference.md
+++ b/docs/Status_Reference.md
@@ -330,8 +330,12 @@ The following information is available in the `print_stats` object
[virtual_sdcard](Config_Reference.md#virtual_sdcard) config section is
defined):
- `filename`, `total_duration`, `print_duration`, `filament_used`,
- `state`, `message`: Estimated information about the current print
- when a virtual_sdcard print is active.
+ `state`, `message`: Estimated information about the current print when a
+ virtual_sdcard print is active.
+- `info.total_layer`: The total layer value of the last `SET_PRINT_STATS_INFO
+ TOTAL_LAYER=<value>` G-Code command.
+- `info.current_layer`: The current layer value of the last
+ `SET_PRINT_STATS_INFO CURRENT_LAYER=<value>` G-Code command.
## probe