-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhoming.cfg
34 lines (31 loc) · 1.23 KB
/
homing.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[homing_override]
set_position_x: 0
set_position_y: 0
set_position_z: 0
gcode:
G0 F36000
G91
G0 Z1 # move bed a litle bit to avoid scratch
G90
{% if params.X is defined or (params.X is undefined and params.Y is undefined and params.Z is undefined) %}
SET_TMC_CURRENT STEPPER=stepper_x CURRENT=0.5
G28 X
BEEP I=1 DUR=100
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={printer.configfile.settings['tmc2209 stepper_x'].run_current}
G0 X10
{% endif %}
{% if params.Y is defined or (params.X is undefined and params.Y is undefined and params.Z is undefined) %}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT=0.5
G28 Y
BEEP I=1 DUR=100
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={printer.configfile.settings['tmc2209 stepper_y'].run_current}
G0 Y10
{% endif %}
{% if params.Z is defined or (params.X is undefined and params.Y is undefined and params.Z is undefined) %}
G0 X{printer.toolhead.axis_maximum.x/2 - printer.probe["x_offset"]} Y{printer.toolhead.axis_maximum.y/2 - printer.probe["y_offset"]}
SET_TMC_CURRENT STEPPER=stepper_z CURRENT=0.33
G28 Z
BEEP I=1 DUR=100
SET_TMC_CURRENT STEPPER=stepper_z CURRENT={printer.configfile.settings['tmc2209 stepper_z'].run_current}
G0 Z10
{% endif %}