config.g
; Configuration file for testing Duet Ethernet and Wifi
; Communication and general
M111 S0 ; Debug off
M550 PStewie the bigbox ; Machine name and Netbios name (can be anything you like)
M551 Preprap ; 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
M586 P1 S1
;*** Networking - Enable for both WiFi and Ethernet boards.
M552 S1 ; Turn network on
;*** Ethernet networking: Adjust the IP address and gateway in the following 2 lines to suit your network
;M552 P192.168.1.14 ; (0 = DHCP)
M554 P192.168.1.255 ; Gateway
M553 P255.255.255.0 ; Netmask
G29 S1
M375
; axis configuration –-----------------------
M584 X0 Y1 Z2 U3 E4:5
; Machine configuration --------------------------------------------------------------------------------------------------------------------------------------
M569 P0 S0 ; X Drive 0 goes forwards (Seems to differ randomly between printers change to S0 to change direction)
M569 P1 S1 ; Y Drive 1 goes backwards (Seems to differ randomly between printers change to S1 to change direction)
M569 P2 S0 ; Z Drive 2 goes backwards (Seems to differ randomly between printers change to S1 to change direction)
M569 P3 S1 ; E0 Drive 3 goes forwards (Seems to differ randomly between printers change to S0 to change direction)
M569 P4 S1 ; E1 Drive 4 goes forwards (Seems to differ randomly between printers change to S0 to change direction)
M569 P5 S1
; endstop configuration ------------------------------------------------------------------------------------------------------------------------------------
M574 X1 Y1 U2 S1 ; set endstop configuration (X and Y and endstops only, at low end, active high)
M350 X16 Y16 E16 U16 I1 ; Set 16x microstepping with interpolation
M906 X700 Y700 U700 Z800 E1200:1200 ; Set motor currents (mA) and increase idle current to 60%
M201 X800 Y800 U800 Z15 E1000:1000 ; Accelerations (mm/s^2)
M203 X15000 Y15000 U15000 Z100 E3600:3600 ; Maximum speeds (mm/min)
M566 X600 Y600 U600 Z30 E20:20 ; Minimum speeds mm/minute
M208 X300 Y240 U330 Z295 ; set axis maxima (adjust to suit your machine)
M208 X-25 Y0 U0 Z-1.35 S1 ; set axis minimum (adjust to make X=0 and Y=0 the edge of the bed) --M208 X0 Y0 Z-0.2 S1
M92 X80.35 Y361.93 U80.35 Z1600 ; Set axis steps/mm
M92 E521.06:430.41 ; Set extruder steps per mm
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
; Z probe-------------------------------------------------------------------------------------------------------------------------------------------------------
M558 P1 ; Smart IR Z probe, used for homing Z axis, dive height 3mm, probe speed 200mm/min, travel speed 5000mm/min
G31 X-5 Y-55 Z2.0 P500 ; Set the probe height and threshold; increase Z to decrease bed probe distance X11.0 Y0.5
; Thermistors and heaters ---------------------------------------------------------------------------------------------------------------------------------------
M305 P0 T100000 B4388 R4700 H0 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
M305 P1 X201 ; Put your own H and/or L values here to set the first nozzle thermistor ADC correction
M305 P2 X200 ; Put your own H and/or L values here to set the second nozzle thermistor ADC correction
;*** You can use S and B parameters to define the parameters of the thermistors you are using
M301 H1 P10 I0.10 D100 T0.50 S1.0 ; PID settings for extruder 0 (You should calibrate this to your printer)
M307 H2 P10 I0.10 D100 T0.50 S1.0 ; PID settings for extruder 1 (You should calibrate this to your printer)
;***Fans------------------------------------------------------------------------------------------------------------------------------------------------
M106 P0 F10
M106 P2 F10
M106 P3 T45 H1 ; Set temp for H1 fan start
M106 P4 T45 H2 ; Set temp for H2 fan start
; Tool definition--------------------------------------------------------------------------------------------------------------------------------------------------
M563 P0 D0 H1 F0:2 ; Define tool 0
G10 P0 X0.0 Y0.0 Z0.0 S0 R0 ; Set tool 0 operating and standby temperatures
M563 P1 D1 H2 X3 F0:2 ; Define tool 1
G10 P1 X-0.2 Y-15.8 Z0.20 S0 R0 ; Set tool 1 operating and standby temperatures
;M556 S78 X0 Y0 Z0 ; Axis compensation here
M140 S0 ; Set bed heating to off
; Read bed calibration. ( un-comment AFTER bed leveling has been done... and all coordinate are checked in scripts... trust me on that...)
M375
T0 ; select first hot end (All my scripts uses T0 as reference so I always try to remember to set it so no
homeall.g
; Lift Z relative to current position
T0 ; select first hot end
G91 ; Relative coordinates
G1 Z4 F6000 ; Lower bed to avoid hotend dragging in bed.
G1 X-350 Y-240 U350 F3000 S1 ; move up to 350mm in the -X and -Y directions until the homing switches are triggered
G1 X6 Y6 U-6 F600 ; move slowly 6mm in +X and +Y directions
G1 X-10 U10 Y-10 S1 ; move up to 10mm in the -X and -Y directions until the homing switches are triggered
G90 ; Absolute coordinates
; #############################################
G1 X53 Y55 F3000 ; Go to first bed probe point and home the Z axis
G30 ; Home Z-axis
homeu.g
M117 Home U
G91
G1 Z4 F200
G1 U240 F3000 S1
G1 U-4 F600 S2
G1 U10 S1
G1 Z-4 F200
G90
homex.g
M117 Home X
; X axis homing file for dc42 Duet firmware
T0 ; select first hot end
G91 ; Relative coordinates
G1 Z4 F200 ; Lower bed to avoid hotend dragging in bed.
G1 X-350 F3000 S1 ; move up to 350mm in the -X direction until the homing switches are triggered
G1 X6 F600 ; move slowly 6mm in +X direction
G1 X-10 S1 ; move up to 10mm in the -X direction until the homing switches are triggered
G1 Z-4 F200 ; Lower bed to avoid hotend dragging in bed.
G90 ; Absolute coordinates
homey.g
M117 Home Y
; Y homing file for dc42 Duet firmware
T0 ; select first hot end
G91 ; Relative coordinates
G1 Z4 F200 ; Lower bed to avoid hotend dragging in bed.
G1 Y-240 F3000 S1 ; move up to 240mm in the -Y direction until the homing switch are triggered
G1 Y6 F600 ; move slowly 6mm in +Y direction
G1 Y-10 S1 ; move up to 10mm in the -Y direction until the homing switch are triggered
G90 ; Absolute coordinates
G1 X65 Y15 F3000 ; Go to first bed probe point and home the Z axis
G91 ; Relative coordinates
G1 Z-4 F200 ; Raise bed to original height.
G90 ; Absolute coordinates
homez.g
M117 Home Z
T0 ; select first hot end
G91 ; Relative coordinates
G1 Z5 F200 ; Lower bed to avoid hotend dragging in bed.
G90 ; Absoulte coordinates
G1 X25 Y55 F3000 ; Go to first bed probe point and home the Z axis
G30 ; Calibrate Z-axis
G1 Z1 F200 ; Raise bed to 1mm.