Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Starting Klippy...
- Args: ['/home/pi/klipper/klippy/klippy.py', '/home/pi/klipper_config/printer.cfg', '-l', '/home/pi/klipper_logs/klippy.log', '-a', '/tmp/klippy_uds']
- Git version: 'v0.10.0-398-gc263f76f-dirty'
- CPU: 4 core ARMv7 Processor rev 3 (v7l)
- Python: '2.7.16 (default, Oct 10 2019, 22:02:15) \n[GCC 8.3.0]'
- Start printer at Mon May 9 21:30:05 2022 (1652124605.4 21.5)
- ===== Config file =====
- [gcode_macro G29]
- description = Create bed mesh
- gcode =
- BED_MESH_CLEAR
- G28
- BED_MESH_CALIBRATE
- BED_MESH_PROFILE SAVE=default_mesh
- [gcode_macro M420]
- description = Load bed mesh
- gcode =
- BED_MESH_PROFILE LOAD=default_mesh
- [gcode_macro G35]
- description = Probe bed level
- gcode =
- G28
- SCREWS_TILT_CALCULATE
- [gcode_macro PRINT_START]
- gcode =
- START_PRINT
- [gcode_macro PRINT_END]
- gcode =
- END_PRINT
- [gcode_macro START_PRINT]
- gcode =
- {% set t_extruder = params.T_EXTRUDER|default(0)|float %}
- {% set t_bed = params.T_BED|default(0)|float %}
- {% set MATERIAL = params.MATERIAL|default('NIX') %}
- PRESSURE_ADV_MATERIAL MATERIAL={MATERIAL}
- M190 S{t_bed} ; Wait for Heat Bed temperature
- M104 S{t_extruder/4}
- LEDON
- G28 ; home all axes
- LOAD_MESH_TEMP T_BED={t_bed} ; Loads Mesh/Creates new one ; FORCE=1 forces new mesh
- M104 S{t_extruder/2}
- G92 E0 ; reset extruder
- G1 X2 Y2 Z20 F5000.0 ; move to start-line position
- M104 S{t_extruder} ; set extruder temp
- TEMPERATURE_WAIT SENSOR=extruder MINIMUM={t_extruder} MAXIMUM={t_extruder+5} ; wait for temp reached
- G1 X2 Y10 Z0.3 F400.0 ; move to start-line heighth
- G1 X2 Y200.0 Z0.3 F1500.0 E15 ; draw 1st line
- G1 X2 Y200.0 Z0.4 F5000.0 ; move up a little
- G1 X2 Y30 Z0.4 F1500.0 E30 ; draw 2nd line
- G92 E0 ; reset extruder
- G1 X5 Z3.0 F3000 E-1 ; move z up little to prevent scratching of surface
- [gcode_macro END_PRINT]
- gcode =
- G91 ; relative positioning
- G1 Z5.0 F3000 E-1.5 ; move z up little to prevent scratching of print
- G90 ; absolute positioning
- G1 X0 Y200 F1000 ; prepare for part removal
- TURN_OFF_HEATERS ; Turn off heaters
- G1 X0 Y300 F1000 ; prepare for part removal
- LEDOFF
- M84 ; disable motors
- M106 S0 ; turn off fan
- [gcode_macro LEDON]
- gcode =
- SET_LED LED=my_led RED=1 GREEN=1 BLUE=1
- [gcode_macro LEDOFF]
- gcode =
- SET_LED LED=my_led RED=0 GREEN=0 BLUE=0
- [gcode_macro LED]
- description = Switch light ON/OFF
- gcode =
- {% if printer["led my_led"].color_data[0][0] > 0 %}
- SET_LED LED=my_led RED=0 GREEN=0 BLUE=0
- {% else %}
- SET_LED LED=my_led RED=1 GREEN=1 BLUE=1
- {% endif %}
- [gcode_macro M105]
- rename_existing = M105.1
- gcode =
- M105.1
- {% if printer.extruder.target == 0 %}
- {% if printer.extruder.temperature > 50.0 %}
- SET_LED LED=my_led RED=1 GREEN=0 BLUE=0
- {% else %}
- SET_LED LED=my_led RED=0 GREEN=1 BLUE=0
- {% endif %}
- {% else %}
- {% if printer.extruder.temperature >= printer.extruder.target - 4.0 %}
- SET_LED LED=my_led RED=1 GREEN=1 BLUE=1
- {% else %}
- {% set scaler = printer.extruder.temperature|float / printer.extruder.target|float %}
- SET_LED LED=my_led RED={ scaler|float * 1 } GREEN=0 BLUE=0
- {% endif %}
- {% endif %}
- [gcode_macro LOAD_MESH_TEMP]
- description = Load or generate a mesh
- gcode =
- {% set bed_temperature = params.T_BED|default(0) %}
- {% set force = params.FORCE|default(0) %}
- {action_respond_info("- AUTOMATED BED MESH GENERATOR -")}
- {% if bed_temperature|int < 30 %}
- {action_respond_info("Your bed temp is to low, make sure it is at least 30 or higher")}
- {% else %}
- {% if printer.configfile.config["bed_mesh " + bed_temperature] is defined and force|int == 0 %}
- BED_MESH_PROFILE LOAD={bed_temperature}
- G28 Z
- {action_respond_info("Succesfully loaded bed_mesh "+ bed_temperature)}
- {% else %}
- {% if printer.configfile.config["bed_mesh " + bed_temperature] is defined and force|int == 1 %}
- BED_MESH_PROFILE REMOVE={bed_temperature}
- {% endif %}
- {action_respond_info("bed_mesh not defined, your bed temperature will go up!")}
- {action_respond_info("We will probe the bed and save the mesh as bed_mesh "+ bed_temperature)}
- ADD_BED_MESH TARGET_TEMP={bed_temperature}
- {% endif %}
- {% endif %}
- [gcode_macro ADD_BED_MESH]
- description = Generate a mesh and prepare for SAVE_CONFIG
- gcode =
- {% set target_temp = params.TARGET_TEMP|default(30) %}
- M190 S{target_temp}
- G28
- BED_MESH_CALIBRATE
- BED_MESH_PROFILE SAVE={target_temp}
- BED_MESH_PROFILE REMOVE=default
- [gcode_macro PRESSURE_ADV_MATERIAL]
- gcode =
- {% set MATERIAL = params.MATERIAL|default('NIX') %}
- {% set PA_STOCK = printer.configfile.settings.extruder.pressure_advance|string %}
- {% set PA = NIX %}
- {action_respond_info("- AUTOMATIC PRESSURE ADVANCE LOADER -")}
- {% if MATERIAL == 'PLA' %}
- {action_respond_info(MATERIAL + " erkannt. Setze Pressure Advance")}
- {% set PA = 0.05425 %}
- {% elif MATERIAL == 'PETG' %}
- {action_respond_info(MATERIAL + " erkannt. Setze Pressure Advance")}
- {% set PA = 0.056 %}
- {% elif MATERIAL == 'TPU' %}
- {action_respond_info(MATERIAL + " erkannt. Setze Pressure Advance")}
- {% set PA = 0.49 %}
- {% elif MATERIAL == 'NIX' %}
- {action_respond_info("Material wurde nicht uebergeben: " + MATERIAL)}
- {action_respond_info("Setze Standard: "+ PA_STOCK)}
- {% set PA = PA_STOCK %}
- {% else %}
- {action_respond_info("Material unbekannt: " + MATERIAL)}
- {action_respond_info("Setze Standard: "+ PA_STOCK)}
- {% set PA = PA_STOCK %}
- {% endif %}
- SET_PRESSURE_ADVANCE EXTRUDER=extruder ADVANCE={PA}
- [gcode_macro PLA_COLDPULL]
- gcode =
- M104 S240
- TEMPERATURE_WAIT SENSOR=extruder MINIMUM=240
- M83
- G1 E50 F180
- M104 S80
- TEMPERATURE_WAIT SENSOR=extruder MINIMUM=181 MAXIMUM=185
- M104 S80
- M83
- G1 E30 F15
- TEMPERATURE_WAIT SENSOR=extruder MAXIMUM=85
- BLTOUCH_DEBUG COMMAND=pin_down
- BLTOUCH_DEBUG COMMAND=pin_up
- BLTOUCH_DEBUG COMMAND=pin_down
- BLTOUCH_DEBUG COMMAND=pin_up
- [gcode_macro SEARCH_VARS]
- gcode =
- {% set search = params.S|lower %}
- {% set ns = namespace() %}
- {% for item in printer %}
- {% if ' ' in item %}
- {% set ns.path = ['printer', "['%s']" % (item), ''] %}
- {% else %}
- {% set ns.path = ['printer.', item, ''] %}
- {% endif %}
- {% if search in ns.path|lower %}
- { action_respond_info(ns.path|join) }
- {% endif %}
- {% if printer[item].items() %}
- {% for childkey, child in printer[item].items() recursive %}
- {% set ns.path = ns.path[:loop.depth|int + 1] %}
- {% if ' ' in childkey %}
- {% set null = ns.path.append("['%s']" % (childkey)) %}
- {% else %}
- {% set null = ns.path.append(".%s" % (childkey)) %}
- {% endif %}
- {% if child is mapping %}
- { loop(child.items()) }
- {% else %}
- {% if search in ns.path|lower %}
- { action_respond_info("%s : %s" % (ns.path|join, child)) }
- {% endif %}
- {% endif %}
- {% endfor %}
- {% endif %}
- {% endfor %}
- [stepper_x]
- step_pin = !PB14
- dir_pin = PB13
- enable_pin = !PB15
- microsteps = 16
- rotation_distance = 40
- endstop_pin = !PA2
- position_endstop = 0
- position_max = 310
- homing_speed = 40.0
- [stepper_y]
- step_pin = PB10
- dir_pin = PB2
- enable_pin = !PB12
- microsteps = 16
- rotation_distance = 40
- endstop_pin = !PA1
- position_endstop = 0
- position_max = 310
- homing_speed = 40
- homing_positive_dir = false
- [stepper_z]
- step_pin = PB0
- dir_pin = !PC5
- enable_pin = !PB1
- microsteps = 16
- rotation_distance = 8
- endstop_pin = probe:z_virtual_endstop
- position_min = -3
- position_max = 400
- homing_speed = 10
- second_homing_speed = 2
- [stepper_z1]
- step_pin = PA4
- dir_pin = !PA3
- enable_pin = !PA5
- microsteps = 16
- rotation_distance = 8
- [extruder]
- step_pin = PA7
- dir_pin = PA6
- enable_pin = !PC4
- microsteps = 16
- rotation_distance = 7.4136
- nozzle_diameter = 0.400
- filament_diameter = 1.750
- heater_pin = PC9
- sensor_type = EPCOS 100K B57560G104F
- sensor_pin = PC0
- min_extrude_temp = 180
- min_temp = -273.15
- max_temp = 300
- max_extrude_only_distance = 500
- max_extrude_cross_section = 2.0
- smooth_time = 1
- pressure_advance = 0.08875
- max_power = 1
- pwm_cycle_time = 0.166
- pid_kp = 15.589
- pid_ki = 0.486
- pid_kd = 125.104
- control = pid
- [heater_bed]
- heater_pin = PA8
- sensor_type = EPCOS 100K B57560G104F
- sensor_pin = PC1
- min_temp = 5
- max_temp = 150
- smooth_time = 3
- pwm_cycle_time = 0.166
- control = pid
- pid_kp = 47.604
- pid_ki = 0.397
- pid_kd = 1426.335
- [fan]
- pin = PC8
- kick_start_time = 0.200
- [controller_fan stepper_fan]
- pin = PC6
- kick_start_time = 0.800
- shutdown_speed = 1
- idle_timeout = 300
- fan_speed = 1.0
- [heater_fan extruder_fan]
- pin = PC7
- heater = extruder
- shutdown_speed = 1
- heater_temp = 45.0
- fan_speed = 1.0
- kick_start_time = 0.500
- [mcu]
- serial = /dev/serial/by-id/usb-Klipper_stm32f401xc_3C0069001851383435373136-if00
- [virtual_sdcard]
- path = /home/pi/gcode_files
- [pause_resume]
- recover_velocity = 50.
- [display_status]
- [gcode_macro CANCEL_PRINT]
- description = Cancel the actual running print
- rename_existing = CANCEL_PRINT_BASE
- variable_park = True
- gcode =
- {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%}
- _TOOLHEAD_PARK_PAUSE_CANCEL
- {% endif %}
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- [gcode_macro PAUSE]
- description = Pause the actual running print
- rename_existing = PAUSE_BASE
- gcode =
- PAUSE_BASE
- _TOOLHEAD_PARK_PAUSE_CANCEL
- [gcode_macro RESUME]
- description = Resume the actual running print
- rename_existing = RESUME_BASE
- gcode =
- {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude %}
- {% if 'VELOCITY' in params|upper %}
- {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
- {%else %}
- {% set get_params = "" %}
- {% endif %}
- {% if printer.extruder.can_extrude|lower == 'true' %}
- M83
- G1 E{extrude} F2100
- {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %}
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- RESUME_BASE {get_params}
- [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL]
- description = Helper: park toolhead used in PAUSE and CANCEL_PRINT
- variable_extrude = 1.0
- gcode =
- {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
- {% set z_park_delta = 10.0 %}
- {% set max_z = printer.toolhead.axis_maximum.z|float %}
- {% set act_z = printer.toolhead.position.z|float %}
- {% if act_z < (max_z - z_park_delta) %}
- {% set z_safe = z_park_delta %}
- {% else %}
- {% set z_safe = max_z - act_z %}
- {% endif %}
- {% if printer.extruder.can_extrude|lower == 'true' %}
- M83
- G1 E-{extrude} F2100
- {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %}
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- {% if "xyz" in printer.toolhead.homed_axes %}
- G91
- G1 Z{z_safe} F900
- G90
- G1 X{x_park} Y{y_park} F6000
- {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %}
- {% else %}
- {action_respond_info("Printer not homed"'mcu': Starting serial connect
- mcu 'mcu': got {u'count': 332, '#receive_time': 22.600231153, u'sum': 332944, u'sumsq': 2198496, '#name': u'stats', '#sent_time': 22.573901745}
- mcu 'mcu': got {'#receive_time': 22.717365468, u'next_clock': 4181472704L, u'oid': 11, u'value': 31358, '#name': u'analog_in_state', '#sent_time': 22.676181301}
- mcu 'mcu': got {'#receive_time': 22.857388227, u'next_clock': 4193232704L, u'oid': 25, u'value': 31362, '#name': u'analog_in_state', '#sent_time': 22.828791005}
- Loaded MCU 'mcu' 100 commands (v0.10.0-376-gfb3bae45 / gcc: (15:7-2018-q2-6) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] binutils: (2.31.1-11+rpi1+11) 2.31.1)
- MCU 'mcu' config: BUS_PINS_i2c1=PB6,PB7 BUS_PINS_i2c2=PB10,PB11 BUS_PINS_spi3a=PC11,PC12,PC10 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_i2c1a=PB8,PB9 RESERVE_PINS_USB=PA11,PA12 CLOCK_FREQ=84000000 BUS_PINS_spi1a=PB4,PB5,PB3 STATS_SUMSQ_BASE=256 BUS_PINS_spi3=PB4,PB5,PB3 STEPPER_BOTH_EDGE=1 ADC_MAX=4095 BUS_PINS_spi4=PE13,PE14,PE12 PWM_MAX=255 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi1=PA6,PA7,PA5 RESERVE_PINS_crystal=PH0,PH1 MCU=stm32f401xc
- Configured MCU 'mcu' (1024 moves)
- Starting heater checks for heater_bed
- BLTouch set output mode: 5V
- webhooks client 3043011000: New connection
- webhooks client 3043011000: Client info {'program': 'Moonraker', 'version': 'v0.7.1-567-g3d9f5dc'}
- bed_mesh: generated points
- Index | Tool Adjusted | Probe
- 0 | (0.0, 23.0) | (32.0, 5.0)
- 1 | (29.2, 23.0) | (61.2, 5.0)
- 2 | (58.4, 23.0) | (90.4, 5.0)
- 3 | (87.7, 23.0) | (119.7, 5.0)
- 4 | (116.9, 23.0) | (148.9, 5.0)
- 5 | (146.1, 23.0) | (178.1, 5.0)
- 6 | (175.3, 23.0) | (207.3, 5.0)
- 7 | (204.5, 23.0) | (236.5, 5.0)
- 8 | (233.8, 23.0) | (265.8, 5.0)
- 9 | (263.0, 23.0) | (295.0, 5.0)
- 10 | (263.0, 54.9) | (295.0, 36.9)
- 11 | (233.8, 54.9) | (265.8, 36.9)
- 12 | (204.5, 54.9) | (236.5, 36.9)
- 13 | (175.3, 54.9) | (207.3, 36.9)
- 14 | (146.1, 54.9) | (178.1, 36.9)
- 15 | (116.9, 54.9) | (148.9, 36.9)
- 16 | (87.7, 54.9) | (119.7, 36.9)
- 17 | (58.4, 54.9) | (90.4, 36.9)
- 18 | (29.2, 54.9) | (61.2, 36.9)
- 19 | (0.0, 54.9) | (32.0, 36.9)
- 20 | (0.0, 86.8) | (32.0, 68.8)
- 21 | (29.2, 86.8) | (61.2, 68.8)
- 22 | (58.4, 86.8) | (90.4, 68.8)
- 23 | (87.7, 86.8) | (119.7, 68.8)
- 24 | (116.9, 86.8) | (148.9, 68.8)
- 25 | (146.1, 86.8) | (178.1, 68.8)
- 26 | (175.3, 86.8) | (207.3, 68.8)
- 27 | (204.5, 86.8) | (236.5, 68.8)
- 28 | (233.8, 86.8) | (265.8, 68.8)
- 29 | (263.0, 86.8) | (295.0, 68.8)
- 30 | (263.0, 118.6) | (295.0, 100.6)
- 31 | (233.8, 118.6) | (265.8, 100.6)
- 32 | (204.5, 118.6) | (236.5, 100.6)
- 33 | (175.3, 118.6) | (207.3, 100.6)
- 34 | (146.1, 118.6) | (178.1, 100.6)
- 35 | (116.9, 118.6) | (148.9, 100.6)
- 36 | (87.7, 118.6) | (119.7, 100.6)
- 37 | (58.4, 118.6) | (90.4, 100.6)
- 38 | (29.2, 118.6) | (61.2, 100.6)
- 39 | (0.0, 118.6) | (32.0, 100.6)
- 40 | (0.0, 150.5) | (32.0, 132.5)
- 41 | (29.2, 150.5) | (61.2, 132.5)
- 42 | (58.4, 150.5) | (90.4, 132.5)
- 43 | (87.7, 150.5) | (119.7, 132.5)
- 44 | (116.9, 150.5) | (148.9, 132.5)
- 45 | (146.1, 150.5) | (178.1, 132.5)
- 46 | (175.3, 150.5) | (207.3, 132.5)
- 47 | (204.5, 150.5) | (236.5, 132.5)
- 48 | (233.8, 150.5) | (265.8, 132.5)
- 49 | (263.0, 150.5) | (295.0, 132.5)
- 50 | (263.0, 182.4) | (295.0, 164.4)
- 51 | (233.8, 182.4) | (265.8, 164.4)
- 52 | (204.5, 182.4) | (236.5, 164.4)
- 53 | (175.3, 182.4) | (207.3, 164.4)
- 54 | (146.1, 182.4) | (178.1, 164.4)
- 55 | (116.9, 182.4) | (148.9, 164.4)
- 56 | (87.7, 182.4) | (119.7, 164.4)
- 57 | (58.4, 182.4) | (90.4, 164.4)
- 58 | (29.2, 182.4) | (61.2, 164.4)
- 59 | (0.0, 182.4) | (32.0, 164.4)
- 60 | (0.0, 214.3) | (32.0, 196.3)
- 61 | (29.2, 214.3) | (61.2, 196.3)
- 62 | (58.4, 214.3) | (90.4, 196.3)
- 63 | (87.7, 214.3) | (119.7, 196.3)
- 64 | (116.9, 214.3) | (148.9, 196.3)
- 65 | (146.1, 214.3) | (178.1, 196.3)
- 66 | (175.3, 214.3) | (207.3, 196.3)
- 67 | (204.5, 214.3) | (236.5, 196.3)
- 68 | (233.8, 214.3) | (265.8, 196.3)
- 69 | (263.0, 214.3) | (295.0, 196.3)
- 70 | (263.0, 246.2) | (295.0, 228.2)
- 71 | (233.8, 246.2) | (265.8, 228.2)
- 72 | (204.5, 246.2) | (236.5, 228.2)
- 73 | (175.3, 246.2) | (207.3, 228.2)
- 74 | (146.1, 246.2) | (178.1, 228.2)
- 75 | (116.9, 246.2) | (148.9, 228.2)
- 76 | (87.7, 246.2) | (119.7, 228.2)
- 77 | (58.4, 246.2) | (90.4, 228.2)
- 78 | (29.2, 246.2) | (61.2, 228.2)
- 79 | (0.0, 246.2) | (32.0, 228.2)
- 80 | (0.0, 278.0) | (32.0, 260.0)
- 81 | (29.2, 278.0) | (61.2, 260.0)
- 82 | (58.4, 278.0) | (90.4, 260.0)
- 83 | (87.7, 278.0) | (119.7, 260.0)
- 84 | (116.9, 278.0) | (148.9, 260.0)
- 85 | (146.1, 278.0) | (178.1, 260.0)
- 86 | (175.3, 278.0) | (207.3, 260.0)
- 87 | (204.5, 278.0) | (236.5, 260.0)
- 88 | (233.8, 278.0) | (265.8, 260.0)
- 89 | (263.0, 278.0) | (295.0, 260.0)
- 90 | (263.0, 309.9) | (295.0, 291.9)
- 91 | (233.8, 309.9) | (265.8, 291.9)
- 92 | (204.5, 309.9) | (236.5, 291.9)
- 93 | (175.3, 309.9) | (207.3, 291.9)
- 94 | (146.1, 309.9) | (178.1, 291.9)
- 95 | (116.9, 309.9) | (148.9, 291.9)
- 96 | (87.7, 309.9) | (119.7, 291.9)
- 97 | (58.4, 309.9) | (90.4, 291.9)
- 98 | (29.2, 309.9) | (61.2, 291.9)
- 99 | (0.0, 309.9) | (32.0, 291.9)
- Starting heater checks for extruder
- webhooks: registering remote method 'shutdown_machine' for connection id: 3043011000
- webhooks: registering remote method 'reboot_machine' for connection id: 3043011000
- webhooks: registering remote method 'pause_job_queue' for connection id: 3043011000
- webhooks: registering remote method 'start_job_queue' for connection id: 3043011000
Advertisement
Add Comment
Please, Sign In to add comment