More reliablity, no bed mesh

This commit is contained in:
Kyle Brown 2022-06-17 00:24:17 -07:00
parent dd3d1c7be7
commit 1495af7916
7 changed files with 26 additions and 32 deletions

View file

@ -6,7 +6,6 @@ gcode:
{% set DWELL = params.DWELL|default(300)|int %}
{% set X = 200 %}
SET_VELOCITY_LIMIT ACCEL=5000 ACCEL_TO_DECEL=5000
M104 S{hotendTemp|float*0.6} # set extruder pre warm temp
M140 S{bedTemp} # set bed temp to warm while starting up
G28 # home after setting temps
@ -14,9 +13,10 @@ gcode:
M190 S{bedTemp} # Wait for bed to come to temperature
M117 Waiting for thermal expansion...
HEATSOAK DWELL={DWELL} # Dwelling
#ATTACH_PROBE # Have probe ready for calibration
CLEAN_NOZZLE # Clean before getting offsets
#BED_MESH_CALIBRATE AREA_START={params.AREA_START} AREA_END={params.AREA_END}
CALIBRATE_Z # Auto calibrate the bed height
BED_MESH_CALIBRATE AREA_START={params.AREA_START} AREA_END={params.AREA_END}
GO_TO_BUCKET # No cleanup from nozzle ooze
M109 S{hotendTemp} # Set extruder to printing temperature
CLEAN_NOZZLE # Final clean before print
@ -26,7 +26,6 @@ gcode:
[gcode_macro PRINT_END]
gcode:
SET_VELOCITY_LIMIT ACCEL=15000 ACCEL_TO_DECEL=15000 SQUARE_CORNER_VELOCITY=8
SAFE_RETRACT
M106 S0 # Part fan off
TURN_OFF_HEATERS
@ -99,7 +98,6 @@ gcode:
TURN_OFF_HEATERS
DISABLE_MOTORS
[gcode_macro GO_TO_BUCKET]
gcode:
#Edit this#
@ -107,7 +105,6 @@ gcode:
{% set Y = 331 %}
{% set Z = 2 %}
###########
SAVE_GCODE_STATE NAME=BEFORE_BUCKET
SAFE_RETRACT
G91
G1 Z{Z}
@ -116,13 +113,6 @@ gcode:
G1 Y{Y} F6000
G91
[gcode_macro RETURN_FROM_BUCKET]
gcode:
G91
RESTORE_GCODE_STATE NAME=BEFORE_BUCKET MOVE=1
SAFE_UNRETRACT
[gcode_macro safe_retract]
gcode:
{% if printer.extruder.can_extrude %}
@ -143,11 +133,10 @@ variable_parameter_AREA_END : 0,0
; the clearance between print area and probe area
variable_mesh_area_offset : 5.0
; number of sample per probe point
variable_probe_samples : 1
variable_probe_samples : 3
; minimum probe count
variable_min_probe_count : 3
gcode:
Attach_probe
{% if params.AREA_START and params.AREA_END %}
{% set bedMeshConfig = printer["configfile"].config["bed_mesh"] %}
{% set safe_min_x = bedMeshConfig.mesh_min.split(",")[0]|float %}

View file

@ -12,7 +12,7 @@ max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0
fan_speed: 0.6
fan_speed: 0.9
[controller_fan driver_fan]
## Controller Fan - FAN2 Connector

View file

@ -22,8 +22,8 @@ path: ~/gcode_files
[printer]
kinematics: corexy
max_velocity: 800
max_accel: 15000
max_accel_to_decel: 15000
max_accel: 10000
max_accel_to_decel: 10000
max_z_velocity: 80
max_z_accel: 1000
square_corner_velocity: 8

View file

