Skip to content

Instantly share code, notes, and snippets.

@jrsphoto jrsphoto/bed.g
Last active Apr 17, 2020

Embed
What would you like to do?
Duet Reprap v3 config files for my Ender 3 pro
M561 ; clear any bed transform
M201 X1000.00 Y1000.00 Z90.00 ; reduce accelerations a bit before we probe
G29 ; probe the bed and enable compensation
M201 X5000.00 Y5000.00 Z95.00 E4000.00 ; set accelerations (mm/s^2)
G1 Z10 X10 Y10 F2000
; Configuration file for Duet WiFi (firmware version 3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2.1.5 on Wed Jan 08 2020 16:01:30 GMT-0800 (Pacific Standard Time)
; General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Ender3" ; set printer name
; Network
;M551 P"ender" ; set password
M552 S1 ; enable network
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet
; Drives
M569 P0 S0 ; physical drive 0 goes backwards
M569 P1 S1 ; physical drive 1 goes backwards
M569 P2 S1 ; physical drive 2 goes backwards
M569 P3 S0 ; physical drive 3 goes forwards
M569 P4 S1 ; physical drive 4 goes forwards
;M584 X0 Y1 Z2 E3 ; set drive mapping
M584 X0 Y1 Z2:4 E3 ; set drive mapping
M671 X-20:220 Y0:0 S0.5 ; leadscrews at left (connected to Z) and right (connected to E1) of X axis
M208 X-5:205 Y0:200 ; X carriage moves from -5 to 205, Y bed goes from 0 to 200
M92 X80.00 Y80.00 Z397.44 E409 ; set steps per mm
M201 X5000.00 Y5000.00 Z95.00 E4000.00 ; set accelerations (mm/s^2)
M203 X35000.00 Y35000.00 Z2000.00 E610.00 ; set maximum speeds (mm/min)
M204 P1000 T3000
M566 X900.00 Y900.00 Z40.00 E1000.00 ; set maximum instantaneous speed changes (mm/min) (jerk)
M906 X1000 Y1000 Z1000 E900 I60 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minimums
M208 X215 Y215 Z200 S0 ; set axis maxima
; Endstops - when switching to optical - remember to invert the pin
M574 X1 S1 P"xstop" ; configure active-low endstop for low end on X via pin xstop
M574 Y1 S1 P"ystop" ; configure active-low endstop for low end on Y via pin ystop
M574 Z1 S2
M950 H3 C"nil" ; Disable heaters h3-h7 to free up pins
M950 H4 C"nil"
M950 H5 C"nil"
M950 H6 C"nil"
M950 H7 C"nil"
; Z-Probe
M950 S0 C"exp.heater3" ; create servo pin 0 for BLTouch
M558 P9 C"^zprobe.in" H3 F300 T7200 ; set Z probe type to bltouch and the dive height + speeds
;M558 P5 C"!zprobe.in" H14 F300 T7200 ; set Z probe type for inductive sensor with dive height + speeds
;
; Bed Height Adjustments here
;
G31 P500 X-37.00 Y-0.00 Z1.742 ; set Z probe trigger value, offset and trigger height Z2.75
;M557 X45:193 Y30:193 S32 ; S32 = 40 points S20 = 72 points define mesh grid
M557 X20:165 Y20:190 S20
; Heaters
M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 A"BedTemp" ; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M307 H0 B0 S1.00 ; disable bang-bang mode for the nozzle heater and set PWM limit
M307 H0 A129.9 C531.9 D0.3 S1.00 V24.0 B0 ; PID Auto tune values
;
M308 S1 P"e0temp" Y"thermistor" T100000 B4138 A"Extrdr" ; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
M143 H1 S280 ; set temperature limit for heater 1 to 280C
M307 H1 B0 S1.00 ; disable bang-bang mode for the nozzle heater and set PWM limit
M307 H1 A475.8 C177.7 D5.3 S1.00 V24.1 B0 ; PID Auto tune values
; Sensors for MCU thermal fans
M308 S3 Y"mcu-temp" A"MCUTemp" ; configure sensor 3 as thermistor on pin mcu-temp for Duet 2
; Part Fan
M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
M106 P0 C"Part" S0 H-1 ; set fan 0 name and value. Thermostatic control is turned off
; Extruder Fan
M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
M106 P1 C"Extruder" S1 H1 T60 ; set fan 1 name and value. Thermostatic control is turned on
; Thermal fan on drivers sensor
M308 S2 Y"drivers" A"Drivers" ; configure sensor 2 as temperature warning and overheat flags on the TMC2660 on Duet 2
M950 F2 C"fan2" Q100 ; create fan 2 on pin fan2 and set its frequency
M106 P2 H2:4 L0.0 X0.05 B0.5 T45:55 C"DrvTemp" ; set fan 2 value and connect to sensor 2. Turn on at 50% if Driver temp reaches 45C, increase to full speed gradually as the temp rises to 55C
; Tools
M563 P0 S"MicroSwiss" D0 H1 F0 ; define tool 0
G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C
; Miscellaneous
T0 ; select first tool
G28 ; Home on boot
; deployprobe.g
; called to deploy a physical Z probe
;
; generated by RepRapFirmware Configuration Tool v2.1.5 on Wed Jan 08 2020 15:33:51 GMT-0800 (Pacific Standard Time)
M280 P0 S10 ; deploy BLTouch
; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool v2.1.5 on Wed Jan 08 2020 15:33:51 GMT-0800 (Pacific Standard Time)
G91 ; relative positioning
G1 H2 Z5 F6500 ; lift Z relative to current position
G1 H1 X-235 Y-215 F2800 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 H2 X5 Y5 F6500 ; go back a few mm
G1 H1 X-235 Y-215 F1360 ; move slowly to X and Y axis endstops once more (second pass)
G90 ; absolute positioning
G1 X154 Y104 F6000 ; go to first probe point
G30 ; home Z by probing the bed
; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z5 X10 Y10 F10000 ; lift Z relative to current position
G90 ; absolute positioning
G1 Z10 X10 Y10 F10000
; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool v2.1.5 on Wed Jan 08 2020 15:33:51 GMT-0800 (Pacific Standard Time)
G91 ; relative positioning
G1 H2 Z5 F6500 ; lift Z relative to current position
G1 H1 X-235 F4800 ; move quickly to X axis endstop and stop there (first pass)
G1 H2 X5 F6500 ; go back a few mm
G1 H1 X-200 F2000 ; move slowly to X axis endstop once more (second pass)
G1 H2 Z-5 F6500 ; lower Z again
G90 ; absolute positioning
G0 X10
; homey.g
; called to home the Y axis
;
; generated by RepRapFirmware Configuration Tool v2.1.5 on Wed Jan 08 2020 15:33:51 GMT-0800 (Pacific Standard Time)
G91 ; relative positioning
G1 H2 Z5 F6500 ; lift Z relative to current position
G1 H1 Y-215 F4800 ; move quickly to Y axis endstop and stop there (first pass)
G1 H2 Y5 F6500 ; go back a few mm
G1 H1 Y-215 F2360 ; move slowly to Y axis endstop once more (second pass)
G1 H2 Z-5 F6500 ; lower Z again
G90 ; absolute positioning
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v2.1.5 on Wed Jan 08 2020 15:33:51 GMT-0800 (Pacific Standard Time)
G91 ; relative positioning
G1 H2 Z10 F6500 ; lift Z relative to current position
G90 ; absolute positioning
G1 X154 Y104 F6000 ; go to first probe point
G30 ; home Z by probing the bed
; Uncomment the following lines to lift Z after probing
G91 ; relative positioning
G1 Z5 F5000 ; lift Z relative to current position
G90 ; absolute positioning
G0 X10
; retractprobe.g
; called to retract a physical Z probe
;
; generated by RepRapFirmware Configuration Tool v2.1.5 on Wed Jan 08 2020 15:33:51 GMT-0800 (Pacific Standard Time)
M280 P0 S90 ; retract BLTouch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.