Skip to content

Instantly share code, notes, and snippets.

@BrianGilbert
Last active January 9, 2018 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianGilbert/e3f5065848081cc850fe3c7c32f6402b to your computer and use it in GitHub Desktop.
Save BrianGilbert/e3f5065848081cc850fe3c7c32f6402b to your computer and use it in GitHub Desktop.
Duet BI config for single E3Dv6
M561 ; clear any bed transform, otherwise homing may be at the wrong height
G28 ; home the printer
; bed.g file for RepRapFirmware, generated by Escher3D calculator
; 13 points, 7 factors, probing radius: 130, probe offset (23, 0)
G30 P0 X0.00 Y128.01 Z-99999 H0
G30 P1 X74.48 Y88.76 Z-99999 H0
G30 P2 X108.99 Y19.22 Z-99999 H0
G30 P3 X97.34 Y-56.20 Z-99999 H0
G30 P4 X41.42 Y-113.80 Z-99999 H0
G30 P5 X-44.46 Y-122.16 Z-99999 H0
G30 P6 X-112.58 Y-65.00 Z-99999 H0
G30 P7 X-128.03 Y22.57 Z-99999 H0
G30 P8 X-83.56 Y90.59 Z-99999 H0
G30 P9 X0.00 Y61.28 Z-99999 H0
G30 P10 X42.70 Y-24.65 Z-99999 H0
G30 P11 X-56.29 Y-32.50 Z-99999 H0
G30 P12 X0 Y0 Z-99999 S7
G1 X0 Y0 Z150 F15000 ; get the head out of the way of the bed
; Config for Brian's heavily modified BI V2.5
M111 S0 ; Debug off
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
;*** Communications
;***
;***
M550 P"ZestyZero" ; Machine name and Netbios name (can be anything you like)
M551 "zesty" ; Machine password (used for FTP)
M552 S1 ; Enable WiFi
M575 P1 B57600 S1 ; Comms parameters for PanelDue
;*** Fans
M106 S0 ; Turn off Fan 0 (backward compatible with older firmware)
M106 P1 S0 ; Turn off Fan 1
;*** Motor and axis configuration
;***
;***
M569 P0 S1 ; Drive 0 (X) goes forwards
M569 P1 S1 ; Drive 1 (Y) goes forwards
M569 P2 S1 ; Drive 2 (Z) goes forwards
M569 P3 S1 ; Drive 3 (E0) goes forwards
M569 P4 S1 ; Drive 4 (E1) goes forwards
M574 X2 Y2 Z2 S1 ; all endstops active high
M350 X16 Y16 E16 I1 ; Set 16x microstepping with interpolation
M92 X200 Y200 Z200 E2400 ; Set axis steps/mm http://prusaprinters.org/calculator/#stepspermmbelt
M201 X1000 Y1000 Z1000 E120 ; Accelerations (mm/s^2) Set all E-motors the same
M203 X18000 Y18000 Z18000 E1000 ; Maximum speeds (mm/min) Set all E-motors the same
M566 X1200 Y1200 Z1200 E40 ; Maximum instant speed changes mm/minute. Set all E-motors the same
M906 X950 Y950 Z950 E500 I60 ; Set motor currents (mA) and increase motor idle current to 60%
M665 L440.391 R261.830 H428.84 B150.00 X0.254 Y-0.208 Z0.000
; L = diagonal rod length, measure between bearing centres. Measure this as accurately as you can.
; R = delta radius. This is the horizontal distance spanned by each of the rods when the effector is centred, again measured between bearing centres.
; H = height of the nozzle above the bed when all three carriages are just high enough to trigger the endstop switches.
; B = printable bed radius
; X, Y, Z = tower position corrections. Unless you have an unusual geometry such as a "square" delta, omit them or set them to zero.
M666 X-2.33 Y-2.03 Z4.37 A0.00 B0.00
; X, Y, Z = endstop switch position corrections.
; A = bed tilt in the X direction, in percent (+1.0 means that as you move 100mm in the +X direction, the bed rises by 1mm).
; B = bed tilt in the Y direction, in percent.
;*** Heat and temperature
;***
;***
; Heating
;M307 H0 A624.7 C768.3 D22.1 B0 ; Set Heater 0 (bed)
M307 H1 A422.7 C267.4 D7.0 S1.00 B0 ; Set Heater 1 (extruder)
M570 S60 ; Hot end may be a little slow to heat up so allow it 60 seconds
; Temp sensing
M305 P0 T100000 B3950 R4700 H0 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
M305 P1 X201 R396 ; Put your own H and/or L values here to set the 1st nozzle thermistor ADC correction
M143 H0 S160 ; set the maximum bed temperature to 160C
;*** Tool definitions FOR E3DV6 HOT-END - Tools 0
;***
;***
M563 P0 D1 H1 ; Define tool 0
G10 P0 S0 R150 X0 Y0 ; Set tool 0 operating and standby temperatures and centre offset
; Z probe and compensation definition
M558 P1 X0 Y0 Z0 H5 ; Z probe is a DC42 IR PCB and is not used for homing any axes
G31 X22 Y0 Z0.09 P500 ; Set the zprobe offset, height and threshold (put your own values here)
M208 S1 Z-0.2 ; set minimum Z
T0 ; select first hot end
; Homing file for RepRapFirmware on Mini Kossel
G91 ; use relative positioning
G1 S1 X650 Y650 Z650 F6000 ; move all carriages up 650mm, stopping at the endstops
G1 S2 X-4 Y-4 Z-4 F1800 S2 ; move all carriages down 4mm
G1 S1 X8 Y8 Z8 F360 ; move carriages slowly up 8mm, stopping at the endstops
G1 Z-5 F6000 ; down a few mm so that we can centre the head
G90 ; back to absolute positioning
G1 X0 Y0 F6000 ; centre the head and set a reasonable feed rate
; Pause macro file
M83 ; relative extruder moves
G1 E-2 F2500 ; retract 4mm
G91 ; relative moves
G1 Z10 F5000 ; raise nozzle 4mm
G90 ; absolute moves
G1 X0 Y85 F5000 ; move head out of the way of the print
; Resume macro file
G1 R1 Z2 F5000 ; move to 2mm above resume point
G1 R1 ; lower nozzle to resume point
M83 ; relative extruder moves
G1 E2 F2500 ; undo the retraction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment