-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmulti_extruder.cfg
114 lines (99 loc) · 3.36 KB
/
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[gcode_macro variables]
variable_tool = 0
gcode:
[extruder_stepper extruder_1]
extruder:
step_pin = PD13
dir_pin = !PD12
enable_pin = !PD14
microsteps: 16
rotation_distance: 7.71
gear_ratio: 50:17
[extruder_stepper extruder_2]
extruder:
step_pin = PC6
dir_pin = !PD15
enable_pin = !PC7
microsteps: 16
rotation_distance: 7.71
gear_ratio: 50:17
[extruder_stepper extruder_3]
extruder:
step_pin = PA8
dir_pin = !PC9
enable_pin = !PC10
microsteps: 16
rotation_distance: 7.71
gear_ratio: 50:17
[gcode_macro T0]
gcode:
# Deactivate stepper in my_extruder_stepper
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_1 MOTION_QUEUE=
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_2 MOTION_QUEUE=
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_3 MOTION_QUEUE=
# Activate stepper in extruder
SYNC_EXTRUDER_MOTION EXTRUDER=extruder MOTION_QUEUE=extruder
SET_EXTRUDER_ROTATION_DISTANCE EXTRUDER=extruder DISTANCE=7.71
SET_GCODE_VARIABLE MACRO=variables VARIABLE=tool VALUE=0
[gcode_macro T1]
gcode:
SYNC_EXTRUDER_MOTION EXTRUDER=extruder MOTION_QUEUE=
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_2 MOTION_QUEUE=
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_3 MOTION_QUEUE=
# Activate stepper in my_extruder_stepper
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_1 MOTION_QUEUE=extruder
SET_EXTRUDER_ROTATION_DISTANCE EXTRUDER=extruder_1 DISTANCE=7.71
SET_GCODE_VARIABLE MACRO=variables VARIABLE=tool VALUE=1
[gcode_macro T2]
gcode:
SYNC_EXTRUDER_MOTION EXTRUDER=extruder MOTION_QUEUE=
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_1 MOTION_QUEUE=
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_3 MOTION_QUEUE=
# Activate stepper in extruder
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_2 MOTION_QUEUE=extruder
SET_EXTRUDER_ROTATION_DISTANCE EXTRUDER=extruder_2 DISTANCE=7.71
SET_GCODE_VARIABLE MACRO=variables VARIABLE=tool VALUE=2
[gcode_macro T3]
gcode:
SYNC_EXTRUDER_MOTION EXTRUDER=extruder MOTION_QUEUE=
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_1 MOTION_QUEUE=
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_2 MOTION_QUEUE=
# Activate stepper in my_extruder_stepper
SYNC_EXTRUDER_MOTION EXTRUDER=extruder_3 MOTION_QUEUE=extruder
SET_EXTRUDER_ROTATION_DISTANCE EXTRUDER=extruder_3 DISTANCE=7.71
SET_GCODE_VARIABLE MACRO=variables VARIABLE=tool VALUE=3
[gcode_macro T4]
gcode:
MIX
SET_GCODE_VARIABLE MACRO=variables VARIABLE=tool VALUE=4
[gcode_macro T5]
gcode:
RANDOM_MIX
SET_GCODE_VARIABLE MACRO=variables VARIABLE=tool VALUE=5
[gcode_macro ACTIVATE_EXTRUDER]
description: Replaces built-in macro for a X-in, 1-out extruder configuration SuperSlicer fix
rename_existing: ACTIVATE_EXTRUDER_BASE
gcode:
{% if 'EXTRUDER' in params %}
{% set ext = params.EXTRUDER|default(EXTRUDER) %}
{% if ext == "extruder"%}
{action_respond_info("Switching to extruder.")}
T0
{% elif ext == "extruder_1" %}
{action_respond_info("Switching to extruder_1.")}
T1
{% elif ext == "extruder_2" %}
{action_respond_info("Switching to extruder_2.")}
T2
{% elif ext == "extruder_3" %}
{action_respond_info("Switching to extruder_3.")}
T3
{% else %}
{action_respond_info("EXTRUDER value being passed.")}
ACTIVATE_EXTRUDER_BASE EXTRUDER={ext}
{% endif %}
{% endif %}
[delayed_gcode activate_default_extruder]
initial_duration: 1
gcode:
ACTIVATE_EXTRUDER EXTRUDER=extruder