-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.g
238 lines (181 loc) · 9.92 KB
/
config.g
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
; Jubilee CoreXY ToolChanging Printer - Config File
; This file intended for Duet 3 hardware, main board plus onr expansion boards
h
; Name and network
; This is configured from the connected Raspberry Pi or here if in stand alone
; mode
;-------------------------------------------------------------------------------
; Networking
M550 P"Jubilee" ; Name used in ui and for mDNS http://Jubilee.local
;M552 P192.168.1.2 S1 ; Use Ethernet with a static IP, 0.0.0.0 for dhcp
;M553 P255.255.255.0 ; Netmask
;M554 192.168.1.1 ; Gateway
; General setup
;-------------------------------------------------------------------------------
M111 S0 ; Debug off
M929 P"eventlog.txt" S1 ; Start logging to file eventlog.txt
; General Preferences
M555 P2 ; Set Marlin-style output
G21 ; Set dimensions to millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
; Stepper mapping
;-------------------------------------------------------------------------------
; Connected to the MB6HC as the table below.
; Note: first row is numbered left to right and second row right to left
; _________________________________
; | X(Right) | Y(Left) | U(lock) |
; | Z(Back) | Z(Right) | Z(Left) |
M584 X1.1 Y1.0 ; X and Y for CoreXY
M584 U1 ; U for toolchanger lock
M584 Z2:3:4 ; Z has three drivers
;M569 P0 S0 ; Drive 0 | X stepper
;M569 P1 S0 ; Drive 1 | Y Stepper
M569 P1.0 S0 D3 ; 3HC Drive 0 | X stepper | Port 0 , D3 stealthchop
M569 P1.1 S0 D3 ; 3HC Drive 1 | Y Stepper | Port 1 D3 stealthchop
M906 X{0.85*sqrt(2)*2500} ; LDO XY 2000mA RMS the TMC5160 driver on duet3
M906 Y{0.85*sqrt(2)*2500} ; generates a sinusoidal coil current so we can
; multply by sqrt(2) to get peak used for M906
; Do not exceed 90% without heatsinking the XY
; steppers.
M569 P1 S0 ; Drive 2 | U Tool Changer Lock 670mA
M906 U{0.7*sqrt(2)*670} I60 ; 70% of 670mA RMS idle 60%
; Note that the idle will be shared for all drivers
M569 P0.2 S0 D2 ; Drive 2 | Front Left Z D3 stealth chop
M569 P0.3 S0 D2 ; Drive 3 | Front Right Z D3 stealth chop
M569 P0.4 S0 D2 ; Drive 4 | Back Z D3 stealth chop
M906 Z{0.7*sqrt(2)*1680} ; 70% of 1680mA RMS
;Distribution/ToolBoard
; Toolboard 0: address 20
; Tool steppers on expansion board (adapt this to your own set up)
M584 E20.0:21.0
M569 P20.0 S0 D2 ; D2 is spreadcycle D3 is stealthchop
M569 P21.0 S0 D2 ; D2 is spreadcycle D3 is stealthchop
;M584 E1.0:1.1 ; Extruders for two tools on expansion board address 1
;M569 P1.0 S0 D2 ; Drive 6 | Extruder T0 1400mA Spreadcycle Mode
;M569 P1.1 S0 D2 ; Drive 7 | Extruder T1 1400mA Spreadcycle Mode
;M906 E1400 ; {0.7*sqrt(2)*1400} 70% of 1400mA
; E don't support expressions in 3.2.0-beta4
;M569 P3 S0 D2 ; Drive 3 direction | Extruder 0 in Spreadcycle Mode
;M569 P4 S0 D2 ; Drive 4 direction | Extruder 1 in Spreadcycle Mode
; Kinematics
;-------------------------------------------------------------------------------
M669 K1 ; CoreXY mode
; Kinematic bed ball locations.
; Locations are extracted from CAD model assuming lower left build plate corner
; is (0, 0) on a 305x305mm plate.
M671 X297.5:2.5:150 Y313.5:313.5:-16.5 S10 ; Front Left: (297.5, 313.5)
; Front Right: (2.5, 313.5)
; Back: (150, -16.5)
; Up to 10mm correction
; Axis and motor configuration
;-------------------------------------------------------------------------------
M350 X1 Y1 Z1 U1 ; Disable microstepping to simplify calculations
;M92 X{1/(0.9*16/180)} ; step angle * tooth count / 180
;M92 Y{1/(0.9*16/180)} ; The 2mm tooth spacing cancel out with diam to radius
M92 X{1/(1.8*16/180)} ; step angle * tooth count / 180
M92 Y{1/(1.8*16/180)} ; The 2mm tooth spacing cancel out with diam to radius
M92 Z{360/0.9/4} ; 0.9 deg stepper / lead (4mm) of screw
M92 U{13.76/1.8} ; gear ratio / step angle for tool lock geared motor.
;M92 E51.875 ; Extruder - BMG 0.9 deg/step
; Enable microstepping all step per unit will be multiplied by the new step def
M350 X16 Y16 I1 ; 16x microstepping for CoreXY axes. Use interpolation.
M350 U4 I1 ; 4x for toolchanger lock. Use interpolation.
M350 Z16 I1 ; 16x microstepping for Z axes. Use interpolation.
;Extruder
M350 E16:16 I1 ; 16x microstepping for Extruder axes. Use interpolation.
M92 E695:695 ; Exstruder steps/mm
M203 E7200:7200 ; max speed mm/min
M566 E400:400 ; Instantaneous speed change mm/min
M201 E10000:10000 ; accerlation mm/s2
M906 E1200:1200 I10 ;motor current 1.2A idle current 10%
M207 S1.5 F7200 Z0.2 ; firmware retraction
M572 D0:1 S0.10 ; Set pressure advance, esun_matte_pla
; Speed and acceleration
;-------------------------------------------------------------------------------
M201 X2000 Y2000 ; Accelerations (mm/s^2)
M201 Z100 ; LDO ZZZ Acceleration
M201 U800 ; LDO U Accelerations (mm/s^2)
;M201 E1300 ; Extruder
M203 X18000 Y18000 Z1600 U9000 ; Maximum axis speeds (mm/min)
M566 X500 Y500 Z500 U50 ; Maximum jerk speeds (mm/min)
; Endstops and probes
;-------------------------------------------------------------------------------
; Connected to the MB6HC as the table below.
; | U | Z |
; | X |
; | Y |
M574 U1 S1 P"^io1.in" ; homing position U1 = axis min, type S1 = switch
;M574 X1 S1 P"^io1.in" ; homing position X1 = low-end, type S1 = switch
;M574 Y1 S1 P"^io2.in" ; homing position Y1 = low-end, type S1 = switch
M574 X1 S1 P"^1.io0.in" ; 3HC homing position X1 = axis min, type S1 = switch
M574 Y1 S1 P"^1.io1.in" ; 3HC homing position Y1 = axis min, type S1 = switch
M574 Z0 ; we will use the switch as a Z probe not endstop
M558 P8 C"io0.in" H3 F360 T6000 ; H = dive height F probe speed T travel speed
G31 K0 X0 Y0 Z-2 ; Set the limit switch position as the "Control Point."
; Note: the switch free (unclicked) position is 7.2mm,
; but the operating position (clicked) is 6.4 +/- 0.2mm.
; A 1mm offset (i.e: 7.2-6.2 = 1mm) would be the
; Z to worst-case free position, but we add an extra 1mm
; such that XY travel moves across the bed when z=0
; do *not* scrape or shear the limit switch.
; Set axis software limits and min/max switch-triggering positions.
; Adjusted such that (0,0) lies at the lower left corner of a 300x300mm square
; in the 305mmx305mm build plate.
M208 X-13.75:313.75 Y-44:341 Z0:295
M208 U0:200 ; Set Elastic Lock (U axis) max rotation angle
; Heaters and temperature sensors
;-------------------------------------------------------------------------------
; Bed
M308 S0 P"0.temp0" Y"thermistor" T100000 B3950 A"Bed" ; Keenovo thermistor
M950 H0 C"0.out0" T0 ; H = Heater 0
; C is output for heater itself
; T = Temperature sensor
M143 H0 S140 ; Set maximum temperature for bed to 140C
;M307 H0 A589.8 C589.8 D2.2 V24.1 B0 ; Keenovo 750w 230v built in thermistor
; mandala rose bed
M307 H0 R0.900 K0.279:0.000 D1.39 E1.35 S1.00 B0 ; from bed tune
M140 H0 ; Assign H0 to the bed
; Tools
; Heaters and sensors must be wired to main board for PID tuning (3.2.0-beta4)
;Revo6 on toolboard 0
M308 S1 P"20.temp0" Y"thermistor" T100000 B4725 C7.06e-8 A"ToolTemp1" ; ATC Semitec 104GT-2
M950 H1 C"20.out0" T1 ; Heater for extruder out tool 0
; M307 H1 A1252.3 C361.3 D5.3 V24.0 B0 ; from pid tuning without sock
;M307 H1 A811.4 C309.4 D4.7 V24.0 B0 ; With sock
M143 H1 S300 ; Maximum temp for hotend to 300C
;Dragon on toolboard 1
M308 S2 P"21.temp0" Y"thermistor" T100000 B4725 C7.06e-8 A"ToolTemp2" ; ATC Semitec 104GT-2
M950 H2 C"21.out0" T2 ; Heater for extruder out tool 0
; M307 H1 A1252.3 C361.3 D5.3 V24.0 B0 ; from pid tuning without sock
;M307 H1 A811.4 C309.4 D4.7 V24.0 B0 ; With sock
M143 H2 S350 ; Maximum temp for hotend to 300C
; Fans
;-------------------------------------------------------------------------------
;Toolboard1 Fans
M950 F1 C"20.out1"
M106 P1 S255 H1 T45 C"Revo6HeatBreakFan"
M950 F2 C"20.out2" Q10000
M106 P2 C"Revo6PrintCool"
;Toolboard2 Fans
M950 F3 C"21.out1"
M106 P3 S255 H2 T45 C"DragonHeatBreakFan"
;M950 F1 C"0.out8"
;M106 P1 S255 H1 T45 C"HeatBreakCool0" ; S = Speed of fan Px
; Hxx = heater for thermo mode
; T = temps for thermo mode.
;M950 F5 C"0.out7"
;M106 P5 C"PrintCool0"
; Tool definitions
;-------------------------------------------------------------------------------
M563 P0 S"Tool Revo6" D0 H1 F2 ; Px = Tool number
; Dx = Drive Number
; H1 = Heater Number
; Fx = Fan number print cooling fan
G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
; (-273 = "off")
M572 D0 S0.10 ; Set pressure advance, esun_matte_pla
M563 P1 S"Tool Dragon" D1 H2 F3
G10 P1 S0 R0
M98 P"/sys/Toffsets.g" ; Set tool offsets from the bed
M501 ; Load saved parameters from non-volatile memory