update bltouch offsets, screw positions. add start/end macro

This commit is contained in:
♥ Minnie ♥ 2023-08-13 13:36:31 +08:00
parent 38aec3b555
commit 039cf68f7c

View file

@ -102,9 +102,9 @@ max_z_accel: 100
[bltouch] [bltouch]
sensor_pin: ^PB1 sensor_pin: ^PB1
control_pin: PB0 control_pin: PB0
x_offset: -45.0 x_offset: -40.0
y_offset: -10.0 y_offset: -12.0
z_offset: 0 z_offset: 1.72
speed: 20 speed: 20
samples: 1 samples: 1
sample_retract_dist: 8.0 sample_retract_dist: 8.0
@ -136,13 +136,13 @@ screw4:30,195
screw4_name:4 screw4_name:4
[screws_tilt_adjust] [screws_tilt_adjust]
screw1: 67, 42 screw1: 80, 50
screw1_name: front left screw screw1_name: front left screw
screw2: 237.60, 42 screw2: 235, 50
screw2_name: front right screw screw2_name: front right screw
screw3: 237.60, 212 screw3: 235, 208
screw3_name: rear right screw screw3_name: rear right screw
screw4: 67.60, 212 screw4: 80, 208
screw4_name: rear left screw screw4_name: rear left screw
horizontal_move_z: 10 horizontal_move_z: 10
speed: 200 speed: 200
@ -154,6 +154,52 @@ screw_thread: CW-M4 # Use CW for Clockwise and CCW for Counter Clockwise
[output_pin beeper] [output_pin beeper]
pin: PB13 pin: PB13
# Replace the slicer's custom start and end g-code scripts with
# START_PRINT and END_PRINT. See docs/Slicers.md for more information on using these macros.
[gcode_macro START_PRINT]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(200)|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
# Wait for bed to reach temperature
M190 S{BED_TEMP}
# Perform bed mesh leveling
BED_MESH_CALIBRATE
# Set and wait for nozzle to reach temperature
M109 S{EXTRUDER_TEMP}
# Cura slicer purge line
G92 E0 # Reset Extruder
G1 Z2.0 F3000 # Move Z Axis up little to prevent scratching of Heat Bed
G1 X10.1 Y20 Z0.3 F5000.0 # Move to start position
G1 X10.1 Y200.0 Z0.3 F1500.0 E15 # Draw the first line
G1 X10.4 Y200.0 Z0.3 F5000.0 # Move to side a little
G1 X10.4 Y20 Z0.3 F1500.0 E30 # Draw the second line
G92 E0 # Reset Extruder
G1 Z2.0 F3000 # Move Z Axis up little to prevent scratching of Heat Bed
G1 X15 Y20 Z0.3 F5000.0 # Move over to prevent blob squish
[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
# Fluidd initial setup # Fluidd initial setup
# Allows file uploads to work correctly. # Allows file uploads to work correctly.