forked from DraftShift/klipper-toolchanger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoolchanger.cfg
75 lines (69 loc) · 3.11 KB
/
toolchanger.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Original written by Viesturs Zarins
# Modified by Justin F. Hallett
[toolchanger]
t_command_restore_axis: Z
# Options for sensorless homing
# NOTE: AWD the front motors will be set to 0.1 automatically
homing_current: 0.5
stepper_driver: tmc5160
sensorless_x: True # Should X axis be sensorless or not. True for sensorless, False for switch
sensorless_y: False # Should Y axis be sensorless or not. True for sensorless, False for switch
# Homing Options
homing_usetap: True
homing_toolless: False
homing_rebound_y: 20.0 # The amount to move on the Y axis after homing Y, this is important for switch homing so have the proper distance for X homing.
tools_preheat: True # Preheat tools in PRINT_START if the slicer sends the heat values
# Docking options
params_safe_y: 90 # This should be the thickness of your thickest tool from the park_y. If park_y is 0 and your thickest tool is 80, this should be 80
params_close_y: 25 # This should be the thickness of the shuttle and a little buffer
params_fast_speed: 30000 # Go as fast as we can
params_path_speed: 900 # 20mm/s for the actual change
params_changer_type: 'sc' # sc, tc_pads, tc_rods
params_dock_type: 'modular' # modular, tc_sb, tc_mini, hookon
# The dropoff path of each tool type, pickup path is the same in reverse. Dont change unless you know what you are doing.
# Full path is build in this order for drop off:
# -> dock_path
# -> f:0.5 (this is the param_park location and sensor detection)
# -> changer_path
params_changer_sc_path: [{'z':-8}, {'z':-8, 'y':24}]
params_changer_tc_pads_path: [{'z':-5}, {'y':1, 'z':-7}, {'y':3, 'z':-9}, {'y':7, 'z':-11}]
params_changer_tc_rods_path: [{'z':-6}, {'z':-10, 'y':3}, {'z':-10, 'y':16}]
params_dock_modular_path: [{'y':3, 'z':3}]
params_dock_tc_sb_path: [{'y':9.5, 'z':8}, {'y':9.5, 'z':2}, {'y':5.5}]
params_dock_tc_mini_path: [{'y':9, 'z':2}, {'y':8}]
params_dock_hookon_path: [{'y':4}]
# Parking position - per tool
#params_park_x: 142.2
#params_park_y: -6.0
#params_park_z: 308.2
# Default shaper params
params_input_shaper_freq_x: 0
params_input_shaper_type_x: 'mzv'
params_input_shaper_damping_ratio_x: 0.1
params_input_shaper_freq_y: 0
params_input_shaper_type_y: 'mzv'
params_input_shaper_damping_ratio_y: 0.1
initialize_on: manual
initialize_gcode:
DETECT_ACTIVE_TOOL_PROBE
_INITIALIZE_FROM_DETECTED_TOOL
before_change_gcode:
{% if tool.name %}
RESPOND TYPE=echo MSG='Before changing {tool.name}'
_TOOLCHANGER_TOOL_BEFORE_CHANGE TN={tool.name|replace('tool ', '', 1)}
{% endif %}
after_change_gcode:
{% if tool.name %}
RESPOND TYPE=echo MSG='After changing {tool.name}'
_TOOLCHANGER_TOOL_AFTER_CHANGE TN={tool.name|replace('tool ', '', 1)}
{% endif %}
dropoff_gcode:
{% if tool.name %}
RESPOND TYPE=echo MSG='Dropping off {tool.name}'
_TOOLCHANGER_TOOL_DROPOFF TN={tool.name|replace('tool ', '', 1)}
{% endif %}
pickup_gcode:
{% if tool.name %}
RESPOND TYPE=echo MSG='Picking up {tool.name}'
_TOOLCHANGER_TOOL_PICKUP TN={tool.name|replace('tool ', '', 1)}
{% endif %}