@ -21,7 +21,7 @@ screw_thread: CCW-M3
pin: PF7
x_offset: 26
y_offset: 55
z_offset: 5.644
z_offset: 5.707
samples: 3
sample_retract_dist: 3
samples_result: median
@ -30,28 +30,30 @@ samples_tolerance_retries: 3
speed: 5
lift_speed: 20
dock_position: 322,317, 15
dock_position: 321,316, 15
safe_z_position: 165,165
approach_position: 290,317, 15
detach_position: 322,280
approach_position: 290,316, 15
detach_position: 321,260
attach_speed: 30
detach_speed: 30
travel_speed: 500
check_open_attach: True
dock_fixed_z: True
dock_retries: 1
allow_delayed_detach: False
allow_delayed_detach: True
[z_calibration]
nozzle_xy_position: 332,245
switch_xy_position: 305,187
switch_xy_position: 305,184
bed_xy_position: 150,150
switch_offset: 0.75
switch_offset: .9 # Lower number is farther from bed
max_deviation: 10
speed: 800
samples: 3
samples_result: median
samples_tolerance: 0.04
samples_tolerance_retries: 3
lift_speed: 20
start_gcode: ATTACH_PROBE
end_gcode: DETACH_PROBE

View file

@ -14,11 +14,11 @@ variable_enable_purge: True
variable_purge_len: 50 ; Amount of filament, in mm, to purge.
variable_purge_spd: 300 ; Speed, in mm/min, of the purge.
variable_purge_temp_min: 220 ; Minimum nozzle temperature to permit a purge. Otherwise, purge will not occur.
variable_purge_ret: 2 ; Retract length, in mm, after purging to prevent slight oozing. Adjust as necessary.
variable_purge_ret: 0 ; Retract length, in mm, after purging to prevent slight oozing. Adjust as necessary.
variable_ooze_dwell: 1 ; Dwell/wait time, in seconds, after purging and retracting.
# Adjust this so that your nozzle scrubs within the brush. Currently defaulted to be a lot higher for safety. Be careful not to go too low!
variable_brush_top: 2
variable_brush_top: 4
# These parameters define your scrubbing, travel speeds, safe z clearance and how many times you want to wipe. Update as necessary. Wipe
# direction is randomized based off whether the left or right bucket is randomly selected in the purge & scrubbing routine.
@ -133,9 +133,9 @@ gcode:
{% if printer.extruder.temperature >= purge_temp_min %}
M83 ; relative mode
G1 E{purge_len} F{purge_spd}
G92 E0 ; reset extruder before retract
G1 E-{purge_ret} F{purge_spd * 5}
G4 P{ooze_dwell * 1000}
G92 E0 ; reset extruder
{% endif %}
{% endif %}

View file

@ -53,24 +53,28 @@ gcode:
# Parameters
{% set Z = 10 %}
SET_VELOCITY_LIMIT ACCEL=500 ACCEL_TO_DECEL=500 VELOCITY=100 # Lower accels/speed
G90
G1 Z{Z} # Z lift
{% set home_all = params.X is not defined and params.Y is not defined and params.Z is not defined %}
{% if params.X is defined or home_all %}
# Double home. If not backed off, it can cause issues
SENSORLESS_HOME_X
SENSORLESS_HOME_X
{% endif %}
{% if params.Y is defined or home_all %}
# Double home. If not backed off, it can cause issues
SENSORLESS_HOME_Y
SENSORLESS_HOME_Y
{% endif %}
{% if params.Z is defined or home_all %}
{action_respond_info("Doing G28 Z0")}
# You can do your logic for safe z here
SET_VELOCITY_LIMIT VELOCITY=800 ACCEL=15000 ACCEL_TO_DECEL=15000
DETACH_PROBE
G90
G1 x332 y245 F30000
G28 Z0
@ -78,5 +82,4 @@ gcode:
G91
{% endif %}
SET_VELOCITY_LIMIT VELOCITY=800 ACCEL=15000 ACCEL_TO_DECEL=15000

View file

@ -38,8 +38,8 @@ microsteps: 16
rotation_distance: 4
#endstop_pin: PG11 # Bed Endstop
endstop_pin: PG10 # Nozzle Endstop
position_endstop: -0.2
position_min: -5
position_endstop: -0.319
position_min: -4
position_max: 400
full_steps_per_rotation: 200
homing_retract_dist: 5.0