Update printer.cfg

This commit is contained in:
Siwat Sirichai 2023-12-08 00:57:03 -08:00
parent c9197d72d0
commit c35948b4d6
1 changed files with 389 additions and 386 deletions

View File

@ -1,386 +1,389 @@
[include mainsail.cfg] [include mainsail.cfg]
# host MCU service is preinstalled and ready to use with: # host MCU service is preinstalled and ready to use with:
[mcu CB1] [mcu CB1]
serial: /tmp/klipper_host_mcu serial: /tmp/klipper_host_mcu
[mcu] [mcu]
canbus_uuid: a39755b6c75c canbus_uuid: a39755b6c75c
[mcu printhead] [mcu printhead]
canbus_uuid: 0ab26b4c87c4 canbus_uuid: 0ab26b4c87c4
[printer] [printer]
kinematics: corexy kinematics: corexy
max_velocity: 500 max_velocity: 500
max_accel: 4000 #Max 4000 max_accel: 4000 #Max 4000
max_z_velocity: 20 #Max 15 for 12V TMC Drivers, can increase for 24V max_z_velocity: 20 #Max 15 for 12V TMC Drivers, can increase for 24V
max_z_accel: 350 max_z_accel: 350
square_corner_velocity: 5.0 square_corner_velocity: 5.0
[temperature_sensor MCU] [temperature_sensor MCU]
sensor_type: temperature_mcu sensor_type: temperature_mcu
[temperature_sensor SoC] [temperature_sensor SoC]
sensor_type: temperature_host sensor_type: temperature_host
##################################################################### #####################################################################
# X/Y Stepper Settings # X/Y Stepper Settings
##################################################################### #####################################################################
## X Stepper on Motor1(B Motor) ## X Stepper on Motor1(B Motor)
[stepper_x] [stepper_x]
step_pin: PE6 step_pin: PE6
dir_pin: PE5 dir_pin: PE5
enable_pin: !PC14 enable_pin: !PC14
microsteps: 16 microsteps: 16
rotation_distance: 40 rotation_distance: 40
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: ^PF4 endstop_pin: ^PF4
position_min: 0 position_min: 0
position_endstop: 346 position_endstop: 346
position_max: 346 position_max: 346
homing_speed: 25 #Max 100 homing_speed: 25 #Max 100
homing_retract_dist: 5 homing_retract_dist: 5
homing_positive_dir: true homing_positive_dir: true
[tmc5160 stepper_x] [tmc5160 stepper_x]
cs_pin: PC13 cs_pin: PC13
spi_software_mosi_pin: PG6 spi_software_mosi_pin: PG6
spi_software_miso_pin: PG7 spi_software_miso_pin: PG7
spi_software_sclk_pin: PG8 spi_software_sclk_pin: PG8
run_current: 0.800 run_current: 0.800
stealthchop_threshold: 0 stealthchop_threshold: 0
# Y Stepper on Motor2 (A Motor) # Y Stepper on Motor2 (A Motor)
[stepper_y] [stepper_y]
step_pin: PE2 step_pin: PE2
dir_pin: PE1 dir_pin: PE1
enable_pin: !PE4 enable_pin: !PE4
microsteps: 16 microsteps: 16
rotation_distance: 40 rotation_distance: 40
endstop_pin: ^PF3 endstop_pin: ^PF3
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
position_min: 0 position_min: 0
position_endstop: 300 position_endstop: 300
position_max: 300 position_max: 300
homing_speed: 25 #Max 100 homing_speed: 25 #Max 100
homing_retract_dist: 5 homing_retract_dist: 5
homing_positive_dir: true homing_positive_dir: true
[tmc5160 stepper_y] [tmc5160 stepper_y]
cs_pin: PE3 cs_pin: PE3
spi_software_mosi_pin: PG6 spi_software_mosi_pin: PG6
spi_software_miso_pin: PG7 spi_software_miso_pin: PG7
spi_software_sclk_pin: PG8 spi_software_sclk_pin: PG8
run_current: 0.800 run_current: 0.800
stealthchop_threshold: 0 stealthchop_threshold: 0
##################################################################### #####################################################################
# Z Stepper Settings # Z Stepper Settings
##################################################################### #####################################################################
## Z0 Stepper - Front Left on MOTOR3_A ## Z0 Stepper - Front Left on MOTOR3_A
[stepper_z] [stepper_z]
step_pin: PB8 step_pin: PB8
dir_pin: PB7 dir_pin: PB7
enable_pin: !PE0 enable_pin: !PE0
rotation_distance: 40 rotation_distance: 40
gear_ratio: 80:16 gear_ratio: 80:16
microsteps: 16 microsteps: 16
endstop_pin: ^PF2 endstop_pin: probe:z_virtual_endstop
## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0) ## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
## (+) value = endstop above Z0, (-) value = endstop below ## (+) value = endstop above Z0, (-) value = endstop below
## Increasing position_endstop brings nozzle closer to the bed ## Increasing position_endstop brings nozzle closer to the bed
## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config ## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
position_endstop: -2 #position_endstop: -2
position_max: 340 position_max: 340
position_min: -5 position_min: -5
homing_speed: 5 homing_speed: 5
second_homing_speed: 3 second_homing_speed: 3
homing_retract_dist: 3 homing_retract_dist: 3
[tmc5160 stepper_z] [tmc5160 stepper_z]
cs_pin: PB9 cs_pin: PB9
spi_software_mosi_pin: PG6 spi_software_mosi_pin: PG6
spi_software_miso_pin: PG7 spi_software_miso_pin: PG7
spi_software_sclk_pin: PG8 spi_software_sclk_pin: PG8
run_current: 0.8 run_current: 0.8
stealthchop_threshold: 0 stealthchop_threshold: 0
## Z1 Stepper - Rear Left on Motor5 ## Z1 Stepper - Rear Left on Motor5
[stepper_z1] [stepper_z1]
step_pin: PG13 step_pin: PG13
dir_pin: !PG12 dir_pin: !PG12
enable_pin: !PG15 enable_pin: !PG15
rotation_distance: 40 rotation_distance: 40
gear_ratio: 80:16 gear_ratio: 80:16
microsteps: 16 microsteps: 16
[tmc5160 stepper_z1] [tmc5160 stepper_z1]
cs_pin: PG14 cs_pin: PG14
spi_software_mosi_pin: PG6 spi_software_mosi_pin: PG6
spi_software_miso_pin: PG7 spi_software_miso_pin: PG7
spi_software_sclk_pin: PG8 spi_software_sclk_pin: PG8
run_current: 0.800 run_current: 0.800
stealthchop_threshold: 0 stealthchop_threshold: 0
## Z2 Stepper - Rear Right on Motor6 ## Z2 Stepper - Rear Right on Motor6
[stepper_z2] [stepper_z2]
step_pin: PG9 step_pin: PG9
dir_pin: PD7 dir_pin: PD7
enable_pin: !PG11 enable_pin: !PG11
rotation_distance: 40 rotation_distance: 40
gear_ratio: 80:16 gear_ratio: 80:16
microsteps: 16 microsteps: 16
[tmc5160 stepper_z2] [tmc5160 stepper_z2]
cs_pin: PG10 cs_pin: PG10
spi_software_mosi_pin: PG6 spi_software_mosi_pin: PG6
spi_software_miso_pin: PG7 spi_software_miso_pin: PG7
spi_software_sclk_pin: PG8 spi_software_sclk_pin: PG8
run_current: 0.800 run_current: 0.800
stealthchop_threshold: 0 stealthchop_threshold: 0
## Z3 Stepper - Front Right on Motor7 ## Z3 Stepper - Front Right on Motor7
[stepper_z3] [stepper_z3]
step_pin: PD4 step_pin: PD4
dir_pin: !PD3 dir_pin: !PD3
enable_pin: !PD6 enable_pin: !PD6
rotation_distance: 40 rotation_distance: 40
gear_ratio: 80:16 gear_ratio: 80:16
microsteps: 16 microsteps: 16
[tmc5160 stepper_z3] [tmc5160 stepper_z3]
cs_pin: PD5 cs_pin: PD5
spi_software_mosi_pin: PG6 spi_software_mosi_pin: PG6
spi_software_miso_pin: PG7 spi_software_miso_pin: PG7
spi_software_sclk_pin: PG8 spi_software_sclk_pin: PG8
run_current: 0.800 run_current: 0.800
stealthchop_threshold: 0 stealthchop_threshold: 0
##################################################################### #####################################################################
# Extruder # Extruder
##################################################################### #####################################################################
[extruder] [extruder]
step_pin: printhead: PD0 step_pin: printhead: PD0
dir_pin: !printhead: PD1 dir_pin: printhead: PD1
enable_pin: !printhead: PD2 enable_pin: !printhead: PD2
rotation_distance: 8 rotation_distance: 8
gear_ratio: 1:1 gear_ratio: 1:1
microsteps: 16 microsteps: 16
full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
nozzle_diameter: 0.400 nozzle_diameter: 0.400
filament_diameter: 1.75 filament_diameter: 1.75
heater_pin: printhead: PA2 spi_speed: 4000000
sensor_type: MAX31865 heater_pin: printhead: PB13
sensor_pin: printhead: PA4 sensor_type: MAX31865
spi_bus: spi1a sensor_pin: printhead: PA4
rtd_nominal_r: 1000 spi_bus: spi1
rtd_reference_r: 430 rtd_nominal_r: 1000
rtd_num_of_wires: 4 rtd_reference_r: 4300
min_temp: 10 rtd_num_of_wires: 4
max_temp: 270 min_temp: 10
max_power: 1.0 max_temp: 270
min_extrude_temp: 170 max_power: 0.7
control = pid min_extrude_temp: 170
pid_kp = 26.213 control = pid
pid_ki = 1.304 pid_kp = 26.213
pid_kd = 131.721 pid_ki = 1.304
## Try to keep pressure_advance below 1.0 pid_kd = 131.721
#pressure_advance: 0.05 ## Try to keep pressure_advance below 1.0
## Default is 0.040, leave stock #pressure_advance: 0.05
#pressure_advance_smooth_time: 0.040 ## Default is 0.040, leave stock
#pressure_advance_smooth_time: 0.040
[tmc2209 extruder]
uart_pin: printhead: PA15 [tmc2209 extruder]
interpolate: false uart_pin: printhead: PA15
run_current: 0.47 interpolate: false
stealthchop_threshold: 0 run_current: 0.47
stealthchop_threshold: 0
[adxl345]
cs_pin: printhead: PB12 [adxl345]
spi_bus: spi2 cs_pin: printhead: PB12
axes_map: x,y,z spi_software_sclk_pin: printhead: PB10
spi_software_mosi_pin: printhead: PB11
##################################################################### spi_software_miso_pin: printhead: PB2
# Bed Heater axes_map: x,y,z
#####################################################################
#####################################################################
## SSR Pin - HE2 # Bed Heater
[heater_bed] #####################################################################
heater_pin: PA3
sensor_type: Generic 3950 ## SSR Pin - HE2
sensor_pin: PB1 [heater_bed]
max_power: 1 heater_pin: PA3
min_temp: 0 sensor_type: Generic 3950
max_temp: 120 sensor_pin: PB1
control: pid max_power: 1
pid_kp: 58.437 min_temp: 0
pid_ki: 2.347 max_temp: 120
pid_kd: 363.769 control: pid
pid_kp: 58.437
##################################################################### pid_ki: 2.347
# Probe pid_kd: 363.769
#####################################################################
#####################################################################
[probe] # Probe
## Inductive Probe #####################################################################
## This probe is not used for Z height, only Quad Gantry Leveling
## NPN and PNP proximity switch types can be set by jumper [probe]
pin: ^PF1 ## Inductive Probe
x_offset: 0 ## This probe is not used for Z height, only Quad Gantry Leveling
y_offset: 25.0 ## NPN and PNP proximity switch types can be set by jumper
z_offset: 0 pin: printhead: PB6
speed: 10.0 x_offset: 0
samples: 3 y_offset: 25.0
samples_result: median z_offset: 0
sample_retract_dist: 5.0 speed: 10.0
samples_tolerance: 0.006 samples: 3
samples_tolerance_retries: 3 samples_result: median
sample_retract_dist: 5.0
##################################################################### samples_tolerance: 0.006
# Fan Control samples_tolerance_retries: 3
#####################################################################
#####################################################################
[fan] # Fan Control
## Print Cooling Fan - CNC_FAN0 #####################################################################
pin: PA4
kick_start_time: 0.5 [fan]
## Depending on your fan, you may need to increase this value ## Print Cooling Fan - CNC_FAN0
## if your fan will not start. Can change cycle_time (increase) pin: PA4
## if your fan is not able to slow down effectively kick_start_time: 0.5
off_below: 0.10 ## Depending on your fan, you may need to increase this value
## if your fan will not start. Can change cycle_time (increase)
[heater_fan hotend_fan] ## if your fan is not able to slow down effectively
## Hotend Fan - CNC_FAN1 off_below: 0.10
pin: printhead: PA0
max_power: 1.0 [heater_fan hotend_fan]
kick_start_time: 0.5 ## Hotend Fan - CNC_FAN1
heater: extruder pin: printhead: PA0
heater_temp: 50.0 max_power: 1.0
fan_speed: 1.0 kick_start_time: 0.5
heater: extruder
[heater_fan exhaust_fan] heater_temp: 50.0
# Exhaust fan - CNC_FAN3 fan_speed: 1.0
pin: PF6
max_power: 1.0 [heater_fan exhaust_fan]
shutdown_speed: 0.0 # Exhaust fan - CNC_FAN3
kick_start_time: 5.0 pin: PF6
heater: heater_bed max_power: 1.0
heater_temp: 60 shutdown_speed: 0.0
fan_speed: 1.0 kick_start_time: 5.0
heater: heater_bed
[multi_pin controller_fans] heater_temp: 60
pins: PF7,PF9 fan_speed: 1.0
[heater_fan controller_fan] [multi_pin controller_fans]
## Controller fan - CNC_FAN2 pins: PF7,PF9
pin: multi_pin:controller_fans
kick_start_time: 0.5 [heater_fan controller_fan]
heater: heater_bed ## Controller fan - CNC_FAN2
heater_temp: 45.0 pin: multi_pin:controller_fans
kick_start_time: 0.5
heater: heater_bed
##################################################################### heater_temp: 45.0
# LED Control
#####################################################################
#####################################################################
[neopixel caselight] # LED Control
# Chamber Lighting - HE2 Connector (Optional) #####################################################################
pin: PD15
chain_count: 30 [neopixel caselight]
color_order: GRB # Chamber Lighting - HE2 Connector (Optional)
pin: PD15
[neopixel hotend_rgb] chain_count: 30
pin: printhead: PD3 color_order: GRB
chain_count: 3
color_order: GRB [neopixel hotend_rgb]
pin: printhead: PD3
##################################################################### chain_count: 3
# Homing and Gantry Adjustment Routines color_order: GRB
#####################################################################
#####################################################################
[idle_timeout] # Homing and Gantry Adjustment Routines
timeout: 1800 #####################################################################
[safe_z_home] [idle_timeout]
## XY Location of the Z Endstop Switch timeout: 1800
## Update -10,-10 to the XY coordinates of your endstop pin
## (such as 157,305) after going through Z Endstop Pin [safe_z_home]
## Location Definition step. ## XY Location of the Z Endstop Switch
home_xy_position:170,170 ## Update -10,-10 to the XY coordinates of your endstop pin
speed:100 ## (such as 157,305) after going through Z Endstop Pin
z_hop:10 ## Location Definition step.
home_xy_position:170,170
[quad_gantry_level] speed:100
## Use QUAD_GANTRY_LEVEL to level a gantry. z_hop:10
## Min & Max gantry corners - measure from nozzle at MIN (0,0) and
## MAX (250, 250), (300,300), or (350,350) depending on your printer size [quad_gantry_level]
## to respective belt positions ## Use QUAD_GANTRY_LEVEL to level a gantry.
gantry_corners: ## Min & Max gantry corners - measure from nozzle at MIN (0,0) and
-60,-10 ## MAX (250, 250), (300,300), or (350,350) depending on your printer size
410,420 ## to respective belt positions
points: gantry_corners:
50,25 -60,-10
50,275 410,420
300,275 points:
300,25 50,25
speed: 100 50,275
horizontal_move_z: 10 300,275
retries: 5 300,25
retry_tolerance: 0.0075 speed: 100
max_adjust: 10 horizontal_move_z: 10
retries: 5
[board_pins] retry_tolerance: 0.0075
aliases: max_adjust: 10
# EXP1 header
EXP1_1=PE9, EXP1_2=PE10, [board_pins]
EXP1_3=PE11, EXP1_4=PE12, aliases:
EXP1_5=PE13, EXP1_6=PE14, # Slot in the socket on this side # EXP1 header
EXP1_7=PE15, EXP1_8=PB10, EXP1_1=PE9, EXP1_2=PE10,
EXP1_9=<GND>, EXP1_10=<5V>, EXP1_3=PE11, EXP1_4=PE12,
EXP1_5=PE13, EXP1_6=PE14, # Slot in the socket on this side
# EXP2 header EXP1_7=PE15, EXP1_8=PB10,
EXP2_1=PB14, EXP2_2=PB13, EXP1_9=<GND>, EXP1_10=<5V>,
EXP2_3=PF7, EXP2_4=PB12,
EXP2_5=PE7, EXP2_6=PB11, # Slot in the socket on this side # EXP2 header
EXP2_7=PE8, EXP2_8=<RST>, EXP2_1=PB14, EXP2_2=PB13,
EXP2_9=<GND>, EXP2_10=PC5 EXP2_3=PF7, EXP2_4=PB12,
EXP2_5=PE7, EXP2_6=PB11, # Slot in the socket on this side
##################################################################### EXP2_7=PE8, EXP2_8=<RST>,
# Macros EXP2_9=<GND>, EXP2_10=PC5
#####################################################################
#####################################################################
[gcode_macro G32] # Macros
gcode: #####################################################################
BED_MESH_CLEAR
G28 [gcode_macro G32]
QUAD_GANTRY_LEVEL gcode:
G28 BED_MESH_CLEAR
G0 X175 Y175 Z30 F3600 G28
QUAD_GANTRY_LEVEL
[gcode_macro PRINT_START] G28
# Use PRINT_START for the slicer starting script - please customise for your slicer of choice G0 X175 Y175 Z30 F3600
gcode:
G32 ; home all axes [gcode_macro PRINT_START]
G1 Z20 F3000 ; move nozzle away from bed # Use PRINT_START for the slicer starting script - please customise for your slicer of choice
gcode:
G32 ; home all axes
[gcode_macro PRINT_END] G1 Z20 F3000 ; move nozzle away from bed
# Use PRINT_END for the slicer ending script - please customise for your slicer of choice
gcode:
M400 ; wait for buffer to clear [gcode_macro PRINT_END]
G92 E0 ; zero the extruder # Use PRINT_END for the slicer ending script - please customise for your slicer of choice
G1 E-10.0 F3600 ; retract filament gcode:
G91 ; relative positioning M400 ; wait for buffer to clear
G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing G92 E0 ; zero the extruder
TURN_OFF_HEATERS G1 E-10.0 F3600 ; retract filament
M107 ; turn off fan G91 ; relative positioning
G1 Z2 F3000 ; move nozzle up 2mm G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
G90 ; absolute positioning TURN_OFF_HEATERS
G0 X125 Y250 F3600 ; park nozzle at rear M107 ; turn off fan
BED_MESH_CLEAR G1 Z2 F3000 ; move nozzle up 2mm
G90 ; absolute positioning
G0 X125 Y250 F3600 ; park nozzle at rear
BED_MESH_CLEAR