Klipper configs files
This commit is contained in:
80
Klipeer/sensorless.cfg
Normal file
80
Klipeer/sensorless.cfg
Normal file
@@ -0,0 +1,80 @@
|
||||
[force_move]
|
||||
enable_force_move: true
|
||||
|
||||
[gcode_macro HOME_X]
|
||||
gcode:
|
||||
SET_TMC_CURRENT STEPPER=stepper_x CURRENT=0.5
|
||||
G28 X
|
||||
G0 X{225/ 2} F9000
|
||||
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={printer.configfile.config["tmc2209 stepper_x"].run_current}
|
||||
|
||||
[gcode_macro HOME_Y]
|
||||
gcode:
|
||||
SET_TMC_CURRENT STEPPER=stepper_y CURRENT=0.5
|
||||
G28 Y
|
||||
G0 Y{225 / 2} F9000
|
||||
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={printer.configfile.config["tmc2209 stepper_x"].run_current}
|
||||
|
||||
[gcode_macro HOME_Z]
|
||||
gcode:
|
||||
{% set PROBE_X_OFFSET = 26.00 %}
|
||||
{% set PROBE_Y_OFFSET = 26.50 %}
|
||||
G0 X{( 225 / 2 ) + PROBE_X_OFFSET } F9000
|
||||
G0 Y{( 225 / 2 ) + PROBE_Y_OFFSET } F9000
|
||||
G28 Z
|
||||
G0 Z10 F600
|
||||
G0 Y{225 / 2} F9000
|
||||
G0 X{225 / 2} F9000
|
||||
M204 S{printer.configfile.config.printer.max_accel}
|
||||
|
||||
[gcode_macro HOME_Z_homed]
|
||||
gcode:
|
||||
HOME_X
|
||||
HOME_Y
|
||||
HOME_Z
|
||||
|
||||
[homing_override]
|
||||
axes: xyz
|
||||
gcode:
|
||||
|
||||
{% set x_homed = 'x' in printer.toolhead.homed_axes %}
|
||||
{% set y_homed = 'y' in printer.toolhead.homed_axes %}
|
||||
{% set z_homed = 'z' in printer.toolhead.homed_axes %}
|
||||
{% set home_all = 'X' not in params and 'Y' not in params and 'Z' not in params %}
|
||||
{% set current_z = printer.toolhead.position.z %}
|
||||
|
||||
{% if not z_homed or home_all %}
|
||||
SET_KINEMATIC_POSITION Z=0
|
||||
G91
|
||||
G1 Z10 F300
|
||||
{% endif %}
|
||||
|
||||
|
||||
M400
|
||||
G90
|
||||
M204 S1000
|
||||
|
||||
{% if current_z < 10 %}
|
||||
G0 Z10 F600
|
||||
{% endif %}
|
||||
|
||||
{% if home_all or not z_homed %}
|
||||
HOME_Z_homed
|
||||
{% endif %}
|
||||
|
||||
{% if 'Y' in params and 'X' in params %}
|
||||
HOME_X
|
||||
HOME_Y
|
||||
{% endif %}
|
||||
|
||||
{% if 'Y' in params %}
|
||||
HOME_Y
|
||||
{% endif %}
|
||||
|
||||
{% if 'X' in params %}
|
||||
HOME_X
|
||||
{% endif %}
|
||||
|
||||
{% if 'Z' in params %}
|
||||
HOME_Z
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user