Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [gcode_macro M600]
- description: Filament change
- gcode: PAUSE X=10 Y=10 Z_MIN=50 RESTORE=0
- [include macros.cfg]
- [include mainsail.cfg]
- [virtual_sdcard]
- path: "my new location"
- on_error_gcode: CANCEL_PRINT
- [filament_switch_sensor Filament_Switch_Sensor]
- switch_pin: PC12
- pause_on_runout: False
- #runout_gcode: PAUSE M117
- #Filament switch runout insert_gcode: M117 Filament switch inserted
- [filament_motion_sensor Filament_motion_sensor]
- switch_pin: PC15
- extruder: extruder
- detection_length: 2.88
- pause_on_runout: False
- #runout_gcode: PAUSE M117
- #Filament motion runout insert_gcode: M117 Filament motion inserted
- #[filament_switch_sensor filament_sensor]
- #switch_pin: !PA4 # "Pulled-high"
- #pause_on_runout: True
- #insert_gcode:
- #M117 Insert Detected
- #{ action_respond_info("Insert Detected") }
- #runout_gcode:
- #M117 Runout Detected
- #{ action_respond_info("Runout Detected") }
- #CONDITIONAL_BEEP i=3 dur=300 freq=400
- [temperature_sensor raspberry_pi]
- sensor_type: temperature_host
- min_temp: 10
- max_temp: 100
- [temperature_sensor SKR_Mini_E3_V2]
- sensor_type: temperature_mcu
- min_temp: 0
- max_temp: 100
- #[adxl345]
- #cs_pin: rpi:None
- #[resonance_tester]
- #accel_chip: adxl345
- #probe_points:
- #200, 200, 20
- [bed_mesh]
- speed: 120
- horizontal_move_z: 8
- mesh_min: 53,24
- mesh_max: 420, 384
- probe_count: 7, 7
- algorithm: bicubic
- fade_start: 1
- fade_end: 10
- fade_target: 0
- [screws_tilt_adjust]
- screw1: 80, 378
- screw1_name: rear left screw
- screw2: 420, 372
- screw2_name: rear right screw
- screw3: 418, 32
- screw3_name: front right screw
- screw4: 80, 38
- screw4_name: front left screw
- horizontal_move_z: 10
- speed: 50
- screw_thread: CW-M4 # Use CW for Clockwise and CCW for Counter Clockwise
- [bed_screws]
- screw1: 31, 368 # Using rear left to take measurements as harder to reach
- screw1_name: rear left screw
- screw2: 371, 362
- screw2_name: rear right screw
- screw3: 371, 23
- screw3_name: front right screw
- screw4: 31, 28
- screw4_name: front left screw
- [exclude_object]
- [heater_bed]
- heater_pin: PC9
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC4
- control: pid
- pid_Kp: 54.027
- pid_Ki: 0.770
- pid_Kd: 948.182
- min_temp: 0
- max_temp: 130
- [include macros.cfg]
- #[include Line_Purge.cfg]
- [display_status]
- [pause_resume]
- [mcu]
- serial:/dev/serial/by-id/usb-Klipper_stm32g0b1xx_530046000150414D39343620-if00 #/dev/serial/by-id/usb-Klipper_stm32g0b1xx_530046000150414D39343620-if00 #/dev/serial/by-id/usb-Klipper_stm32g0b1xx_27000D000150414235363020-if00
- # restart_method: command
- [fan]
- pin: PC6
- [heater_fan hotend_fan]
- pin: PB15
- heater: extruder
- heater_temp: 50.0
- [controller_fan electronic_enclosure_fan]
- pin: PC7
- idle_timeout: 60
- [display]
- lcd_type: st7920
- cs_pin: PB8
- sclk_pin: PB9
- sid_pin: PD6
- encoder_pins: ^PA10, ^PA9
- click_pin: ^!PA15
- [output_pin beeper]
- pin: PB5
- [bltouch]
- sensor_pin: ^PC14
- control_pin: PA1
- x_offset: 0 #-36
- y_offset: 0 #-3 #-8 #-10 #-36 #0
- #z_offset: 5 #2.00
- [safe_z_home]
- home_xy_position: 248, 202 #203,194 #151,115 # Nozzle coordinates
- speed: 250
- z_hop: 10
- z_hop_speed: 5
- [stepper_z]
- step_pin: PB5
- dir_pin: !PB6
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 8
- endstop_pin: probe:z_virtual_endstop
- #position_endstop: 0.0
- position_min: -4
- position_max: 410
- [stepper_x]
- step_pin: PB13
- dir_pin: !PB12
- enable_pin: !PB14
- microsteps: 64
- rotation_distance: 40
- endstop_pin: ^PC0
- position_endstop: 0
- position_min: 0
- position_max: 440 #420 #407
- homing_speed: 50
- [tmc2209 stepper_x]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 0
- run_current: 0.580
- interpolate: False
- stealthchop_threshold: 0
- [stepper_y]
- step_pin: PB10
- dir_pin: !PB2
- enable_pin: !PB11
- microsteps: 64
- rotation_distance: 40
- endstop_pin: ^PC1
- position_endstop: -12
- position_min: -12
- position_max: 400
- homing_speed: 50
- [tmc2209 stepper_y]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 2
- run_current: 0.580
- interpolate: False
- stealthchop_threshold: 0
- [stepper_z]
- step_pin: PB0
- dir_pin: PC5
- enable_pin: !PB1
- microsteps: 64
- rotation_distance: 8
- # endstop_pin: ^PC2
- # position_endstop: 0.0
- endstop_pin: probe:z_virtual_endstop
- position_min: -4
- position_max: 400
- [tmc2209 stepper_z]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 1
- run_current: 0.580
- interpolate: False
- stealthchop_threshold: 0
- [extruder]
- step_pin: PB3
- dir_pin: !PB4
- enable_pin: !PD1
- microsteps: 64
- rotation_distance: 7.71
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- max_extrude_only_distance: 100
- pressure_advance: 0.04
- pressure_advance_smooth_time: 0.040
- heater_pin: PC8
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: PA0
- control: pid
- pid_Kp: 21.527
- pid_Ki: 1.063
- pid_Kd: 108.982
- min_temp: 0
- max_temp: 300
- [tmc2209 extruder]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 3
- run_current: 0.580
- interpolate: False
- stealthchop_threshold: 0
- [printer]
- kinematics: cartesian
- max_velocity: 300
- max_accel: 3000
- max_z_velocity: 5
- max_z_accel: 100
- [virtual_sdcard]
- path: /home/pi/printer_data/gcodes
- on_error_gcode: CANCEL_PRINT
- #[gcode_macro _CLIENT_VARIABLE]
- #variable_use_custom_pos : False ; use custom park coordinates for x,y [True/False]
- #variable_custom_park_x : 0.0 ; custom x position; value must be within your defined min and max of X
- #variable_custom_park_y : 0.0 ; custom y position; value must be within your defined min and max of Y
- #variable_custom_park_dz : 2.0 ; custom dz value; the value in mm to lift the nozzle when move to park position
- #variable_retract : 1.0 ; the value to retract while PAUSE
- #variable_cancel_retract : 5.0 ; the value to retract while CANCEL_PRINT
- #variable_speed_retract : 35.0 ; retract speed in mm/s
- #variable_unretract : 1.0 ; the value to unretract while RESUME
- #variable_speed_unretract : 35.0 ; unretract speed in mm/s
- #variable_speed_hop : 15.0 ; z move speed in mm/s
- #variable_speed_move : 100.0 ; move speed in mm/s
- #variable_park_at_cancel : False ; allow to move the toolhead to park while execute CANCEL_PRINT [True/False]
- #variable_park_at_cancel_x : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
- #variable_park_at_cancel_y : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
- ### !!! Caution [firmware_retraction] must be defined in the printer.cfg if you set use_fw_retract: True !!!
- #variable_use_fw_retract : False ; use fw_retraction instead of the manual version [True/False]
- #variable_idle_timeout : 0 ; time in sec until idle_timeout kicks in. Value 0 means that no value will be set or restored
- #variable_runout_sensor : "" ; If a sensor is defined, it will be used to cancel the execution of RESUME in case no filament is detected.
- ### Specify the config name of the runout sensor e.g "filament_switch_sensor runout". Hint use the same as in your printer.cfg
- ## !!! Custom macros, please use with care and review the section of the corresponding macro.
- ## These macros are for simple operations like setting a status LED. Please make sure your macro does not interfere with the basic macro functions.
- ## Only single line commands are supported, please create a macro if you need more than one command.
- #variable_user_pause_macro : "" ; Everything inside the "" will be executed after the klipper base pause (PAUSE_BASE) function
- #variable_user_resume_macro: "" ; Everything inside the "" will be executed before the klipper base resume (RESUME_BASE) function
- #variable_user_cancel_macro: "" ; Everything inside the "" will be executed before the klipper base cancel (CANCEL_PRINT_BASE) function
- #gcode:
- [board_pins]
- aliases:
- # EXP1 header
- EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
- EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PD6, EXP1_10=<5V>
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# 0.803125, 0.783750, 0.692500, 0.669375, 0.667500, 0.654375, 0.670000
- #*# 0.248750, 0.257500, 0.188750, 0.225625, 0.215625, 0.230625, 0.237500
- #*# 0.041250, 0.129375, 0.100625, 0.120000, 0.132500, 0.140000, 0.088750
- #*# -0.046250, 0.039375, 0.013750, 0.062500, 0.053750, 0.045000, 0.035625
- #*# 0.012500, 0.143750, 0.142500, 0.183750, 0.156875, 0.161250, 0.089375
- #*# 0.185625, 0.276875, 0.285000, 0.289375, 0.279375, 0.253750, 0.240625
- #*# 0.534375, 0.643125, 0.617500, 0.610625, 0.651875, 0.597500, 0.503750
- #*# x_count = 7
- #*# y_count = 7
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 53.0
- #*# max_x = 419.96
- #*# min_y = 24.0
- #*# max_y = 384.0
- #*#
- #*# [bltouch]
- #*# z_offset = 1.550
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement