;========================================= ;========================================= ; ; >>> CONFIG.G <<< ; ;========================================= ;========================================= ; ; Configuration file for RailcoreII 300ZL Series Printers ; Do NOT change this file. All customizations should occur in config-user.g ; Debugging M111 S0 ; Debug off M929 P"eventlog.txt" S1 ; Start logging to file eventlog.txt M550 P"RailCore" ; Machine name and Netbios name (can be anything you like) M552 P0.0.0.0 ; Use DHCP ; General preferences M555 P2 ; Set output to look like Marlin M575 P1 B57600 S1 ; Comms parameters for PanelDue G21 ; Work in millimetres G90 ; Send absolute coordinates... M83 ; ...but relative extruder moves ; Axis and motor configuration M669 K1 ; CoreXY mode ; Drives M584 X0 Y1 Z5:6:7 E3:4:8:9 ; Map Z to drivers 5, 6, 7. Define unused drivers 3,4,8 and 9 as extruders M569 P0 S1 ; Drive 0 goes forwards (change to S0 to reverse it)| X stepper M569 P1 S0 ; Drive 1 goes backwards(change to S1 to reverse it)| Y Stepper M569 P2 S1 ; Drive 2 goes forwards | Unused M569 P3 S1 ; Drive 3 goes forwards | Extruder S1 for Bondtech, S0 for Titan M569 P4 S1 ; Drive 4 goes forwards | Extruder (unused) M569 P5 S0 ; Drive 5 goes backwards | Front Left Z M569 P6 S0 ; Drive 6 goes backwards | Rear Left Z M569 P7 S0 ; Drive 7 goes backwards | Right Z ;Leadscrew locations M671 X-10:-10:333 Y22.5:277.5:150 S7.5 ;Front left,(-10,22.5) Rear Left (-10.,227.5) , Right (333,160) S7.5 is the max correction - measure your own offsets, to the bolt for the yoke of each leadscrew ; Axis and motor configuration M350 X16 Y16 Z16 E16 I1 ; Set 16x microstepping for axes & extruder, with interpolation. M574 X1 Y1 Z0 S1 ; Set homing switch configuration (x,y at min, z at max) IF YOU NEED TO REVERSE YOUR HOMING SWITCHES CHANGE S1 to S0 M906 X500 Y500 Z400 E700 I60 ; Motor currents (mA) - WARNING: Conservative - May trigger stallguard (and prematurely during homing) if sensorless. M201 X500 Y500 Z02 E500 ; Accelerations (mm/s^2) - WARNING: Conservative M203 X3000 Y3000 Z50 E1800 ; Maximum speeds (mm/min) - WARNING: Conservative M566 X200 Y200 Z5 E10 ; Maximum jerk speeds mm/minute - WARNING: Conservative M92 X200 Y200 Z1600 ; Steps/mm for X.Y M92 Z1600 ; Steps/mm for Z - TR8*2 / 1.8 deg stepper or TR8*4 / 0.9 deg stepper ;M92 E837 ; Extruder - 0.9 deg/step (ProjectR3D kit with E3D stepper MT-1701HSM140AE or Standard Titan stepper 42BYGHM208P4.5-15-X2) M92 E815 ; Set axis minima:maxima switch positions (Adjust to suit your machine and to make X=0 and Y=0 the edges of the bed) ; These values are conservative to start with, adjust during commissioning. ;M208 X0:250 Y0:250 Z-0.2:230 ; Conservative 300ZL/T settings (or 250ZL) M208 X296 Y300 Z620 ; Thermistors M305 P0 S"Bed" T100000 B3950 R4700 H0 L0 ; BOM thermistor values. Put your own H and/or L values here to set the bed thermistor ADC correction M305 P1 S"E0" T100000 B4725 C7.06e-8 R4700 H0 L0 ; E3D Semitec 104GT2 thermistor values. Put your own H and/or L values here to set the first nozzle thermistor ADC correction ;Heaters M570 S360 ; Print will be terminated if a heater fault is not reset within 360 minutes. M143 H0 S80 ; Maximum H0 (Bed) heater temperature (Conservative) M143 H1 S285 ; Maximum H1 (Extruder) heater temperature (Conservative and in case extruder has PTFE lining) M140 S-273 R-273 ; Standby and initial Temp for bed as "off" (-273 = "off") ; Default heater model ;M307 H0 A270.7 C90.4 D6.7 B0 S1.0 ; Default Bed Heater Parameters, before tuning / if config-override.g is missing ;M307 H1 A508.1 C249.0 D3.8 S1.00 V24.2 B0 ; Default Tool Heater Parameters, before tuning / if config-override.g is missing M307 H0 A381.5 C889.5 D9.3 S1.00 V24.3 B0 ; From Tuning M307 H1 A498.3 C242.2 D3.8 S1.00 V24.3 B0 ; From Tuning ; Fans M106 P0 H-1 ; Disable thermostatic mode for fan 0 M106 P1 H-1 ; Disable thermostatic mode for fan 1 M106 P2 H-1 ; Disable thermostatic mode for fan 2 M106 P0 S0 ; Turn off fans M106 P1 S0 M106 P2 S0 ; Tool definitions M563 P0 D0 H1 ; Define tool 0 G10 P0 S-273 R-273 ; Set tool 0 operating and standby temperatures(-273 = "off") ; Z probe M558 H10 A1 T3000 S0.02 ; Z probe - raise probe height. ; H10 - dive height ; A bigger dive height prevents a situation where the bed is out of alignment by more than the dive height ; on any corner, which can crash the hot-end into the bed while moving the head in XY. ; Probing speed and travel speed are similarly reduced in case the Z probe isn't connected properly (or ; disconnects later after moving to a point) giving the user more time to stop. M557 X50:200 Y50:200 S150 S150 ; Set Default Mesh (conservative) M98 P"config-user.g" ; Load custom user config M501 ; Load saved parameters from non-volatile memory ;========================================= ;========================================= ; ; >>> CONFIG-USER.G <<< ; ;========================================= ;========================================= ; ;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 M552 S1 ;Enable Wifi ; ** REMEMBER 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 Z1.27 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 E1000 ; Accelerations (mm/s^2) M203 X24000 Y24000 Z900 E3600 ; Maximum speeds (mm/min) M566 X1000 Y1000 Z1300 E20 ; Maximum jerk speeds mm/minute ; Drives ;M569 P3 S0 ; 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:600 ; 300ZLT. Already set in config.g ;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 ; Tool definition - E3D Gold 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. ;========================================= ;========================================= ; ; >>> HOMEALL.G <<< ; ;========================================= ;========================================= ; ; homeall by executing individual axes homing macros ; Homing with endstops M98 P"homex.g" M98 P"homey.g" M98 P"homez.g" ; Homing with no endstops (sensorless homing) ; Comment out the Endstop homing lines above and uncomment these lines to use sensorless homing ;M98 P"homing/homex-sensorless.g" ;M98 P"homing/homey-sensorless.g" ;M98 P"homing/homez.g" ;========================================= ;========================================= ; ; >>> HOMEX.G <<< ; ;========================================= ;========================================= ; ; Home X Axis G91 G1 Z4 F200 S2 G1 X-320 F3000 S1 G1 X4 F600 G1 X-10 S1 G1 Z-4 F200 S2 G90 ;========================================= ;========================================= ; ; >>> HOMEY.G <<< ; ;========================================= ;========================================= ; ; Home Y Axis G91 G1 Z4 F200 S2 G1 Y-320 F3000 S1 G1 Y4 F600 G1 Y-10 S1 G1 Z-4 F200 S2 G90 ;========================================= ;========================================= ; ; >>> HOMEZ.G <<< ; ;========================================= ;========================================= ; ;File : homez.g ;Effect : does a 2-stage Z-homing. Once quickly to bring the bed up from a long distance quickly, then again slower for better accuracy. ;Use-case : the machine may be Z-homed from any position at a reasonable pace, without resorting to dangerous options such as M564 H0 - while still retaining accuracy of the final probe. G91 G1 Z5 F800 S2 ; lift z so we don't crash G90 G1 X150 Y150 F6000 ; Move to the center of the bed ; M558 Fxxx sets the probing speed. ; Probe rapidly to get us in the right ballpark. ; This brings the bed up quickly but may be less accurate. M558 F500 G30 ; Probe again slowly for precision M558 F50 G30 ;========================================= ;========================================= ; ; >>> BED.G <<< ; ;========================================= ;========================================= ; ;File : bltouch-bed.g ;Effect : 4 point bed homing for the Bl-touch and magnetic bed, probing between magnets. ;Use-case : The BL-touch is affected by magnets. This 4 point bed.g was created by Robert Hendricks to probe points in the nulls in the magnetic field. ; : remove/rename the original bed.g and rename this file to 'bed.g' to activate. M561 ; clear any existing bed transform G30 P0 X50.5 Y45.9 Z-99999 ; define 4 points in a clockwise direction around the bed, starting near (0,0) G30 P1 X50.5 Y255.9 Z-99999 G30 P2 X293.9 Y255.9 Z-99999 G30 P3 X293.9 Y45.9 Z-99999 S3 G1 X0 Y0 F5000