260 lines
6.2 KiB
INI
260 lines
6.2 KiB
INI
|
## DO NOT EDIT THIS FILE, IT IS A TEMPLATE. THAT YOU NEED TO COPY
|
||
|
# Prusa MK3s Klipper Config
|
||
|
|
||
|
# The first thing you'll need to do is go through this file and comment out / uncomment
|
||
|
# the files and/or settings you need.
|
||
|
|
||
|
# You'll be able to print just fine with this config as it is, but it is recommended
|
||
|
# that you follow these steps to properly calibrate your printer:
|
||
|
|
||
|
# 0) Sanity check and PID Tuning: https://www.klipper3d.org/Config_checks.html
|
||
|
# 1) Pressure Advance: https://www.klipper3d.org/Pressure_Advance.html
|
||
|
# 2) Skew Correction: https://www.klipper3d.org/skew_correction.html
|
||
|
# 3) Resonance Compensation: https://www.klipper3d.org/Resonance_Compensation.html
|
||
|
|
||
|
# Read more about klipper here: https://www.klipper3d.org/Overview.html
|
||
|
|
||
|
### UI
|
||
|
[include mainsail.cfg]
|
||
|
# [include fluidd.cfg]
|
||
|
|
||
|
[mcu]
|
||
|
#serial: /dev/serial0 # If you are using internal RPI serial port
|
||
|
serial: /dev/ttyACM0 # If you are using RPI via USB connection to printer
|
||
|
restart_method: command
|
||
|
|
||
|
|
||
|
### CONTROL BOARD
|
||
|
[include klipper-prusa-mk3s/mk3s/einsy-rambo.cfg]
|
||
|
|
||
|
### BASE SETUP
|
||
|
[include klipper-prusa-mk3s/mk3s/display.cfg]
|
||
|
[include klipper-prusa-mk3s/mk3s/steppers.cfg]
|
||
|
[include klipper-prusa-mk3s/mk3s/tmc2130.cfg]
|
||
|
|
||
|
### EXTRUSION
|
||
|
|
||
|
# Extruder
|
||
|
[include klipper-prusa-mk3s/extruders/prusa.cfg]
|
||
|
# [include klipper-prusa-mk3s/extruders/bmg.cfg]
|
||
|
|
||
|
# Hotend
|
||
|
[include klipper-prusa-mk3s/hotends/v6.cfg]
|
||
|
# [include klipper-prusa-mk3s/hotends/dragon-standard-flow.cfg]
|
||
|
# [include klipper-prusa-mk3s/hotends/rapido.cfg]
|
||
|
|
||
|
# flow calibrate
|
||
|
[include calibrate_flow.cfg]
|
||
|
|
||
|
[extruder]
|
||
|
# To tune Pressure Advance see https://www.klipper3d.org/Pressure_Advance.html
|
||
|
# default is already set based on hotend, but you can further improve prints by calibrating it to your nozzle and material
|
||
|
# 0.06065 - 0.060700000000000004
|
||
|
pressure_advance: 0.06065
|
||
|
nozzle_diameter: 0.4 # Remember to change this if you change nozzle diameter.
|
||
|
pid_Kp: 20.457
|
||
|
pid_Ki: 0.771
|
||
|
pid_Kd: 135.785
|
||
|
|
||
|
[heater_bed]
|
||
|
pid_Kp: 49.052
|
||
|
pid_Ki: 0.531
|
||
|
pid_Kd: 1133.094
|
||
|
|
||
|
## copy this from your current setting on Prusa, but make it absolute (removing -)
|
||
|
[probe]
|
||
|
z_offset: 1.150
|
||
|
samples: 3
|
||
|
samples_tolerance_retries: 3
|
||
|
samples_result: median
|
||
|
|
||
|
|
||
|
## For faster printing enable
|
||
|
[printer]
|
||
|
max_accel: 2000
|
||
|
max_accel_to_decel: 2000
|
||
|
max_z_velocity: 20 # TODO: Zvysit na 20/300 po utahnuti remenu
|
||
|
max_z_accel: 300
|
||
|
|
||
|
## For stealth mode enable
|
||
|
|
||
|
# [tmc2130 stepper_x]
|
||
|
# interpolate: True
|
||
|
# stealthchop_threshold: 80
|
||
|
# [tmc2130 stepper_y]
|
||
|
# interpolate: True
|
||
|
# stealthchop_threshold: 80
|
||
|
# [tmc2130 stepper_z]
|
||
|
# interpolate: True
|
||
|
# stealthchop_threshold: 80
|
||
|
|
||
|
## Custom bed mest probes
|
||
|
## Prusa has 3x3 or 7x7, you can do any variation you want
|
||
|
[bed_mesh]
|
||
|
probe_count: 5,5
|
||
|
horizontal_move_z: 4
|
||
|
|
||
|
# Linear correction
|
||
|
# Check `extruders/linear-correction` for more informations.
|
||
|
[include klipper-prusa-mk3s/extruders/linear-correction/linear-correction-0.cfg] # Default Prusa linear correction optimized for LDO motors
|
||
|
|
||
|
### MACROS
|
||
|
[include klipper-prusa-mk3s/macros.cfg]
|
||
|
|
||
|
[include plate-zrnity.cfg]
|
||
|
|
||
|
[include draw.cfg]
|
||
|
|
||
|
[screws_tilt_adjust]
|
||
|
screw1: 123,115
|
||
|
screw1_name: Center Center
|
||
|
|
||
|
screw2: 13,6
|
||
|
screw2_name: Left Front
|
||
|
screw3: 13,115
|
||
|
screw3_name: Left Center
|
||
|
screw4: 13,210
|
||
|
screw4_name: Left Back
|
||
|
|
||
|
screw5: 123,6
|
||
|
screw5_name: Center Front
|
||
|
screw6: 123,210
|
||
|
screw6_name: Center Back
|
||
|
|
||
|
|
||
|
# TODO: 228 right, but induction not work!
|
||
|
screw7: 215,6
|
||
|
screw7_name: Right Front
|
||
|
screw8: 215,115
|
||
|
screw8_name: Right Center
|
||
|
screw9: 215,210
|
||
|
screw9_name: Right Back
|
||
|
|
||
|
horizontal_move_z: 10.
|
||
|
speed: 50.
|
||
|
screw_thread: CW-M3
|
||
|
|
||
|
[gcode_macro PRINT_START]
|
||
|
gcode:
|
||
|
NAN_PLATE
|
||
|
{% set BED = params.BED|default(60)|float %}
|
||
|
{% set EXTRUDER = params.EXTRUDER|default(190)|float %}
|
||
|
{% set FLOW_RATIO = params.FLOW_RATIO|default(0.989)|float * 100 %}
|
||
|
# Start bed heating
|
||
|
M140 S{BED}
|
||
|
# Use absolute coordinates
|
||
|
G90
|
||
|
# Reset the G-Code Z offset (adjust Z offset if needed)
|
||
|
#SET_GCODE_OFFSET Z=0.0
|
||
|
# Home the printer
|
||
|
G28
|
||
|
|
||
|
# Move the nozzle near the bed
|
||
|
G1 Z5 F3000
|
||
|
# Move the nozzle very close to the bed
|
||
|
G1 Z0.40 F300
|
||
|
G80
|
||
|
M221 S{FLOW_RATIO}
|
||
|
# Wait for bed to reach temperature
|
||
|
M190 S{BED}
|
||
|
# Set and wait for nozzle to reach temperature
|
||
|
M109 S{EXTRUDER}
|
||
|
DRAW_PURGE_LINE
|
||
|
|
||
|
[gcode_macro PRINT_END]
|
||
|
gcode:
|
||
|
# Turn off bed, extruder, and fan
|
||
|
M140 S0
|
||
|
M104 S0
|
||
|
M106 S0
|
||
|
# Move nozzle away from print while retracting
|
||
|
G91
|
||
|
G1 X-2 Y-2 E-3 F300
|
||
|
# Raise nozzle by 10mm
|
||
|
G1 Z10 F3000
|
||
|
G90
|
||
|
# Disable steppers
|
||
|
M84
|
||
|
|
||
|
[gcode_macro NAN_START_PRINT]
|
||
|
description: Start print macro
|
||
|
gcode:
|
||
|
NAN_TURN_ON_LEDS
|
||
|
|
||
|
[gcode_macro NAN_END_PRINT]
|
||
|
description: End print macro
|
||
|
gcode:
|
||
|
UPDATE_DELAYED_GCODE ID=turn_off_leds DURATION=600
|
||
|
UPDATE_DELAYED_GCODE ID=turn_off_enc_fan DURATION=600
|
||
|
|
||
|
[gcode_macro CHANGE_NOOZLE]
|
||
|
description: Change noozly
|
||
|
gcode:
|
||
|
NAN_TURN_ON_LEDS
|
||
|
M117 Change noozle
|
||
|
G28
|
||
|
G0 X100 Y0 Z200
|
||
|
UNLOAD_FILAMENT
|
||
|
RESPOND TYPE=command MSG="OK"
|
||
|
UPDATE_DELAYED_GCODE ID=clear_message DURATION=10
|
||
|
UPDATE_DELAYED_GCODE ID=turn_off_leds DURATION=10
|
||
|
|
||
|
[delayed_gcode clear_message]
|
||
|
gcode:
|
||
|
M117
|
||
|
|
||
|
[delayed_gcode turn_off_leds]
|
||
|
gcode:
|
||
|
NAN_TURN_OFF_LEDS
|
||
|
|
||
|
[delayed_gcode turn_off_enc_fan]
|
||
|
gcode:
|
||
|
NAN_SET_FAN_SPEED SPEED=0
|
||
|
|
||
|
[gcode_macro NAN_NLOAD_FILAMENT]
|
||
|
gcode:
|
||
|
SAVE_GCODE_STATE NAME=unload_state
|
||
|
G91
|
||
|
{% if params.TEMP is defined or printer.extruder.can_extrude|lower == 'false' %}
|
||
|
M117 Heating...
|
||
|
# Heat up hotend to provided temp or 220 as default as that should work OK with most filaments.
|
||
|
M109 S{params.TEMP|default(220, true)}
|
||
|
{% endif %}
|
||
|
M117 Unloading filament...
|
||
|
G92 E0.0
|
||
|
G91
|
||
|
G1 E-45 F5000
|
||
|
G1 E-15 F1000
|
||
|
G1 E-20 F1000
|
||
|
G1 E-20 F1000
|
||
|
G90
|
||
|
G92 E0.0
|
||
|
M400
|
||
|
M117 Remove Filament Now!
|
||
|
M300 S300 P1000
|
||
|
M117 Filament unloaded!
|
||
|
RESTORE_GCODE_STATE NAME=unload_state
|
||
|
|
||
|
#[fan_generic chamber_fan]
|
||
|
#pin: host:pwmchip0/pwm0
|
||
|
#hardware_pwm: True
|
||
|
|
||
|
#LEDS
|
||
|
[neopixel_client]
|
||
|
|
||
|
|
||
|
# FIRST RUN:
|
||
|
# Execute these sequentially in the console, let PID tuning finish before saving
|
||
|
# PID_CALIBRATE HEATER=extruder TARGET=170
|
||
|
# SAVE_CONFIG
|
||
|
# PID_CALIBRATE HEATER=heater_bed TARGET=60
|
||
|
# SAVE_CONFIG
|
||
|
|
||
|
### The end, on the end the printer will store it's tuning data, so do not edit it.
|
||
|
|
||
|
#*# <---------------------- SAVE_CONFIG ---------------------->
|
||
|
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
|
||
|
#*#
|
||
|
#*# [probe]
|
||
|
#*# z_offset = 2.500
|