[include mainsail.cfg] #[include adxl.cfg] ###################################################################### # Start Print and End Print ###################################################################### # Replace the slicer's custom start and end g-code scripts with # START_PRINT and END_PRINT. [gcode_macro START_PRINT] gcode: {% set BED_TEMP = params.BED_TEMP|default(50)|float %} {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(220)|float %} # Start bed heating M140 S{BED_TEMP} # 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 #BED_MESH_CALIBRATE BED_MESH_PROFILE LOAD=default # Move the nozzle near the bed G1 Z5 F3000 # Move the nozzle very close to the bed G1 Z0.15 F300 # Wait for bed to reach temperature #M190 S{BED_TEMP} # Set and wait for nozzle to reach temperature #M109 S{EXTRUDER_TEMP} [gcode_macro END_PRINT] 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 #[bltouch] #sensor_pin: ^PC14 #control_pin: PA1 #x_offset: -60.2 #y_offset: -15.6 #z_offset: 4.499 #denna är automatiskt avstängd, sätt inte på #samples: 2 #speed: 10 [safe_z_home] home_xy_position: 20,20 #denna triggas efter x/y endstops har registrerats #speed: 50 z_hop: 2 # Move up 10mm #z_hop_speed: 5 [bed_screws] screw1: 30,40 screw2: 360,40 screw3: 360,360 screw4: 30,360 [bed_mesh] speed: 100 horizontal_move_z: 1 mesh_min: 30, 40 mesh_max: 360, 360 probe_count: 5,5 mesh_pps: 2,2 fade_start: 1 fade_end: 10 fade_target: 0 [stepper_x] step_pin: PB13 dir_pin: !PB12 enable_pin: !PB14 microsteps: 16 rotation_distance: 40 endstop_pin: ^PC0 position_endstop: 1 position_max: 421 #position_min: -10 homing_speed: 50 [tmc2209 stepper_x] uart_pin: PC11 tx_pin: PC10 uart_address: 0 run_current: 0.580 #hold_current: 0.500 stealthchop_threshold: 999999 [stepper_y] step_pin: PB10 dir_pin: !PB2 enable_pin: !PB11 microsteps: 16 rotation_distance: 40 endstop_pin: ^PC1 position_endstop: -1 position_max: 385 position_min: -1 homing_speed: 50 [tmc2209 stepper_y] uart_pin: PC11 tx_pin: PC10 uart_address: 2 run_current: 1.2 #run_current: 0.800 #run_current: 0.580 #hold_current: 0.500 stealthchop_threshold: 999999 [stepper_z] step_pin: PB0 dir_pin: PC5 enable_pin: !PB1 microsteps: 16 rotation_distance: 8 endstop_pin: ^PC2 #endstop_pin: probe:z_virtual_endstop #position_endstop: 0 position_max: 250 position_min: -5 [tmc2209 stepper_z] uart_pin: PC11 tx_pin: PC10 uart_address: 1 #run_current: 0.580 run_current: 1 #hold_current: 0.500 stealthchop_threshold: 999999 #[screws_tilt_adjust] #screw1: 90, 45 #screw1_name: front left screw #screw2: 420, 45 #screw2_name: front right screw #screw3: 420, 385 #screw3_name: rear right screw #screw4: 90, 385 #screw4_name: rear left screw #horizontal_move_z: 10. #speed: 50. #screw_thread: CW-M4 [extruder] step_pin: PB3 dir_pin: PB4 enable_pin: !PD1 microsteps: 16 #rotation_distance: 33.500 #rotation_distance: 8 ...detta är Bondtechs standardvärde för Bondtech LGX...men nedan är beräknad rotation distance rotation_distance: 7.84 nozzle_diameter: 0.600 filament_diameter: 1.750 heater_pin: PC8 # sensor_type: EPCOS 100K B57560G104F sensor_type: ATC Semitec 104GT-2 sensor_pin: PA0 control: pid #max_delta: 0.1 #...använd denna om du kör "watermark" #pid_Kp: 21.527 #pid_Ki: 1.063 #pid_Kd: 108.982 # min_temp: 0 # max_temp: 250 min_temp: -10 max_temp: 270 max_extrude_only_distance: 100 ##### WARNING!! REMOVE AFTER TEST ##### #min_extrude_temp: 0 [tmc2209 extruder] uart_pin: PC11 tx_pin: PC10 uart_address: 3 #run_current: 0.650 # ----- Recommended current for LGX by Bondtech: 0,45 - 0,6 A ----- run_current: 0.500 #hold_current: 0.500 stealthchop_threshold: 999999 [heater_bed] heater_pin: PC9 sensor_type: ATC Semitec 104GT-2 sensor_pin: PC4 control: watermark max_delta: 0.1 #pid_Kp: 54.027 #pid_Ki: 0.770 #pid_Kd: 948.182 min_temp: 0 max_temp: 100 [verify_heater heater_bed] max_error: 120 # The maximum "cumulative temperature error" before raising an # error. Smaller values result in stricter checking and larger # values allow for more time before an error is reported. # Specifically, the temperature is inspected once a second and if it # is close to the target temperature then an internal "error # counter" is reset; otherwise, if the temperature is below the # target range then the counter is increased by the amount the # reported temperature differs from that range. Should the counter # exceed this "max_error" then an error is raised. The default is # 120. check_gain_time: 120 # This controls heater verification during initial heating. Smaller # values result in stricter checking and larger values allow for # more time before an error is reported. Specifically, during # initial heating, as long as the heater increases in temperature # within this time frame (specified in seconds) then the internal # "error counter" is reset. The default is 20 seconds for extruders # and 60 seconds for heater_bed. #hysteresis: 5 # The maximum temperature difference (in Celsius) to a target # temperature that is considered in range of the target. This # controls the max_error range check. It is rare to customize this # value. The default is 5. heating_gain: 0.5 # The minimum temperature (in Celsius) that the heater must increase # by during the check_gain_time check. It is rare to customize this # value. The default is 2 [verify_heater extruder] max_error: 120 # The maximum "cumulative temperature error" before raising an # error. Smaller values result in stricter checking and larger # values allow for more time before an error is reported. # Specifically, the temperature is inspected once a second and if it # is close to the target temperature then an internal "error # counter" is reset; otherwise, if the temperature is below the # target range then the counter is increased by the amount the # reported temperature differs from that range. Should the counter # exceed this "max_error" then an error is raised. The default is # 120. check_gain_time: 120 # This controls heater verification during initial heating. Smaller # values result in stricter checking and larger values allow for # more time before an error is reported. Specifically, during # initial heating, as long as the heater increases in temperature # within this time frame (specified in seconds) then the internal # "error counter" is reset. The default is 20 seconds for extruders # and 60 seconds for heater_bed. #hysteresis: 5 # The maximum temperature difference (in Celsius) to a target # temperature that is considered in range of the target. This # controls the max_error range check. It is rare to customize this # value. The default is 5. heating_gain: 0.5 # The minimum temperature (in Celsius) that the heater must increase # by during the check_gain_time check. It is rare to customize this # value. The default is 2 [idle_timeout] gcode: M140 S0 # A list of G-Code commands to execute on an idle timeout. See # docs/Command_Templates.md for G-Code format. The default is to run # "TURN_OFF_HEATERS" and "M84". timeout: 3600 # Idle time (in seconds) to wait before running the above G-Code # commands. The default is 600 seconds. [heater_fan Hotend_Heatsink] # ----- hotend heatsink ----- pin: PB15 #heater: heater_bed heater: extruder heater_temp: 45.0 #[heater_fan nozzle_cooling_fan] [heater_fan Enclosure_Fan] # ----- enclosure fan ----- pin: PC7 #heater_temp: 45.0 [fan] # ----- part cooling fan ----- pin: PC6 [mcu] # serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_4D003C000B50345033313820-if00 serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_290043000E50415833323520-if00 # serial: /dev/ttyAMA0 # restart_method: command #[input_shaper] #shaper_freq_x: 44.4 #shaper_type_x: mzv #shaper_freq_y: 48.2 #shaper_type_y: ei [printer] kinematics: cartesian max_velocity: 300 max_accel: 1500 max_z_velocity: 50 max_z_accel: 1000 #max_accel: 10000 #max_accel_to_decel: 10000 [board_pins] aliases: # EXP1 header EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=, EXP1_2=PA15, EXP1_4=, EXP1_6=PB9, EXP1_8=PD6, EXP1_10=<5V> ###################################################################### # BigTreeTech TFT TouchScreen emulated 12864 mode ###################################################################### [display] lcd_type: emulated_st7920 spi_software_miso_pin: PD8 # status led, Virtual MISO spi_software_mosi_pin: PD6 spi_software_sclk_pin: PB9 en_pin: PB8 encoder_pins: ^PA10, ^PA9 click_pin: ^!PA15 [output_pin beeper] pin: PB5 #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [extruder] #*# pid_kp = 27.749 #*# pid_ki = 1.595 #*# pid_kd = 120.710 #*# #*# [heater_bed] #*# pid_kp = 74.904 #*# pid_ki = 0.690 #*# pid_kd = 2033.649 #*# #*# [stepper_z] #*# position_endstop = 0.610 #*# #*# [bed_mesh default] #*# version = 1 #*# points = #*# 0.000000, -0.150000, 0.000000, -0.100000, -0.020000 #*# 0.100000, -0.400000, -0.300000, -0.160000, 0.100000 #*# -0.700000, -0.650000, -0.450000, -0.280000, 0.000000 #*# -0.400000, -0.540000, -0.400000, -0.140000, 0.000000 #*# 0.000000, -0.300000, -0.100000, -0.040000, 0.000000 #*# x_count = 5 #*# y_count = 5 #*# mesh_x_pps = 2 #*# mesh_y_pps = 2 #*# algo = lagrange #*# tension = 0.2 #*# min_x = 30.0 #*# max_x = 360.0 #*# min_y = 40.0 #*# max_y = 360.0