Update printer.cfg

This commit is contained in:
Siwat Sirichai 2023-11-19 04:13:36 -08:00
parent 4799ab2e71
commit c9197d72d0
1 changed files with 386 additions and 328 deletions

View File

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