-
Notifications
You must be signed in to change notification settings - Fork 4
/
trad_rack_ercf.cfg
84 lines (76 loc) · 2.01 KB
/
trad_rack_ercf.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
76
77
78
79
80
81
82
83
84
[trad_rack]
selector_max_velocity: 400
selector_max_accel: 10000
toolhead_fil_sensor_pin: ^M7_STOP
sync_to_extruder: True
lane_count: 4
lane_spacing: 16.712500
servo_down_angle: 0.0
servo_up_angle: 131.0
toolhead_unload_speed: 20
extruder_load_speed: 20
toolhead_sense_speed: 20
selector_unload_length: 17.5
bowden_length: 600.0
extruder_load_length: 60
hotend_load_length: 6.0
toolhead_unload_length: 40.0
buffer_pull_speed: 300.0 # increase this to 300+ once you are ready
# (but some motors may not be able to handle this).
[stepper_tr_selector]
# stepper connected to SELECTOR, endstop to ENDSTOP
step_pin: tr:S_STEP
dir_pin: !tr:S_DIR
enable_pin: !tr:S_EN
rotation_distance: 40
microsteps: 16
full_steps_per_rotation: 200
endstop_pin: ^tr:gpio20
position_min: -0.062
position_endstop: -0.062
position_max: 50.138
homing_speed: 30
[stepper_tr_fil_driver]
# stepper connected to GEAR, selector filament sensor to ENCODER
step_pin: tr:gpio7
dir_pin: tr:gpio8
enable_pin: !tr:gpio6
rotation_distance: 22.67895
gear_ratio: 50:17
microsteps: 16
full_steps_per_rotation: 200
endstop_pin: ^tr:gpio15 # selector filament sensor
position_min: -5000
position_endstop: 0
position_max: 5000
homing_positive_dir: False
[tmc2209 stepper_tr_selector]
# connected to SELECTOR
uart_pin: tr:gpio0
interpolate: True
run_current: 0.63 # for a 1A peak motor
sense_resistor: 0.110
[tmc2209 stepper_tr_fil_driver]
# connected to GEAR
uart_pin: tr:gpio9
interpolate: False
run_current: 1.27 # for a 2A peak motor
sense_resistor: 0.110
[servo tr_servo]
# connected to SERVO
pin: tr:gpio21
maximum_servo_angle: 131
minimum_pulse_width: 0.000700
maximum_pulse_width: 0.002200
[extruder]
max_extrude_only_distance: 200
max_extrude_cross_section: 100
# Macros
[gcode_macro ACTIVATE_EXTRUDER]
rename_existing: ACTIVATE_EXTRUDER.1
gcode:
{% set EXTRUDER = params.EXTRUDER|default('extruder')|lower|replace('extruder', '') %}
{% if EXTRUDER == '' %}
{% set EXTRUDER = '0' %}
{% endif %}
TR_LOAD_TOOLHEAD LANE={EXTRUDER}