; SCARA #2SHOP
M111 S0 ; Debug off
M550 SCARA ; 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
;*** Networking
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
M555 P2 ; Set output to look like Marlin
G21 ; Work in mm
G90 ; Send absolute coordinates…
M83 ; ...but relative extruder moves
; Disable Fan 1 thermostatic mode
M584 X5 Y6 Z7 E3 ;Set drive mapping
; Axis and motor configuration
M569 P5 S0 R0 T4 ; Drive 0 goes forwards X
M569 P6 S0 R0 T4 ; Drive 1 goes forwards Y
M569 P7 S0 R0 T4 ; Drive 2 goes forwards Z
;M569 P8 S0 R0 T4 ; Drive 3 goes forwards E
M569 P3 S0 ; Drive 3 goes backwards E
M669 K4 P453.75 D458.75 A-90:90 B-156:156 C0:0:0 T1 ; set SCARA mode and parameters
;M669 K0;
;Endstop configuration
M574 X1 Y2 Z2 S0 ; M574 X2 Y2 Z2 S1set endstop configuration (all endstops at high end, active high)
;*** The homed height is deliberately set too high in the following - you will adjust it during calibration
M666 X0 Y0 Z0
M208 S1 X-90 Y-126 Z-1 ; Axis minima
M208 X90 Y1156 Z150 ; Axis maxima Z WAS 100 ; put your endstop adjustments here, or let auto calibration find them
M350 X1 Y1 Z1 E16 E2 I1 ; Set 1x microstepping with interpolation
M92 X736.36 Y736.36 ; Steps/degree for proximal and distal joints M92 X415.726492 Y273.504273
M92 Z6600 E350 ; Steps/mm for Z and E
M906 X0 Y0 Z0 E1500 I60 ; Set motor currents (mA) and increase idle current to 60%
M201 X100 Y100Z1000 E1000 ; Accelerations (mm/s^2)
M203 X1000Y1000Z5000 E1000 ; Maximum speeds (mm/min) 1000
M566 X10 Y10 Z500 E1200 ; Maximum instant speed changes mm/minute
M581 Z1 S1 C1 ;Configure external trigger
; Thermistors
;M305 P0 T100000 B3950 R4700 H30 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
;M305 P1 T100000 B3974 R4700 H30 L0 ; Put your own H and/or L values here to set first nozzle thermistor ADC correction
;M305 P2 T100000 B3974 R4700 H30 L0 ; Put your own H and/or L values here to set 2nd nozzle thermistor ADC correction
; Tool definitions
M563 P0 D0 H1
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P0 R00 S00 ; Set initial tool 0 active and standby temperatures to 0C
M92 E663:663 ; Set extruder steps per mm
;*** If you are using axis compensation, put the figures in the following command
;M556 S78 X0 Y0 Z0 ; Axis compensation here
M208 S1 Z200 ;M208 S1 Z-0.2 ; set minimum Z
;T0 ; select first hot end
; Pressure advance
;M572 D0 S0.5
; Misc
M83
M117 Use https://configurator.reprapfirmware.org/ to set up your printer config
M302 P1
M563 P0 D0 T1 ;enable cold extrusion.
; Heaters
;M143 H1 S260 ; Maximum heater temperature
M140 H-1 ; No bed heater
;M305 P1 T100000 B4138 C0 R4700 ; Thermistor parameters for heater 1
;M307 H1 A577.0 C199.0 D9.8 S1.00 B0
M665 H100
TO