;File : config-user.g for the Project R3D Kit ;Effect : Provides a custom configuration area for the Railcore user. ;Use-case : By keeping any custom definitions in this file (such as Z probe attributes, axis minima/maxima and anything else that you wish to override in config.g ; : it will enable the user to easily keep track of their own changes to the default config, as well as provide a simple upgrade path for future Github releases. ; Z probe and compensation definition ; *** WARNING - **Always** make sure your cables are correct, secure and test them thoroughly before homing Z for the first times! ; INSTRUCTIONS : 1) Uncomment your configuration lines ; 2) M558 *** Do not add the Fxxx parameter for M558 here, it is set in homez.g ; 3) G31 configuration ; a) Customize your offsets appropriately, where the probe is X Y is offset from the nozzle. ; b) Z is the trigger height (how high your nozzle is from the bed when the probe triggers). You need to dial those in. ; c) Tip: A larger trigger height in G31 moves you CLOSER to the bed ; ** to place deployprobe.g and retractprobe.g from the bltouch directory into the /sys directory and read the README CAREFULLY. M558 P9 ; BL-touch G31 X2 Y42 Z2.1 P25 ; BL-touch - Z Offset set to 0, determine your own Z-Offset and enter it here (Note: Positive number is closer to the bed) M307 H3 A-1 C-1 D-1 ; BL-touch : remaps some channels to make the PWM port on the Duex5 work for a Z-probe if you use a different PWM port than the docs show, you have to change that M558 H5 A3 T6000 ; Set 5mm dive height, 3 probes and 6000 travel speed. ; Axis and motor configuration - Faster speeds, so uncomment only when fully commissioned! M906 X1400 Y1400 Z1000 E1250 I60 ; Set motor currents (mA) M201 X3000 Y3000 Z20 E3000 ; Accelerations (mm/s^2) M203 X24000 Y24000 Z900 E3600 ; Maximum speeds (mm/min) M566 X1000 Y1000 Z30 E3600 ; Maximum jerk speeds mm/minute ; Drives M569 P3 S1 ; Project R3D : Drive 3 goes backwards - Extruder ; Set axis minima:maxima switch positions (Adjust to suit your machine and to make X=0 and Y=0 the edges of the bed) ;M208 X0:300 Y0:300 Z-0.2:330 ; 300ZL ;M208 X0:300 Y0:300 Z-0.2:610 ; 300ZLT ;M557 X50:290 Y50:290 S240 S240 ; Set Default Mesh - NOTE: take probe offset into account ; E.G. If probe offset is 42 on Y, then Y50:290 will take the hotend to Y08 to Y248) ;Bed heater M143 H0 S120 ; Maximum H0 (Bed) heater temperature ; Mosquito Magnum Hotend M307 H1 A472.6 C147.8 D2.7 S1.00 V24.1 B0 M563 P0 S"Mosquito Magnum" D0 H1 ; Change name of hotend. G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets M143 H1 S275 ; Slice Thermistor ;M305 P1 T500000 B4723 C1.196220e-7 ; Maximum H1 temperature ; change this to whatever maximum you would like. M143 H1 S300 ; Tool definition - E3D Gold COMMENTED OUT ;M563 P0 S"E3Dv6 Gold" D0 H1 ; Define tool 0 uses extruder 0, heater 1 ;G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets ;M143 H1 S290 ; Maximum H1 (Extruder) heater temperature (E3D requires 285C to change nozzle) ; M98 P"wifi.g" ; Run WiFi configuration file , only run wifi.g UNTIL YOU ARE CONNECTED AND THEN DELETE. ; As well as being a security hazard, writing the access point parameters to WiFi chip every ; time you start the Duet may eventually wear out the flash memory.