jschuh / klipper-macros

A collection of useful macros for the Klipper 3D printer firmware
GNU General Public License v3.0
921 stars 167 forks source link

[BUG] Errors in console from default macros #185

Closed josurr closed 10 months ago

josurr commented 11 months ago

Describe the bug Receiving the following error in the Klipper console upon printer boot & connect:

Error evaluating 'gcode_macro check_km_config:gcode': gcode.CommandError: load_length exceeds max_extrude_only_distance.

The following error occurs numerous times when the printer returns to idle after performing a command (e.g. G28):

Error evaluating 'gcode_macro _km_print_status:gcode': gcode.CommandError: Status 'none' not valid.

Klipper errors Attached klippy.log

Klipper config Attached printer.cfg (renamed to .txt because of GitHub restrictions) klippy.log printer.txt

Perrotn commented 10 months ago

in the [extruder] section max_extrude_only_distance default is 50mm, in globals.cfg: variable_load_length: 90.0 therefore variable_load_length>max_extrude_only_distance

you have two [idle_timeout] sections in your printer file, that may explain your status error

josurr commented 10 months ago

Thank you for that insight!

I did have another question, is there an example "variables.cfg" file that can be used as a reference for creating one that is specific to my printer?

Perrotn commented 10 months ago

My understanding is that variables.cfg is automatically created and is used to store variables like the z offset of each surfaces. Mine look like that: [Variables] bed_surfaces = {'active': 'glass', 'available': {'pei_black': {'offset': 0.0}, 'pei_gold': {'offset': -0.4}, 'glass': {'offset': -0.4}}, 'endstop_z': 0.0, 'probe_z': 1.49}