-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsensorless-homing.cfg
More file actions
57 lines (43 loc) · 1.94 KB
/
Copy pathsensorless-homing.cfg
File metadata and controls
57 lines (43 loc) · 1.94 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# WARNING. DO NOT EDIT THIS FILE.
# To override settings from this file, you can copy and paste the relevant
# sections into your printer.cfg and change it there.
# BEWARE, this doesn't work if you've bent the DIAG pins on your x / y steppers.
[stepper_x]
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_min: -12
position_endstop: -12
[stepper_y]
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_min: -12
position_endstop: -5
[tmc2209 stepper_x]
diag_pin: PB10
driver_SGTHRS: 70 # Stall guard threshold, this is your X sensitivity, to adjust, copy this section and override it in printer.cfg.
[tmc2209 stepper_y]
diag_pin: PE12
driver_SGTHRS: 70 # Stall guard threshold, this is your Y sensitivity, to adjust, copy this section and override it in printer.cfg.
[homing_override]
set_position_z: 5
gcode:
M400 # Wait for moves to finish
G90 # Absolute positioning
G0 Z10 F600 # Hop Z-Axis
M204 S1000 # Set homing acceleration (important!)
# Home Y
SET_TMC_CURRENT STEPPER=stepper_x CURRENT=0.4 HOLDCURRENT=0.4
SET_TMC_CURRENT STEPPER=stepper_y CURRENT=0.4 HOLDCURRENT=0.4
G28 Y
G0 Y{printer.toolhead.axis_maximum.y / 2} F9000
# Home X
SET_TMC_CURRENT STEPPER=stepper_x CURRENT=0.5 HOLDCURRENT=0.5
SET_TMC_CURRENT STEPPER=stepper_y CURRENT=0.5 HOLDCURRENT=0.5
G28 X
G0 X{printer.toolhead.axis_maximum.x / 2} F9000
# Restore current
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={printer.configfile.config["tmc2209 stepper_x"].run_current} HOLDCURRENT={printer.configfile.config["tmc2209 stepper_x"].hold_current}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={printer.configfile.config["tmc2209 stepper_y"].run_current} HOLDCURRENT={printer.configfile.config["tmc2209 stepper_y"].hold_current}
G0 X{printer.toolhead.axis_maximum.x / 2} Y{printer.toolhead.axis_maximum.y / 2} F3000
# Rehome Z
G28 Z
# Safe Z
G0 Z10 F600