macro at full rate decel, more power for steppers
This commit is contained in:
parent
0d1b6d5cfc
commit
78ea812db4
3 changed files with 7 additions and 24 deletions
|
@ -77,20 +77,10 @@ gcode:
|
|||
G90
|
||||
|
||||
# Set new limits
|
||||
SET_VELOCITY_LIMIT VELOCITY={speed} ACCEL={accel} ACCEL_TO_DECEL={accel / 2}
|
||||
SET_VELOCITY_LIMIT VELOCITY={speed} ACCEL={accel} ACCEL_TO_DECEL={accel}
|
||||
|
||||
# Home and get position for comparison later:
|
||||
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 %}
|
||||
G0 X{printer.toolhead.axis_maximum.x} Y{printer.toolhead.axis_maximum.y} F{30*60}
|
||||
G4 P1000
|
||||
GET_POSITION
|
||||
|
||||
# Go to starting position
|
||||
G0 X{x_min} Y{y_min} Z{bound + 10} F{speed*60}
|
||||
|
@ -130,12 +120,5 @@ gcode:
|
|||
# Restore max speed/accel/accel_to_decel to their configured values
|
||||
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}
|
||||
|
||||
# Re-home and get position again for comparison:
|
||||
G28
|
||||
# Go to XY home positions (in case your homing override leaves it elsewhere)
|
||||
G0 X{printer.toolhead.axis_maximum.x} Y{printer.toolhead.axis_maximum.y} F{30*60}
|
||||
G4 P1000
|
||||
GET_POSITION
|
||||
|
||||
# Restore previous gcode state (absolute/relative, etc)
|
||||
RESTORE_GCODE_STATE NAME=TEST_SPEED
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#LDO 48mm 1.8 42STH48-2004AC - 1.4Ohm 3mH
|
||||
[tmc2209 stepper_x]
|
||||
uart_pin: PC4
|
||||
run_current: 1.5
|
||||
run_current: 1.8
|
||||
sense_resistor: 0.110
|
||||
stealthchop_threshold: 0
|
||||
diag_pin: ^PG6 # Set to MCU pin connected to TMC DIAG pin
|
||||
driver_SGTHRS: 80 # 255 is most sensitive value, 0 is least sensitive
|
||||
driver_SGTHRS: 70 # 255 is most sensitive value, 0 is least sensitive
|
||||
driver_TBL: 1
|
||||
driver_TOFF: 3
|
||||
driver_HSTRT: 1
|
||||
|
@ -14,11 +14,11 @@ driver_HEND: 3
|
|||
#LDO 48mm 1.8 42STH48-2004AC - 1.4Ohm 3mH
|
||||
[tmc2209 stepper_y]
|
||||
uart_pin: PD11
|
||||
run_current: 1.5
|
||||
run_current: 1.8
|
||||
sense_resistor: 0.110
|
||||
stealthchop_threshold: 0
|
||||
diag_pin: ^PG9 # Set to MCU pin connected to TMC DIAG pin
|
||||
driver_SGTHRS: 80 # 255 is most sensitive value, 0 is least sensitive
|
||||
driver_SGTHRS: 70 # 255 is most sensitive value, 0 is least sensitive
|
||||
driver_TBL: 1
|
||||
driver_TOFF: 3
|
||||
driver_HSTRT: 1
|
||||
|
|
|
@ -3,7 +3,7 @@ step_pin: PF13 # Drive0
|
|||
dir_pin: PF12
|
||||
enable_pin: !PF14
|
||||
endstop_pin: tmc2209_stepper_x:virtual_endstop
|
||||
microsteps: 16
|
||||
microsteps: 32
|
||||
rotation_distance: 40
|
||||
position_endstop: -3
|
||||
position_min: -3
|
||||
|
@ -19,7 +19,7 @@ step_pin: PG0 # Drive1
|
|||
dir_pin: PG1
|
||||
enable_pin: !PF15
|
||||
endstop_pin: tmc2209_stepper_y:virtual_endstop
|
||||
microsteps: 16
|
||||
microsteps: 32
|
||||
rotation_distance: 40
|
||||
position_endstop: 331
|
||||
position_min: 0
|
||||
|
|
Loading…
Add table
Reference in a new issue