[gcode_macro START_PRINT] gcode: BED_MESH_PROFILE LOAD=default # Home all axes G28 # Set bed temperature and wait for it to reach the target M140 S{material_bed_temperature_layer_67} ; Set bed temp without waiting M190 S{material_bed_temperature_layer_67} ; Wait for bed temp # Set nozzle temperature and wait for it to reach the target M104 S{material_print_temperature_layer_200} ; Set nozzle temp without waiting M109 S{material_print_temperature_layer_200} ; Wait for nozzle temp # Perform auto bed leveling if you have a BLTouch #G29 # Prime the nozzle G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line # Wipe the nozzle and move to the starting point of the print G92 E0 ; Reset extruder position G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed G1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish [gcode_macro END_PRINT] gcode: # Turn off the extruder and bed heaters M104 S0 ; Turn off hotend M140 S0 ; Turn off bed # Move the nozzle away from the print G91 ; Relative positioning G1 E-1 F300 ; Retract the filament a bit before lifting the nozzle to release some of the pressure G1 Z+0.5 E-5 X-20 Y-20 F100 ; Move Z up a bit and retract filament even more G90 ; Absolute positioning G1 X0 Y300 ; Move Hotend away from finished print M84 ; Disable motors # Optional: Add a cooling fan shut down command if you have one M106 S0 [include mainsail.cfg] [virtual_sdcard] path: /home/medalist/printer_data/gcodes on_error_gcode: CANCEL_PRINT # Paste here and save you# This file contains pin mappings for the stock 2020 Creality Ender 3 # MAX. To use this config, during "make menuconfig" select the # STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9) # communication. # Because this printer has factory wiring, mounts, and firmware for # a BLTouch, but does not ship with one at this time, default values # for the sensor have been specified, but disabled, in anticipation of # future revisions or user modification. User should take care to # customize the offsets, particularly z-offset, for their specific unit. # If you prefer a direct serial connection, in "make menuconfig" # select "Enable extra low-level configuration options" and select # serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC # cable used for the LCD module as follows: # 3: Tx, 4: Rx, 9: GND, 10: VCC # Flash this firmware by copying "out/klipper.bin" to a SD card and # turning on the printer with the card inserted. The firmware # filename must end in ".bin" and must not match the last filename # that was flashed. # See docs/Config_Reference.md for a description of parameters. [stepper_x] step_pin: PC2 dir_pin: PB9 enable_pin: !PC3 microsteps: 16 rotation_distance: 40 endstop_pin: ^PA5 position_endstop: 0 position_max: 300 homing_speed: 100 [stepper_y] step_pin: PB8 dir_pin: PB7 enable_pin: !PC3 microsteps: 16 rotation_distance: 40 endstop_pin: ^PA6 position_endstop: 0 position_max: 300 homing_speed: 100 [stepper_z] step_pin: PB6 dir_pin: !PB5 enable_pin: !PC3 microsteps: 16 rotation_distance: 8 #position_endstop: 0.0 # disable to use BLTouch #endstop_pin: ^PA7 # disable to use BLTouch endstop_pin: probe:z_virtual_endstop # enable to use BLTouch position_min: -5 # enable to use BLTouch position_max: 340 [safe_z_home] # enable for BLTouch home_xy_position: 150, 150 speed: 120 z_hop: 10 z_hop_speed: 5 [bltouch] # enable for BLTouch - fast-mode sensor_pin: ^PB1 control_pin: PB0 pin_up_touch_mode_reports_triggered: True probe_with_touch_mode: True x_offset: 51.6 # modify as needed for bltouch location y_offset: -12.4 # modify as needed for bltouch location z_offset: 0.0 # modify as needed for bltouch or run PROBE_CALIBRATE speed: 10 samples: 3 sample_retract_dist: 5.0 # Can be set lower, example 2.5 depending on height of bltouch from bed lift_speed: 40 samples_tolerance_retries: 3 speed: 10 samples: 2 [bed_mesh] # enable for BLTouch speed: 300 mesh_min: 50, 11 mesh_max: 300, 290 algorithm: bicubic probe_count: 7,7 # 49 points due to large bed size horizontal_move_z: 5 #[gcode_macro G29] # If moving from marlin to klipper uncomment to mimic G29 #gcode: # BED_MESH_CALIBRATE # G1 X0 Y0 Z10 F4000 [extruder] max_extrude_only_distance: 100.0 step_pin: PB4 dir_pin: PB3 enable_pin: !PC3 microsteps: 16 rotation_distance: 31.901 # Calibrated* - see https://www.klipper3d.org/Rotation_Distance.html nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: PA1 sensor_type: EPCOS 100K B57560G104F sensor_pin: PC5 #control: pid #pid_Kp: 21.527 #pid_Ki: 1.063 #pid_Kd: 108.982 min_temp: 0 max_temp: 250 pressure_advance: 0.0 # Calibrate - see https://www.klipper3d.org/Pressure_Advance.html [heater_bed] heater_pin: PA2 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 [fan] pin: PA0 [filament_switch_sensor e0_sensor] switch_pin: PA4 [mcu] serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 restart_method: command baud: 115200 [printer] kinematics: cartesian max_velocity: 300 max_accel: 3000 max_z_velocity: 5 max_z_accel: 100 #[display] #lcd_type: st7920 #cs_pin: PB12 #sclk_pin: PB13 #sid_pin: PB15 #encoder_pins: ^PB14, ^PB10 #click_pin: ^!PB2 #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [bed_mesh default] #*# version = 1 #*# points = #*# 0.070000, 0.055000, 0.025000, 0.043750, 0.007500, -0.032500, -0.080000 #*# 0.140000, 0.145000, 0.096250, 0.107500, 0.117500, 0.058750, 0.027500 #*# 0.190000, 0.158750, 0.102500, 0.116250, 0.068750, 0.036250, -0.017500 #*# 0.212500, 0.207500, 0.145000, 0.141250, 0.136250, 0.043750, 0.010000 #*# 0.190000, 0.155000, 0.081250, 0.081250, 0.026250, -0.010000, -0.065000 #*# 0.193750, 0.167500, 0.076250, 0.048750, 0.031250, -0.080000, -0.157500 #*# 0.155000, 0.092500, -0.003750, -0.018750, -0.096250, -0.146250, -0.176250 #*# x_count = 7 #*# y_count = 7 #*# mesh_x_pps = 2 #*# mesh_y_pps = 2 #*# algo = bicubic #*# tension = 0.2 #*# min_x = 50.0 #*# max_x = 299.96000000000004 #*# min_y = 11.0 #*# max_y = 290.0 #*# #*# [extruder] #*# control = pid #*# pid_kp = 26.986 #*# pid_ki = 1.451 #*# pid_kd = 125.485