this is for config.g
; Configuration file for Duet WiFi (firmware version 3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.1.4 on Fri Oct 02 2020 12:18:13 GMT+0700 (Indochina Time)
; General preferences
M80 ; Turns on the ATX power supply
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"BLV mgn Cube" ; set printer name
M669 K1 ; select CoreXY mode
; Network
M552 S1 ; enable network
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet
; Drives
M569 P0 S1 ; physical drive 0 goes forwards
M569 P1 S1 ; physical drive 1 goes forwards
M569 P2 S0 ; physical drive 2 goes backwards
M569 P3 S0 ; physical drive 3 goes backwards
M569 P4 S0 ; physical drive 4 goes backwards
M584 X0 Y1 Z2:4 E3 ; set drive mapping
;M671 X-50:378 Y164:164 S0.5 ; Define the X and Y coordinates of the leadscrews.
M671 X379:-51 Y164:164 S5 ; Define the X and Y coordinates of the leadscrews.
M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
;M92 X200.00 Y200.00 Z400.00 E418.00 ; set steps per mm
M92 X198.65 Y200.5 Z399.60 E417.71 ; set steps per mm
M566 X660.00 Y660.00 Z24.00 E300.00 ; set maximum instantaneous speed changes (mm/min)
M203 X20000.00 Y20000.00 Z600.00 E2000.00 ; set maximum speeds (mm/min)
M201 X3000.00 Y3000.00 Z100.00 E5000.00 ; set accelerations (mm/s^2)
M906 X1700 Y1700 Z1600 E300 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
; Pressure advance
M572 D0 S0.13 ; enabled Pressure advance
; Axis Limits
;M208 X0 Y0 Z0 S1 ; set axis minima
;M208 X350 Y350 Z350 S0 ; set axis maxima
M208 X-7:343 Y0:340 Z0:450
; Endstops
M574 X1 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop
M574 Y2 S1 P"ystop" ; configure active-high endstop for low end on Y via pin ystop
; Filament sensor
;M591 D0 P1 C3 S1 ; Set Filament sensor Simple type (High) for extruder drive 0, connected to endstop input 3 (E0)
;disabled port
;M307 H7 A-1 C-1 D-1 ; Disable the 7th Heater to free up PWM channel 5 on the Duex board.
; Z-Probe
M558 P9 C"^zprobe.in" H5 F200 T4000 X0 Y0 Z0 A2 R0.1 S0.02 ; set Z probe type to bltouch and the dive height + speeds H=Dive Height. F=Speed the bed moves
M574 Z1 S1 P"zprobe.in" ; Set endstops controlled by probe
M950 S0 C"exp.heater3" ; create servo pin 0 for BLTouch
G31 P25 X-41 Y0 Z2.11 ;sblumnya 2.88 ; set Z probe trigger value, offset and trigger height
M557 X20:308 Y20:308 S92 ; define mesh grid
; Heaters
;M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
M308 S0 P"bedtemp" Y"thermistor" T100000 B3950 C0 R4700 ; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
M140 H0 ; map heated bed to heater 0
M143 H0 S110 ; set temperature limit for heater 0 to 110C
M308 S1 P"e0temp" Y"thermistor" T100000 B3950 C0 R4700 ; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
M143 H1 S260 ; set temperature limit for heater 1 to 260C
M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
;PID set values
M307 H1 A511.8 C182.7 D9.7 V23.8 B0 ; Set PID for hotend values
M307 H0 A126.6 C968.3 D0.6 v23.8 B0 ; Set PID for heated bed values
; Fans
M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
M106 P0 S0 H-1 C"Part" ; set fan 0 value. Thermostatic control is turned off
M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
M106 P1 S1 H1 T35 C"Hotend" ; set fan 1 value. Thermostatic control is turned on
M950 F2 C"fan2" ; create fan 2 on pin fan1 and set its frequency
M106 P2 S0 H-1 C"LED" ; set fan 2 value. Thermostatic control is turned on
; Tools
M563 P0 D0 H1 F0 ; define 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
; Custom settings are not defined
;M564 H0 ; Let the Jog buttons work blv: added to allow jog buttons
M593 F90.5 ; cancel ringing at 40.5Hz
; Miscellaneous
M575 P1 S1 B57600 ; enable support for PanelDue
M911 S21 R22 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
;filament sensor setting
M591 D0 P7 C"e0_stop" L6.2 R50:200 E12.4 S1 ; s1 enable s0 disable
;M591 D0 P7 C"e0_stop" R50:200 L6.2 E18.6 S0
T0 ; select first tool