-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
/
sample-multi-extruder.cfg
62 lines (56 loc) · 1.47 KB
/
sample-multi-extruder.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
# This file contains a configuration snippet for a printer using two
# extruders that are selected by a servo.
# See docs/Config_Reference.md for a description of parameters.
# The primary extruder
[extruder]
step_pin: ar26
dir_pin: ar28
enable_pin: !ar24
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.500
filament_diameter: 3.500
heater_pin: ar10
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog13
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 210
# Script to change back to the main extruder
[gcode_macro T0]
gcode:
SET_SERVO SERVO=extruder_servo angle=100 # Lift secondary extruder
SET_GCODE_OFFSET Z=0 MOVE=1 # Adjust z-height
SET_GCODE_OFFSET X=0 # Clear X offset
ACTIVATE_EXTRUDER EXTRUDER=extruder
# Secondary extruder
[extruder1]
step_pin: ar36
dir_pin: ar34
enable_pin: !ar30
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.500
filament_diameter: 3.500
heater_pin: ar9
sensor_pin: analog15
sensor_type: EPCOS 100K B57560G104F
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 210
# Script to activate second extruder
[gcode_macro T1]
gcode:
SET_GCODE_OFFSET Z=0.100 MOVE=1 # Adjust z-height
SET_SERVO SERVO=extruder_servo angle=100 # Position second extruder
SET_GCODE_OFFSET X=5 # Account for different X offset
ACTIVATE_EXTRUDER EXTRUDER=extruder1
# Servo definition
[servo extruder_servo]
pin: ar7