config.g
; Configuration file for Duet WiFi (firmware version 1.21)
; executed by the firmware on start-up
; General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
M667 S1 ; Select CoreXY mode
; Network
M550 P"Tronxy X5S" ; Set machine name
M552 S1 ; Enable network
M586 P0 S1 ; Enable HTTP
M586 P1 S1 ; Enable FTP
;M586 P2 S1 ; Enable Telnet
; Drives
M584 X0 Y1 Z2:3 E4 ; define driver per axis
M671 x-90:420 Y0:0 S4 ; define axis position relative to the bed
M569 P0 S1 ; Drive 0 goes forwards (X)
M569 P1 S1 ; Drive 1 goes forwards (Y)
M569 P2 S0 ; Drive 2 goes backwards (Z1)
M569 P3 S0 ; Drive 3 goes backwards (Z2)
M569 P4 S1 ; Drive 3 goes backwards (E)
M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
M92 X80.00 Y80.00 Z400.00 E406.16 ; Set steps per mm
M98 P"/sys/motor_speeds.g" ; Set motor settings
M84 S30 ; Set idle timeout
; Axis Limits
M208 X0 Y0 Z0 S1 ; Set axis minima
M208 X330 Y330 Z345 S0 ; Set axis maxima
; Endstops
M574 X1 S1 P"!xstop" ; X min active high endstop switch
M574 Y1 S1 P"!ystop" ; Y min active high endstop switch
; Z-Probe
M574 Z1 ; Set endstops controlled by probe
M558 P9 C"zprobe.in" F800:150 H6 R0.4 T250 A30 B1 ; Set Z probe type to bltouch and the dive height + speeds
M950 S0 C"exp.heater7" ; assign GPIO port 7 (S0) to heater7 on expansion connector, servo mode
G31 X2 Y57 Z2.155 ; Set Z probe trigger value, offset and trigger height
M557 X30:300 Y60:270 P7:5 ; Define mesh grid
;;M557 X30:300 Y60:270 P7:7 ; Define mesh grid
; Heaters
M308 S0 P"bedtemp" Y"thermistor" A"Heatbed" T100000 B4138 R4700 ; define bed temperature sensor
M308 S1 P"e0temp" Y"thermistor" A"Extruder" T100000 B4138 R4700 ; define E0 temperature sensor
M308 S2 Y"mcu-temp" A"MCU" ; define msu temperature sensor
M950 H0 C"bedheat" T0 ; heater 0 uses the bedheat pin, T0 = sensor 0
M950 H1 C"e0heat" T1 ; heater 1 uses the e0heat pin, T1 = sensor 1
M140 H0 ; set heater H0 zu BedTemp M140 = Bed Temp
M143 H0 S90 ; Set temperature limit for heater 0 to 90C
M143 H1 S230 ; Set temperature limit for heater 1 to 230C
; Fans
M950 F0 C"fan0" Q500
M950 F1 C"fan1" Q500
M106 P0 S0 H-1 ; Set fan 0 (), Thermostatic control is turned off
M106 P1 S0 H1 T40 ; Set fan 1 () value, at Temp Sensor 1, Thermostatic control is turned on at 40 degree
;paneldue 5" V3
M575 P1 S1 B57600
; Tools
M563 P0 S"E0" D0 H1 ; Define ("create") 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
; Automatic power saving
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss
; Custom settings
; M915 X Y Z S10 R2 ; stall detection for axis motors
; Miscellaneous
M501 ; Load saved parameters from non-volatile memory
T0 ; Select first tool
M200 D1.75 ; volumetric extrusion
;M572 D0 S0.1 ; pressure advance (0.65 for 600mm bowden?)
; trigger ATX power button / power on ATX
M80
M556 S70 X0.60 ; axis compensation
; homeall.g
; called to home all axes
M98 P"/sys/homex.g" ;start homing x
M98 P"/sys/homey.g" ;start homing y
M98 P"/sys/homez.g" ;start homing z
G1 H1 X0 ; return 0 X axis
G1 H1 Y0 ; return 0 Y axis
homex.g
; homex.g
; called to home the X axis
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G1 H1 X-335 F3600 ; move quickly to X axis endstop and stop there (first pass)
G1 X5 F6000 ; go back a few mm
G1 H1 X-335 F360 ; move slowly to X axis endstop once more (second pass)
G1 H2 Z-5 F6000 ; lower Z again
G90 ; absolute positioning
; homey.g
; called to home the Y axis
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G1 H1 Y-335 F3600 ; move quickly to Y axis endstop and stop there (first pass)
G1 Y5 F6000 ; go back a few mm
G1 H1 Y-335 F360 ; move slowly to Y axis endstop once more (second pass)
G1 H2 Z-5 F6000 ; lower Z again
G90 ; absolute positioning
; homez.g
; called to home the Z axis
G91 ; relative positioning
M280 P0 S160 ; Alarm Release and Push-Pin UP
G1 H2 Z5 F6000 ; lift Z relative to current position
G90 ; absolute positioning
G1 X162.3 Y115.7 F6000 ; Go to first bed probe point and home Z
;M558 P9 C"zprobe.in" F750:100 H10 R0.3 T4000 A1 B1 ; Set single probing at faster feed rate
G30 ; Do a single probe to home our Z axis
;M558 P9 C"zprobe.in" F100 H5 R0.3 T4000 A15 B1 ; Set multi probing at slower feed rate
G1 X10 Y108.7 F6000 ; go to the probe point before "probing" Y - 57 (offset)
G30 P0 X10 Y165.7 Z-99999 ; probe near a leadscrew, half way along Y axis
G1 X320 Y108.7 F6000 ; go to the probe point before "probing" , Y - 57 (offset)
G30 P1 X320 Y165.7 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
G1 X162.3 Y105.7 F6000 ; go to first bed probe point and home Z
G30 ; Probe again to get a more accurate position
G1 H1 X0 ; home X axis
G1 H1 Y0 ; home Y axis
; bed.g
; called to perform automatic bed compensation via G32
M98 P"/sys/motor_speeds.g" ; re-Set motor settings
M561 ; clear any bed transform
M280 P0 S160 ; Alarm Release and Push-Pin UP
; bed leveling takes some approaches to level "perfectly"
G30 P0 X10 Y110 Z-99999 ; probe near a leadscrew, half way along Y axis
G30 P1 X320 Y110 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
; go back near home before probing
G1 H1 X20 ; return 0 X axis
G1 H1 Y50 ; return 0 Y axis
M558 T250 ; Set Z probe type to bltouch and the dive height + speeds
; probe the bed using mesh compensation
G29 ; probe the bed and enable compensation
M98 P"/sys/motor_speeds.g" ; re-Set motor settings
; motor-speeds.g
M203 X30000.00 Y30000.00 Z1200.00 E3000.00 ; Set maximum speeds (mm/min)
M201 X3000.00 Y3000.00 Z100.00 E250.00 ; Set accelerations (mm/s^2)
M566 X900.00 Y900.00 Z12.00 E160.00 ; Set maximum instantaneous speed changes (mm/min) (Jerk)
M906 X800.00 Y800.00 Z800.00 E800.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
I added the "motor_speeds.g" to get rid of the issues I got with latest update ( from RRF V2 to V3.3 )