Update printer.cfg

This commit is contained in:
Siwat Sirichai 2023-12-26 00:21:22 +07:00
parent efae0f8e4c
commit d239eb8ccb
1 changed files with 32 additions and 14 deletions

View File

@ -256,7 +256,9 @@ activate_gcode:
{% if TARGET_TEMP > PROBE_TEMP %}
{ action_respond_info('Extruder temperature target of %.1fC is too high, lowering to %.1fC' % (TARGET_TEMP, PROBE_TEMP)) }
M106 S255
M109 S{ PROBE_TEMP }
M106 S0
{% else %}
# Temperature target is already low enough, but nozzle may still be too hot.
{% if ACTUAL_TEMP > MAX_TEMP %}
@ -272,11 +274,11 @@ activate_gcode:
[fan]
## Print Cooling Fan - CNC_FAN0
pin: !PA4
kick_start_time: 0.5
kick_start_time: 0
## Depending on your fan, you may need to increase this value
## if your fan will not start. Can change cycle_time (increase)
## if your fan is not able to slow down effectively
off_below: 0.10
off_below: 0.28
[heater_fan hotend_fan]
## Hotend Fan - CNC_FAN1
@ -352,7 +354,7 @@ points:
50,275
300,275
300,25
speed: 100
speed: 300
horizontal_move_z: 10
retries: 10
retry_tolerance: 0.01
@ -401,8 +403,19 @@ gcode:
[gcode_macro PRINT_START]
gcode:
M140 S{ params.BED | float } ; set bed temperture
M109 S150 ; get nozzle to probing temperture
M140 S{ params.BED | float } ; set bed temperature
{% set PROBE_TEMP = 150 %}
{% set ACTUAL_TEMP = printer.extruder.temperature %}
{% if ACTUAL_TEMP > PROBE_TEMP %}
M106 S255
M109 S{ PROBE_TEMP }
M106 S0
{% else %}
M109 S{ PROBE_TEMP }
{% endif %}
; get nozzle to probing temperture
M190 S{ params.BED | float } ; wait for bed to reach temperture
G32 ; home all axes
G1 Z20 F3000 ; move nozzle away from bed
@ -429,6 +442,19 @@ gcode:
BED_MESH_CLEAR ; clear bed mesh
SET_LED LED="hotend_rgb" RED=1 GREEN=1 BLUE=1 SYNC=0 TRANSMIT=1 ; turn on hotend LED
[gcode_macro LOAD_FILAMENT]
gcode:
M83
G1 E50 F300
G1 E30 F150
[gcode_macro UNLOAD_FILAMENT]
gcode:
M83
G1 E-50 F3000
G1 E-50 F3000
G1 E-50 F3000
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
@ -439,16 +465,8 @@ gcode:
#*# shaper_freq_y = 62.0
#*#
#*# [probe]
#*# z_offset = -1.910
#*# z_offset = -1.875
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 23.189
#*# pid_ki = 1.562
#*# pid_kd = 86.089
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 62.274
#*# pid_ki = 3.218
#*# pid_kd = 301.250