Skip to content

Instantly share code, notes, and snippets.

@madebyjeffrey
Created May 24, 2017 03:43
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 madebyjeffrey/0596c4252b6a38a72529adaa3090379f to your computer and use it in GitHub Desktop.
Save madebyjeffrey/0596c4252b6a38a72529adaa3090379f to your computer and use it in GitHub Desktop.
; Configuration file for Mini Kossel kit from Think3DPrint3D for testing Duet WiFi
; Communication and general
M111 S0 ; Debug off
M550 DuetWifi ; Machine name and Netbios name (can be anything you like)
M551 Allah ; Machine password (used for FTP)
;*** If you have more than one Duet on your network, they must all have different MAC addresses, so change the last digits
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
;*** Wifi Networking
M552 S1 ; Enable WiFi
M555 P2 ; Set output to look like Marlin
;M555 P1
M575 P1 B57600 S1 ; Comms parameters for PanelDue
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
; Axis and motor configuration
M569 P0 S1 ; Drive 0 goes forwards
M569 P1 S0 ; Drive 1 goes forwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S0 ; Drive 3 goes forwards
M569 P4 S1 ; Drive 4 goes forwards
M574 X1 Y1 Z0 S1 ; set endstop configuration (all endstops at high end, active high)
M350 X256 Y256 Z256 E16
;M350 X16 Y16 Z16 E8 I1 ; Set 16x microstepping with interpolation
M92 X1280 Y1280 Z36283.52
;M92 X80 Y80 Z2267.72 ; Set axis steps/mm
M906 X1420 Y1420 Z1420 E800 I60 ; Set motor currents (mA) and increase idle current to 60%
;M906 X1420 Y1420 Z1420 E800 I60 ; Set motor currents (mA) and increase idle current to 60%
M201 X600 Y600 Z300 E1000 ; Accelerations (mm/s^2)
M203 X10000 Y5000 Z110 E1500 ; Maximum speeds (mm/min)
M566 X700 Y700 Z700 E1200 ; Maximum instant speed changes mm/minute
M208 X178 Y120 Z120 ; set axis maxima and high homing switch positions (adjust to suit your machine)
M208 X-18 Y0 Z0 S1 ; set axis minima and low homing switch positions (adjust to make X=0 and Y=0 the edges of the bed)
M143 H1 S290
; Thermistors
M305 P0 T100000 B4267 R4700 H30 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
M305 P1 X200
;M305 P1 T100000 B3974 R4700 H30 L0 ; Put your own H and/or L values here to set the first nozzle thermistor ADC correction
;M305 P2 T100000 B3974 R4700 H30 L0 ; Put your own H and/or L values here to set the second nozzle thermistor ADC correction
M570 H0 P10 T10
M570 H1 P5 T10 ; Hot end may be a little slow to heat up so allow it 180 seconds
M307 H1 A476.1 C191.8 D5.2 B0
M307 H0 A83.0 C187.5 D6.3 B0
; Fans
;M106 P2 H1 T50 ; enable thermostatic mode for fan 0
M106 P1 H1 T50 S100
M106 P0 H1 T50 S100
; Tool definitions
M563 P0 D0 H1 F2 ; Define tool 0
G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
;*** If you have a single-nozzle build, comment the next 2 lines
;M563 P1 D1 H2 ; Define tool 1
;G10 P1 S0 R0 ; Set tool 1 operating and standby temperatures
;M92 E6697.59:6697.59
M92 E431.5:431.5
;M92 E399:399 ; Set extruder steps per mm
; Z probe and compensation definition
;*** If you have a switch instead of an IR probe, change P1 to P4 in the following M558 commandl
;M558 P1 X0 Y0 Z0 ; Z probe is an IR probe and is not used for homing any axes
;G31 X0 Y0 Z4.80 P500 ; Set the zprobe height and threshold (put your own values here)
M558 P4 I1 Z1 H4 R2 F180
G31 T4 P100 X-51 Y30 Z1.65
M557 X10:170 Y10:110 S20
;*** If you are using axis compensation, put the figures in the following command
;M556 S78 X0 Y0 Z0 ; Axis compensation here
M208 S1 Z0 ; set minimum Z
;
T0 ; select first hot end
G91 ; relative mode
G1 Z10 F200 ; raise head 4mm
G1 X-200 Y-200 F3000 S1 ; move up to 240mm in the -X and -Y directions until the homing switches are triggered
G1 X4 Y4 F600 ; move slowly 6mm in +X and +Y directions
G1 X-10 Y-10 S1 ; move up to 10mm in the -X and -Y directions until the homing switches are triggered
G90
G1 X70 Y0 F4000
G91
G1 Z-200 S1 ; move up to 240mm in the -Z direction, stopping if the homing switch is triggered
G1 Z4 F600 ; move slowly 4mm in the +Z direction
G1 Z-10 S1 ; move slowly 10mm in the -Z direction, stopping at the homing switch
G90
;G30 ; lower head, stop when probe triggered and set Z to trigger height
G92 Z1.84
G91 ; relative mode
G1 Z4 F200 ; raise head to avoid dragging nozzle over the bed
G90
G1 X70 Y0 F4000 ;; move X so the trigger is over the bed
G91
G1 Z-200 S1 ; move up to 240mm in the -X direction, stopping if the homing switch is triggered
G1 Z4 F600 ; move slowly 4mm in the +X direction
G1 Z-10 S1 ; move slowly 10mm in the -X direction, stopping at the homing switch
G90 ; back to absolute mode
G92 Z1.84
G28 ; home all axes
G29 S2 ;; clear any compensation
G91
G1 E-5 F180
G90
G1 Z30 F4800
G1 X0 Y0 F4800
G91
G1 E20 F180
G90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment