Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Machine configuration
- M569 P0 S0 ; Drive 0 (A Motor) goes backwards to move in +X +Y diagonal
- M569 P1 S0 ; Drive 1 (B Motor) goes backwards to move in -X +Y diagonal
- M569 P2 S0 ; Drive 2 (Z axis) goes backwards to move in +Z direction
- M569 P3 S0 ; Drive 3 (Extruder 0) goes backwards to feed
- M569 P4 S0 ; Drive 4 (Extruder 0) goes backwards to feed
- ; If you use an endstop switch for Z homing, change Z0 to Z1 in the following line, and see also M558 command later in this file
- M574 X1 Y2 Z1 S1 ; set endstops to X:low end, Y:high end, z:low, logic level active-high
- M667 S1 ; set CoreXY mode
- M92 X80.1 Y80.1 Z1600 ; Set axis steps/mm
- M92 E418.5:418.5 ; Set extruder steps/mm
- M906 X2000 Y2000 Z800 E1200 ; Set motor currents (mA)
- M201 X5000 Y5000 Z100 E10000 ; Accelerations (mm/s^2)
- M203 X24000 Y24000 Z500 E4800 ; Maximum speeds (mm/min)
- M566 X1200 Y1200 Z30 E1200 ; Maximum jerk speeds mm/minute
- M208 X300 Y305 Z300 ; set axis maxima (adjust to suit your machine)
- M208 X-18 Y0 Z0 S1 ; set axis minima (adjust to make X=0 and Y=0 the edges of the bed)
- M350 X16 Y16 Z16 E16 I1 ; Configure 1/16th microstepping with interpolation
- G21 ; Work in millimetres
- G90 ; Send absolute coordinates...
- M83 ; ...but relative extruder moves
- ; Z probe setup
- M558 P4 Z1 F75 H3 T10000 ; Set up Z probe type and mesh probe travel parameters
- G31 X9 Y43 Z0.49 ; Set the height above the bed at which the probe triggers and the probe XY offset
- ; Increase Z to lower nozzle, decrease Z to raise nozzle
- ; Value above was calibrated at 24C
- ; Note: bed compensation is performed in bed.g
- ; Thermistors
- ; You can also use S and B parameters to define the parameters of the thermistors you are using
- M305 P0 R4700 H0 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
- M305 P1 R4700 H0 L0 ; Put your own H and/or L values here to set the first nozzle thermistor ADC correction
- M305 P2 R4700 H0 L0 ; Put your own H and/or L values here to set the second nozzle thermistor ADC correction
- ; Heaters
- M307 H0 A413.6 C1003.9 D12.7 S1.00 B0 ; Bed heater process parameters found by autotune. Automatically used to calculate PID parameters.
- M307 H1 A619.9 C191.9 D5.5 S1.00 B0 ; Heater 1 (extruder 0), ditto.
- M307 H2 A619.9 C191.9 D5.5 S1.00 B0 ; Heater 2 (extruder 1), ditto.
- M570 S120 ; Heater fault detection time; Increase to allow extra heating time if needed
- M143 H0 S120 ; Set maximum bed temperature (triggers fault)
- M143 H1 S300 ; Set maximum extruder 0 temperature (triggers fault)
- M143 H2 S300 ; Set maximum extruder 1 temperature (triggers fault)
- ; Tool definition
- M563 P0 D0 H1 ; Define tool 0
- G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
- G10 P0 X0 Y0 Z0 ; Set tool 0 offsets
- M563 P1 D1 H2 ; Define tool 1
- G10 P1 S0 R0 ; Set tool 1 operating and standby temperatures
- G10 P1 X18.0 Y0.1 Z0 ; Set tool 1 offsets
- M302 P0 S200 ; Disallow extrusion below 200C
- M207 S2.5 F4800 ; Set firmware retraction distance
- ; Set up fans
- M106 P1 S0.5 T60 H1:2 ; Set fan 2 (P1) to turn on when heaters 1 or 2 (H0:1) are above 60C (T60)
- ; Fan 2 is the hotend heatsink cooler
- M556 S78 X0 Y0 Z0 ; Axis compensation here
- M404 N1.75 D0.4 ; Filament diameter and nozzle width
- ; Extruder pressure advance
- M572 D0 S0.5 ; Extruder 1 and 2...
- M572 D1 S0.5 ; both have the same parts and lengths
- T0 ; select first hot end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement