#################################################
####### MAD3D Klipper Configuration #######
#######Eryone ThinkerSv2/SE BLTOUCH/Runout#######
#################################################
##[mcu host]
##serial: /tmp/klipper_host_mcu
[virtual_sdcard]
path: /home/pi/gcode_files
[gcode_macro m205]
gcode:
[display_status]
[pause_resume]
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 10 #edit to your park position
default_parameter_Y: 10 #edit to your park position
default_parameter_Z: 10 #edit to your park position
default_parameter_E: 1 #edit to your retract length
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{E} F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
[gcode_macro RESUME]
rename_existing: BASE_RESUME
default_parameter_E: 1 #edit to your retract length
gcode:
G91
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
[stepper_x]
step_pin: PC0
dir_pin: !PL1
enable_pin: !PA7
step_distance: .0125
endstop_pin: !PB6
position_endstop: 0
position_max: 301
homing_speed: 70
[stepper_y]
step_pin: PC1
dir_pin: PL0
enable_pin: !PA6
step_distance: .0125
endstop_pin: !PB5
position_endstop: 0
position_max: 301
homing_speed: 70
[stepper_z]
step_pin: PC2
dir_pin: PL2
enable_pin: !PA5
step_distance: .0025
endstop_pin: probe:z_virtual_endstop
position_max: 400
position_min: -3
homing_speed: 30
[extruder]
step_pin: PC3
dir_pin: !PL6
enable_pin: !PA4
step_distance: 0.010752688172043
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PH6
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PF0
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 250
max_extrude_only_distance: 300
#pressure_advance: 0.015
max_extrude_cross_section: 50.0
[heater_bed]
heater_pin: PE5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PF2
control: pid
pid_Kp: 100.00
pid_Ki: 5.023
pid_Kd: 305.4
min_temp: 0
max_temp: 100
[fan]
pin: PH5
[heater_fan nozzle_cooling_fan]
pin: PH3
heater_temp: 50.0
[bltouch]
sensor_pin: ^PA0
control_pin: PG5
pin_move_time: 0.400
x_offset: 30
y_offset: -9.5
#z_offset: 2.3
pin_up_touch_mode_reports_triggered: False
samples: 2
[homing_override]
set_position_z: 10
axes: z
gcode:
G90
G1 Z15 F1000
G28 X0 Y0
G1 X120 Y150 F6000
G28 Z0
[gcode_macro G29]
gcode:
G28
BED_MESH_CALIBRATE
BED_MESH_PROFILE SAVE=p1
G1 X0 Y15 Z5 F4000
[bed_mesh]
speed: 50
mesh_min: 60,20
mesh_max: 280,280
horizontal_move_z: 5.0
probe_count: 5,5
algorithm: lagrange
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
baud: 250000
#restart_method: command
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 1500
max_z_velocity: 5
max_z_accel: 150
[static_digital_output yellow_led]
pins: !PB7
# "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
[display]
lcd_type: st7920
cs_pin: PG4
sclk_pin: PJ2
sid_pin: PG3
encoder_pins: ^PK2, ^PK1
click_pin: ^!PE2
[filament_switch_sensor runout_sensor]
pause_on_runout: True
# When set to True, a PAUSE will execute immediately after a runout
# is detected. Note that if pause_on_runout is False and the
# runout_gcode is omitted then runout detection is disabled. Default
# is True.
runout_gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-5 F2100
G1 Z10
G90
G1 X0 Y300 F6000
# A list of G-Code commands to execute after a filament runout is
# detected. See docs/Command_Templates.md for G-Code format. If
# pause_on_runout is set to True this G-Code will run after the
# PAUSE is complete. The default is not to run any G-Code commands.
#insert_gcode:
# A list of G-Code commands to execute after a filament insert is
# detected. See docs/Command_Templates.md for G-Code format. The
# default is not to run any G-Code commands, which disables insert
# detection.
#event_delay: 3.0
# The minimum amount of time in seconds to delay between events.
# Events triggered during this time period will be silently
# ignored. The default is 3 seconds.
#pause_delay: 0.5
# The amount of time to delay, in seconds, between the pause command
# dispatch and execution of the runout_gcode. It may be useful to
# increase this delay if OctoPrint exhibits strange pause behavior.
# Default is 0.5 seconds.
switch_pin: !PB4
#switch_pin: !host:gpio26
# The pin on which the switch is connected. This parameter must be
# provided.
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 1.049
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.133750, -0.005000, -0.148750, -0.207500, -0.276250
#*# 0.176250, 0.136250, -0.018750, -0.090000, -0.122500
#*# 0.143750, 0.123750, 0.050000, -0.026250, -0.121250
#*# 0.085000, 0.061250, 0.020000, 0.005000, -0.026250
#*# 0.020000, -0.002500, 0.022500, 0.031250, 0.005000
#*# tension = 0.2
#*# min_x = 60.0
#*# algo = lagrange
#*# y_count = 5
#*# mesh_y_pps = 2
#*# min_y = 20.0
#*# x_count = 5
#*# max_y = 280.0
#*# mesh_x_pps = 2
#*# max_x = 280.0
#*#
#*# [bed_mesh p1]
#*# version = 1
#*# points =
#*# 0.395000, 0.530000, 0.680000, 0.075000, 0.095000
#*# 0.352500, -0.410000, -0.372500, 0.112500, 0.145000
#*# 0.540000, 0.272500, 0.510000, 0.555000, 0.232500
#*# 0.082500, -0.080000, -0.247500, 0.042500, 0.545000
#*# 0.310000, 0.222500, 0.175000, 0.267500, 0.900000
#*# tension = 0.2
#*# min_x = 60.0
#*# algo = lagrange
#*# y_count = 5
#*# mesh_y_pps = 2
#*# min_y = 20.0
#*# x_count = 5
#*# max_y = 280.0
#*# mesh_x_pps = 2
#*# max_x = 280.0