diff --git a/cfgs/misc-macros.cfg b/cfgs/misc-macros.cfg index e9a3d16..64ecf79 100644 --- a/cfgs/misc-macros.cfg +++ b/cfgs/misc-macros.cfg @@ -121,19 +121,23 @@ gcode: {% set hotendtemp = params.HOTEND|int %} {% set chambertemp = params.CHAMBER|default(0)|int %} + # Set safe speeds + {% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %} + {% set maxVelocityAdjusted = (0.95 * maxVelocity * 60)|int %} + ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1 - G28 X Y - # + G90 M140 S{bedtemp} ; set & don't wait for bed temp - M104 S{hotendtemp} ; set & don't wait for hotend temp + G28 X Y M190 S{bedtemp} ; set & wait for bed temp - # TEMPERATURE_WAIT SENSOR="temperature_sensor chamber" MINIMUM={chambertemp} ; wait for chamber temp - # - M109 S{hotendtemp} ; set & wait for hotend temp - # + M104 S{hotendtemp} ; set & don't wait for hotend temp G28 Z ; final z homing + + G1 X0 Y0 F{maxVelocityAdjusted} + M109 S{hotendtemp} ; set & wait for hotend temp + BED_MESH_PROFILE LOAD=default G1 Z20 F3000 ; move nozzle away from bed diff --git a/printer.cfg b/printer.cfg index a70e663..2b7527e 100644 --- a/printer.cfg +++ b/printer.cfg @@ -23,6 +23,7 @@ max_velocity: 200 max_accel: 3000 max_z_velocity: 15 max_z_accel: 45 +square_corner_velocity: 8.0 ##################################################################### # X/Y/Z Stepper Settings @@ -32,7 +33,7 @@ max_z_accel: 45 step_pin: PB13 dir_pin: !PB12 enable_pin: !PB14 -microsteps: 64 +microsteps: 128 rotation_distance: 40 endstop_pin: tmc2209_stepper_x:virtual_endstop position_endstop: 0 @@ -55,7 +56,7 @@ diag_pin: PC0 step_pin: PB10 dir_pin: !PB2 enable_pin: !PB11 -microsteps: 64 +microsteps: 128 rotation_distance: 40 endstop_pin: tmc2209_stepper_y:virtual_endstop position_endstop: 0 @@ -78,7 +79,7 @@ diag_pin: PC1 step_pin: PB0 dir_pin: PC5 enable_pin: !PB1 -microsteps: 64 +microsteps: 128 rotation_distance: 4 endstop_pin: probe:z_virtual_endstop position_min: -4 @@ -103,7 +104,7 @@ uart_address: 1 step_pin: PB3 dir_pin: PB4 enable_pin: !PD1 -microsteps: 64 +microsteps: 128 rotation_distance: 4.65 nozzle_diameter: 0.400 filament_diameter: 1.750