update config
This commit is contained in:
parent
acdf9bd49c
commit
dcac9d16b9
|
@ -28,18 +28,18 @@ filament_diameter: 1.750
|
||||||
max_extrude_cross_section: 5
|
max_extrude_cross_section: 5
|
||||||
max_extrude_only_distance: 500
|
max_extrude_only_distance: 500
|
||||||
max_extrude_only_velocity: 120
|
max_extrude_only_velocity: 120
|
||||||
pressure_advance: 0.045
|
pressure_advance: 0.025 #to be calibrated
|
||||||
pressure_advance_smooth_time: 0.03
|
pressure_advance_smooth_time: 0.03 #to be calibrated
|
||||||
heater_pin: EBBCan: PB13
|
heater_pin: EBBCan: PB13
|
||||||
sensor_type: DREMC NTC100K B3950
|
sensor_type: DREMC NTC100K B3950
|
||||||
sensor_pin: EBBCan: PA3
|
sensor_pin: EBBCan: PA3
|
||||||
control: pid
|
control: pid
|
||||||
pid_Kp: 27.153
|
pid_Kp: 25.60
|
||||||
pid_Ki: 1.661
|
pid_Ki: 1.369
|
||||||
pid_Kd: 110.989
|
pid_Kd: 116.510
|
||||||
min_extrude_temp: 180
|
min_extrude_temp: 180
|
||||||
min_temp: 0
|
min_temp: 0
|
||||||
max_temp: 250
|
max_temp: 300
|
||||||
|
|
||||||
[tmc2209 extruder]
|
[tmc2209 extruder]
|
||||||
uart_pin: EBBCan: PA15
|
uart_pin: EBBCan: PA15
|
||||||
|
@ -62,12 +62,12 @@ sensor_pin: ^EBBCan:PB8
|
||||||
control_pin: EBBCan:PB9
|
control_pin: EBBCan:PB9
|
||||||
x_offset: 0
|
x_offset: 0
|
||||||
y_offset: 22.5
|
y_offset: 22.5
|
||||||
z_offset: 1.775
|
z_offset: 2.005
|
||||||
speed: 20
|
speed: 20
|
||||||
samples: 3
|
samples: 3
|
||||||
sample_retract_dist: 5.0
|
sample_retract_dist: 5.0
|
||||||
samples_result: median
|
samples_result: median
|
||||||
samples_tolerance: 0.01
|
samples_tolerance: 0.0125
|
||||||
samples_tolerance_retries: 3
|
samples_tolerance_retries: 3
|
||||||
|
|
||||||
[safe_z_home]
|
[safe_z_home]
|
||||||
|
|
152
macros.cfg
152
macros.cfg
|
@ -10,24 +10,21 @@
|
||||||
# Replace the slicer's custom start and end g-code scripts with
|
# 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.
|
# START_PRINT and END_PRINT. See docs/Slicers.md for more information on using these macros.
|
||||||
|
|
||||||
[gcode_macro START_PRINT]
|
[gcode_macro PRINT_START]
|
||||||
gcode:
|
gcode:
|
||||||
# This part fetches data from your slicer. Such as bed temp, extruder temp and size of your printer.
|
# This part fetches data from your slicer. Such as bed temp, extruder temp and size of your printer.
|
||||||
{% set target_bed = params.BED|int %}
|
{% set target_bed = params.BED|int %}
|
||||||
{% set target_extruder = params.EXTRUDER|int %}
|
{% set target_extruder = params.EXTRUDER|int %}
|
||||||
{% set x_wait = printer.toolhead.axis_maximum.x|float / 2 %}
|
|
||||||
{% set y_wait = printer.toolhead.axis_maximum.y|float / 2 %}
|
|
||||||
|
|
||||||
# Homes the printer, sets absolute positioning, update the Stealthburner leds and clear old bed mesh.
|
# Homes the printer, sets absolute positioning, update the Stealthburner leds and clear old bed mesh.
|
||||||
STATUS_HOMING # Sets SB-leds to homing-mode
|
STATUS_PRINTING # Sets SB-leds to printing-mode
|
||||||
|
SET_NOZZLE_LEDS_OFF # Disable SB nozzle leds
|
||||||
G28 # Full home (XYZ)
|
G28 # Full home (XYZ)
|
||||||
G90 # Absolute position
|
G90 # Absolute position
|
||||||
BED_MESH_CLEAR # Clears old saved bed mesh (if any)
|
BED_MESH_CLEAR # Clears old saved bed mesh (if any)
|
||||||
|
|
||||||
# Heat up the bed with 5 minute soak.
|
# Heat up the bed with 5 minute soak.
|
||||||
RESPOND TYPE=echo_no_space MSG="Bed: {target_bed}c" # Displays info
|
RESPOND TYPE=echo_no_space MSG="Bed: {target_bed}c" # Displays info
|
||||||
STATUS_HEATING # Sets SB-leds to heating-mode
|
|
||||||
G1 X{x_wait} Y{y_wait} Z15 F9000 # Goes to center of the bed
|
|
||||||
M190 S{target_bed} # Sets the target temp for the bed
|
M190 S{target_bed} # Sets the target temp for the bed
|
||||||
RESPOND TYPE=echo_no_space MSG="Soak for 5min" # Displays info
|
RESPOND TYPE=echo_no_space MSG="Soak for 5min" # Displays info
|
||||||
G4 P300000 # Waits 5 min for the bedtemp to stabilize
|
G4 P300000 # Waits 5 min for the bedtemp to stabilize
|
||||||
|
@ -38,31 +35,28 @@ gcode:
|
||||||
|
|
||||||
# Adjust for gantry tilt.
|
# Adjust for gantry tilt.
|
||||||
RESPOND TYPE=echo_no_space MSG="Z-tilt adjust" # Displays info
|
RESPOND TYPE=echo_no_space MSG="Z-tilt adjust" # Displays info
|
||||||
STATUS_LEVELING # Sets SB-leds to leveling-mode
|
|
||||||
Z_TILT_ADJUST # Levels the x gantry via z_tilt_adjust
|
Z_TILT_ADJUST # Levels the x gantry via z_tilt_adjust
|
||||||
G28 Z # Homes Z again after z_tilt_adjust
|
G28 Z # Homes Z again after z_tilt_adjust
|
||||||
|
|
||||||
# Take a mesh of the bed.
|
# Take a mesh of the bed.
|
||||||
RESPOND TYPE=echo_no_space MSG="Bed mesh" # Displays info
|
RESPOND TYPE=echo_no_space MSG="Bed mesh" # Displays info
|
||||||
STATUS_MESHING # Sets SB-leds to bed mesh-mode
|
|
||||||
BED_MESH_CALIBRATE # Starts bed mesh
|
BED_MESH_CALIBRATE # Starts bed mesh
|
||||||
|
|
||||||
# Parks the printhead, update the SB-leds and heat the nozzle.
|
# Parks the printhead, update the SB-leds and heat the nozzle.
|
||||||
RESPOND TYPE=echo_no_space MSG="Hotend: {target_extruder}c" # Displays info
|
RESPOND TYPE=echo_no_space MSG="Hotend: {target_extruder}c" # Displays info
|
||||||
STATUS_HEATING # Sets SB-leds to heating-mode
|
|
||||||
SMART_PARK # Move the printhead near the print area
|
SMART_PARK # Move the printhead near the print area
|
||||||
M109 S{target_extruder} # Heats the nozzle to printing temp
|
M109 S{target_extruder} # Heats the nozzle to printing temp
|
||||||
|
|
||||||
# Gets ready to print by doing a purge line and updating the SB-leds
|
# Gets ready to print by doing a purge line and updating the SB-leds
|
||||||
RESPOND TYPE=echo_no_space MSG="Printer goes brr" # Displays info
|
RESPOND TYPE=echo_no_space MSG="Printer goes brr" # Displays info
|
||||||
STATUS_PRINTING # Sets SB-leds to printing-mode
|
SET_NOZZLE_LEDS_ON # Enable SB nozzle leds
|
||||||
LINE_PURGE # Purge line
|
LINE_PURGE # Purge line
|
||||||
G90 # Absolute position
|
G90 # Absolute position
|
||||||
|
|
||||||
[gcode_macro END_PRINT]
|
[gcode_macro PRINT_END]
|
||||||
gcode:
|
gcode:
|
||||||
# Fetch maximum position for axis
|
# Fetch position for axis
|
||||||
{% set x_max = printer.toolhead.axis_maximum.x %}
|
{% set x_min = printer.toolhead.axis_minimum.x %}
|
||||||
{% set y_max = printer.toolhead.axis_maximum.y %}
|
{% set y_max = printer.toolhead.axis_maximum.y %}
|
||||||
|
|
||||||
# Turn off bed, extruder, and fan
|
# Turn off bed, extruder, and fan
|
||||||
|
@ -79,7 +73,7 @@ gcode:
|
||||||
G90
|
G90
|
||||||
|
|
||||||
# Present print
|
# Present print
|
||||||
G1 X{x_max} Y{y_max}
|
G1 X{x_min} Y{y_max}
|
||||||
|
|
||||||
# Disable steppers
|
# Disable steppers
|
||||||
M84
|
M84
|
||||||
|
@ -115,4 +109,132 @@ gcode:
|
||||||
[respond]
|
[respond]
|
||||||
|
|
||||||
# Enable object exclusion
|
# Enable object exclusion
|
||||||
[exclude_object]
|
[exclude_object]
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# Maximum Speed and Acceleration
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
[gcode_macro TEST_SPEED]
|
||||||
|
# Home, get position, throw around toolhead, home again.
|
||||||
|
# If MCU stepper positions (first line in GET_POSITION) are greater than a full step different (your number of microsteps), then skipping occured.
|
||||||
|
# We only measure to a full step to accomodate for endstop variance.
|
||||||
|
# Example: TEST_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10
|
||||||
|
|
||||||
|
description: Test for max speed and acceleration parameters for the printer. Procedure: Home -> ReadPositionFromMCU -> MovesToolhead@Vel&Accel -> Home -> ReadPositionfromMCU
|
||||||
|
|
||||||
|
gcode:
|
||||||
|
# Speed
|
||||||
|
{% set speed = params.SPEED|default(printer.configfile.settings.printer.max_velocity)|int %}
|
||||||
|
# Iterations
|
||||||
|
{% set iterations = params.ITERATIONS|default(5)|int %}
|
||||||
|
# Acceleration
|
||||||
|
{% set accel = params.ACCEL|default(printer.configfile.settings.printer.max_accel)|int %}
|
||||||
|
# Minimum Cruise Ratio
|
||||||
|
{% set min_cruise_ratio = params.MIN_CRUISE_RATIO|default(0.5)|float %}
|
||||||
|
# Bounding inset for large pattern (helps prevent slamming the toolhead into the sides after small skips, and helps to account for machines with imperfectly set dimensions)
|
||||||
|
{% set bound = params.BOUND|default(20)|int %}
|
||||||
|
# Size for small pattern box
|
||||||
|
{% set smallpatternsize = SMALLPATTERNSIZE|default(20)|int %}
|
||||||
|
|
||||||
|
# Large pattern
|
||||||
|
# Max positions, inset by BOUND
|
||||||
|
{% set x_min = printer.toolhead.axis_minimum.x + bound %}
|
||||||
|
{% set x_max = printer.toolhead.axis_maximum.x - bound %}
|
||||||
|
{% set y_min = printer.toolhead.axis_minimum.y + bound %}
|
||||||
|
{% set y_max = printer.toolhead.axis_maximum.y - bound %}
|
||||||
|
|
||||||
|
# Small pattern at center
|
||||||
|
# Find X/Y center point
|
||||||
|
{% set x_center = (printer.toolhead.axis_minimum.x|float + printer.toolhead.axis_maximum.x|float ) / 2 %}
|
||||||
|
{% set y_center = (printer.toolhead.axis_minimum.y|float + printer.toolhead.axis_maximum.y|float ) / 2 %}
|
||||||
|
|
||||||
|
# Set small pattern box around center point
|
||||||
|
{% set x_center_min = x_center - (smallpatternsize/2) %}
|
||||||
|
{% set x_center_max = x_center + (smallpatternsize/2) %}
|
||||||
|
{% set y_center_min = y_center - (smallpatternsize/2) %}
|
||||||
|
{% set y_center_max = y_center + (smallpatternsize/2) %}
|
||||||
|
|
||||||
|
# Save current gcode state (absolute/relative, etc)
|
||||||
|
SAVE_GCODE_STATE NAME=TEST_SPEED
|
||||||
|
|
||||||
|
# Output parameters to g-code terminal
|
||||||
|
{ action_respond_info("TEST_SPEED: starting %d iterations at speed %d, accel %d" % (iterations, speed, accel)) }
|
||||||
|
|
||||||
|
# Home and get position for comparison later:
|
||||||
|
M400 # Finish moves - https://github.com/AndrewEllis93/Print-Tuning-Guide/issues/66
|
||||||
|
G28
|
||||||
|
# QGL if not already QGLd (only if QGL section exists in config)
|
||||||
|
{% if printer.configfile.settings.quad_gantry_level %}
|
||||||
|
{% if printer.quad_gantry_level.applied == False %}
|
||||||
|
QUAD_GANTRY_LEVEL
|
||||||
|
G28 Z
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
# Move 50mm away from max position and home again (to help with hall effect endstop accuracy - https://github.com/AndrewEllis93/Print-Tuning-Guide/issues/24)
|
||||||
|
G90
|
||||||
|
G1 X{printer.toolhead.axis_maximum.x-50} Y{printer.toolhead.axis_maximum.y-50} F{30*60}
|
||||||
|
M400 # Finish moves - https://github.com/AndrewEllis93/Print-Tuning-Guide/issues/66
|
||||||
|
G28 X Y
|
||||||
|
G0 X{printer.toolhead.axis_maximum.x-1} Y{printer.toolhead.axis_maximum.y-1} F{30*60}
|
||||||
|
G4 P1000
|
||||||
|
GET_POSITION
|
||||||
|
|
||||||
|
# Go to starting position
|
||||||
|
G0 X{x_min} Y{y_min} Z{bound + 10} F{speed*60}
|
||||||
|
|
||||||
|
# Set new limits
|
||||||
|
{% if printer.configfile.settings.printer.minimum_cruise_ratio is defined %}
|
||||||
|
SET_VELOCITY_LIMIT VELOCITY={speed} ACCEL={accel} MINIMUM_CRUISE_RATIO={min_cruise_ratio}
|
||||||
|
{% else %}
|
||||||
|
SET_VELOCITY_LIMIT VELOCITY={speed} ACCEL={accel} ACCEL_TO_DECEL={accel / 2}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% for i in range(iterations) %}
|
||||||
|
# Large pattern diagonals
|
||||||
|
G0 X{x_min} Y{y_min} F{speed*60}
|
||||||
|
G0 X{x_max} Y{y_max} F{speed*60}
|
||||||
|
G0 X{x_min} Y{y_min} F{speed*60}
|
||||||
|
G0 X{x_max} Y{y_min} F{speed*60}
|
||||||
|
G0 X{x_min} Y{y_max} F{speed*60}
|
||||||
|
G0 X{x_max} Y{y_min} F{speed*60}
|
||||||
|
|
||||||
|
# Large pattern box
|
||||||
|
G0 X{x_min} Y{y_min} F{speed*60}
|
||||||
|
G0 X{x_min} Y{y_max} F{speed*60}
|
||||||
|
G0 X{x_max} Y{y_max} F{speed*60}
|
||||||
|
G0 X{x_max} Y{y_min} F{speed*60}
|
||||||
|
|
||||||
|
# Small pattern diagonals
|
||||||
|
G0 X{x_center_min} Y{y_center_min} F{speed*60}
|
||||||
|
G0 X{x_center_max} Y{y_center_max} F{speed*60}
|
||||||
|
G0 X{x_center_min} Y{y_center_min} F{speed*60}
|
||||||
|
G0 X{x_center_max} Y{y_center_min} F{speed*60}
|
||||||
|
G0 X{x_center_min} Y{y_center_max} F{speed*60}
|
||||||
|
G0 X{x_center_max} Y{y_center_min} F{speed*60}
|
||||||
|
|
||||||
|
# Small pattern box
|
||||||
|
G0 X{x_center_min} Y{y_center_min} F{speed*60}
|
||||||
|
G0 X{x_center_min} Y{y_center_max} F{speed*60}
|
||||||
|
G0 X{x_center_max} Y{y_center_max} F{speed*60}
|
||||||
|
G0 X{x_center_max} Y{y_center_min} F{speed*60}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
# Restore max speed/accel/accel_to_decel to their configured values
|
||||||
|
{% if printer.configfile.settings.printer.minimum_cruise_ratio is defined %}
|
||||||
|
SET_VELOCITY_LIMIT VELOCITY={printer.configfile.settings.printer.max_velocity} ACCEL={printer.configfile.settings.printer.max_accel} MINIMUM_CRUISE_RATIO={printer.configfile.settings.printer.minimum_cruise_ratio}
|
||||||
|
{% else %}
|
||||||
|
SET_VELOCITY_LIMIT VELOCITY={printer.configfile.settings.printer.max_velocity} ACCEL={printer.configfile.settings.printer.max_accel} ACCEL_TO_DECEL={printer.configfile.settings.printer.max_accel_to_decel}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
# Re-home and get position again for comparison:
|
||||||
|
M400 # Finish moves - https://github.com/AndrewEllis93/Print-Tuning-Guide/issues/66
|
||||||
|
G28 # This is a full G28 to fix an issue with CoreXZ - https://github.com/AndrewEllis93/Print-Tuning-Guide/issues/12
|
||||||
|
# Go to XY home positions (in case your homing override leaves it elsewhere)
|
||||||
|
G90
|
||||||
|
G0 X{printer.toolhead.axis_maximum.x-1} Y{printer.toolhead.axis_maximum.y-1} F{30*60}
|
||||||
|
G4 P1000
|
||||||
|
GET_POSITION
|
||||||
|
|
||||||
|
# Restore previous gcode state (absolute/relative, etc)
|
||||||
|
RESTORE_GCODE_STATE NAME=TEST_SPEED
|
33
printer.cfg
33
printer.cfg
|
@ -45,8 +45,8 @@ enable_pin: !PD3
|
||||||
microsteps: 16
|
microsteps: 16
|
||||||
rotation_distance: 8
|
rotation_distance: 8
|
||||||
endstop_pin: probe:z_virtual_endstop
|
endstop_pin: probe:z_virtual_endstop
|
||||||
position_min: 0
|
position_min: -1
|
||||||
position_max: 200
|
position_max: 260
|
||||||
|
|
||||||
[stepper_z1]
|
[stepper_z1]
|
||||||
step_pin: PB7
|
step_pin: PB7
|
||||||
|
@ -68,8 +68,8 @@ max_temp: 130
|
||||||
|
|
||||||
[printer]
|
[printer]
|
||||||
kinematics: cartesian
|
kinematics: cartesian
|
||||||
max_velocity: 180
|
max_velocity: 450
|
||||||
max_accel: 5000
|
max_accel: 10000
|
||||||
max_z_velocity: 5
|
max_z_velocity: 5
|
||||||
max_z_accel: 100
|
max_z_accel: 100
|
||||||
|
|
||||||
|
@ -80,22 +80,22 @@ max_z_accel: 100
|
||||||
[tmc2209 stepper_x]
|
[tmc2209 stepper_x]
|
||||||
uart_pin: PB8
|
uart_pin: PB8
|
||||||
run_current: 0.580
|
run_current: 0.580
|
||||||
stealthchop_threshold: 999999
|
interpolate: True
|
||||||
|
|
||||||
[tmc2209 stepper_y]
|
[tmc2209 stepper_y]
|
||||||
uart_pin: PC9
|
uart_pin: PC9
|
||||||
run_current: 0.580
|
run_current: 0.580
|
||||||
stealthchop_threshold: 999999
|
interpolate: True
|
||||||
|
|
||||||
[tmc2209 stepper_z]
|
[tmc2209 stepper_z]
|
||||||
uart_pin: PD0
|
uart_pin: PD0
|
||||||
run_current: 0.580
|
run_current: 0.580
|
||||||
stealthchop_threshold: 999999
|
interpolate: True
|
||||||
|
|
||||||
[tmc2209 stepper_z1]
|
[tmc2209 stepper_z1]
|
||||||
uart_pin: PB5
|
uart_pin: PB5
|
||||||
run_current: 0.580
|
run_current: 0.580
|
||||||
stealthchop_threshold: 999999
|
interpolate: True
|
||||||
|
|
||||||
[firmware_retraction]
|
[firmware_retraction]
|
||||||
retract_length: 0.5
|
retract_length: 0.5
|
||||||
|
@ -133,17 +133,18 @@ speed: 50
|
||||||
screw_thread: CW-M4 # Use CW for Clockwise and CCW for Counter Clockwise
|
screw_thread: CW-M4 # Use CW for Clockwise and CCW for Counter Clockwise
|
||||||
|
|
||||||
[z_tilt]
|
[z_tilt]
|
||||||
|
speed: 200
|
||||||
z_positions:
|
z_positions:
|
||||||
-30,110
|
-30,110
|
||||||
260,110
|
260,110
|
||||||
points:
|
points:
|
||||||
10,110
|
20,110
|
||||||
220,110
|
210,110
|
||||||
retries: 20
|
retries: 20
|
||||||
retry_tolerance: 0.005
|
retry_tolerance: 0.0075
|
||||||
|
|
||||||
[bed_mesh]
|
[bed_mesh]
|
||||||
speed: 50
|
speed: 200
|
||||||
mesh_min: 10,10 # Need to handle head distance with cr-touch (bl_touch)
|
mesh_min: 10,10 # Need to handle head distance with cr-touch (bl_touch)
|
||||||
mesh_max: 220,200 # Max probe range
|
mesh_max: 220,200 # Max probe range
|
||||||
probe_count: 11,11
|
probe_count: 11,11
|
||||||
|
@ -161,12 +162,12 @@ show_macros_in_webui: True
|
||||||
timeout: 300
|
timeout: 300
|
||||||
|
|
||||||
[input_shaper]
|
[input_shaper]
|
||||||
shaper_freq_x: 36.8
|
shaper_freq_x: 59.6
|
||||||
shaper_freq_y: 53.0
|
shaper_freq_y: 56.4
|
||||||
shaper_type_x: ei
|
shaper_type_x: ei
|
||||||
shaper_type_y: ei
|
shaper_type_y: ei
|
||||||
damping_ratio_x: 0.075
|
damping_ratio_x: 0.040
|
||||||
damping_ratio_y: 0.056
|
damping_ratio_y: 0.039
|
||||||
|
|
||||||
[virtual_sdcard]
|
[virtual_sdcard]
|
||||||
path: /home/biqu/printer_data/gcodes
|
path: /home/biqu/printer_data/gcodes
|
||||||
|
|
Loading…
Reference in a new issue