Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [extruder]
- max_extrude_only_distance: 100.0
- max_extrude_cross_section: 50.0
- step_pin: PA7
- dir_pin: PA6
- enable_pin: !PC4
- microsteps: 16
- rotation_distance: 7.1910
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PC9
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC0
- #control: pid
- #pid_Kp: 23.223
- #pid_Ki: 1.518
- #pid_Kd: 88.826
- min_temp: 0
- max_temp: 250
- pressure_advance = 0.05
- [input_shaper]
- shaper_freq_x: 43.26
- shaper_freq_y: 45.28
- shaper_type: mzv
- [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: 50
- [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: 50
- [stepper_z]
- step_pin: PB0
- dir_pin: !PC5
- enable_pin: !PB1
- microsteps: 16
- rotation_distance: 8
- endstop_pin: probe:z_virtual_endstop
- position_max: 400
- [heater_bed]
- heater_pin: PA8
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC1
- #control: pid
- #pid_Kp: 23.223
- #pid_Ki: 1.518
- #pid_Kd: 88.826
- min_temp: 0
- max_temp: 130
- [fan]
- pin: PC6
- pin: PC8
- [heater_fan hotend_fan]
- pin: PC7
- heater: extruder
- heater_temp: 50.0
- [controller_fan stepper_fan]
- pin: PC6
- idle_timeout: 300
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_stm32f401xc_32001E000651383434373331-if00
- restart_method: command
- [printer]
- kinematics: cartesian
- max_velocity: 500
- max_accel: 4000
- max_accel_to_decel: 4000
- max_z_velocity: 5
- square_corner_velocity: 5.0
- max_z_accel: 100
- [bltouch]
- sensor_pin: PC2
- control_pin: PC3
- x_offset:27.25
- y_offset:-12.8
- z_offset: 1.69
- speed:10
- samples:1
- samples_result:average
- [bed_mesh]
- speed: 100
- mesh_min: 30, 20
- mesh_max: 290, 290
- algorithm: bicubic
- probe_count: 5,5
- [neopixel my_neopixel]
- pin: PB7
- color_order: GRB
- initial_RED: 0.0
- initial_GREEN: 0.0
- initial_BLUE: 0.0
- [safe_z_home]
- home_xy_position: 150,150
- speed: 100
- z_hop: 10
- z_hop_speed: 5
- [virtual_sdcard]
- path: ~/printer_data/gcodes
- [display_status]
- [pause_resume]
- [gcode_macro M150]
- description: Change neopixel color
- gcode:
- {% set r = params.R|default(0.0)|float %}
- {% set g = params.G|default(0.0)|float %}
- {% set b = params.B|default(0.0)|float %}
- SET_LED LED=my_neopixel RED={r / 255} GREEN={g / 255} BLUE={b / 255}
- [gcode_macro M204]
- rename_existing: M204.1
- gcode:
- {% set f = params.F|default(0.5)|float %}
- {% if 'S' in params %}
- {% set s = params.S|float %}
- SET_VELOCITY_LIMIT ACCEL={s} ACCEL_TO_DECEL={ s * f }
- {% else %}
- {% if 'P' in params %}
- {% set p = params.P|float %}
- {% if 'T' in params %}
- {% set t = params.T|float %}
- {% if p < t %}
- SET_VELOCITY_LIMIT ACCEL={p} ACCEL_TO_DECEL={ p * f }
- {% else %}
- SET_VELOCITY_LIMIT ACCEL={t} ACCEL_TO_DECEL={ t * f }
- {% endif %}
- {% else %}
- SET_VELOCITY_LIMIT ACCEL={p} ACCEL_TO_DECEL={ p * f }
- {% endif %}
- {% elif 'T' in params %}
- {% set t = params.T|float %}
- SET_VELOCITY_LIMIT ACCEL={t} ACCEL_TO_DECEL={ t * f }
- {% endif %}
- {% endif %}
- [gcode_macro PAUSE]
- description: Pause the actual running print
- rename_existing: PAUSE_BASE
- # change this if you need more or less extrusion
- variable_extrude: 1.0
- gcode:
- ##### read E from pause macro #####
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- ##### set park positon for x and y #####
- # default is your max posion from your printer.cfg
- {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
- ##### calculate save lift position #####
- {% set max_z = printer.toolhead.axis_maximum.z|float %}
- {% set act_z = printer.toolhead.position.z|float %}
- {% if act_z < (max_z - 2.0) %}
- {% set z_safe = 2.0 %}
- {% else %}
- {% set z_safe = max_z - act_z %}
- {% endif %}
- ##### end of definitions #####
- PAUSE_BASE
- G91
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G1 E-{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- {% if "xyz" in printer.toolhead.homed_axes %}
- G1 Z{z_safe} F900
- G90
- G1 X{x_park} Y{y_park} F6000
- {% else %}
- {action_respond_info("Printer not homed")}
- {% endif %}
- [gcode_macro RESUME]
- description: Resume the actual running print
- rename_existing: RESUME_BASE
- gcode:
- ##### read E from pause macro #####
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- #### get VELOCITY parameter if specified ####
- {% if 'VELOCITY' in params|upper %}
- {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
- {%else %}
- {% set get_params = "" %}
- {% endif %}
- ##### end of definitions #####
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G91
- G1 E{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- RESUME_BASE {get_params}
- [gcode_macro CANCEL_PRINT]
- description: Cancel the actual running print
- rename_existing: CANCEL_PRINT_BASE
- gcode:
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 22.027
- #*# pid_ki = 0.807
- #*# pid_kd = 150.336
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# 0.197500, 0.115000, 0.012500, 0.000000, -0.045000
- #*# 0.197500, 0.067500, -0.075000, -0.140000, -0.235000
- #*# 0.200000, 0.112500, 0.025000, -0.042500, -0.120000
- #*# 0.092500, 0.070000, 0.037500, 0.025000, 0.030000
- #*# 0.170000, 0.097500, 0.142500, 0.177500, 0.212500
- #*# tension = 0.2
- #*# min_x = 30.0
- #*# algo = bicubic
- #*# y_count = 5
- #*# mesh_y_pps = 2
- #*# min_y = 20.0
- #*# x_count = 5
- #*# max_y = 290.0
- #*# mesh_x_pps = 2
- #*# max_x = 290.0
- #*#
- #*# [heater_bed]
- #*# control = pid
- #*# pid_kp = 48.182
- #*# pid_ki = 0.486
- #*# pid_kd = 1194.309
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement