Configuration Files for P3steel or Prusa



  • Ok first off all i am new to the duet3d. And i now i to work with marlin but is someone has configuration files for the p3steel of prusa mk2s like printers please share that. Thanks..



  • I have a p3 steel with titan aero extruder with 0.9deg E3d pancake motor, 1.8deg motors on all axis.
    I use 2 motors on the Z axis (second motor is driven by E1 driver) and use 2 motor auto leveling feature
    I use a precision piezo board as probe (piezo is mounted on the carriage).

    ; Prusa i3 config file for dc42 Duet firmware
    
    ; Prologue and  comms section
    M111 S0                             	; Debug off
    M550 PKryo_Prusai3_001			; Machine name (can be anything you like)
    M551 <redacted>; Machine password
    
    ; Wifi Networking
    ;M552 S0
    M552 S1					; Enable WiFi
    M586 P0 S1 R20000			; Set Port 20000 for HTTP
    ; General
    M555 P2                             	; Set output to look like Marlin
    ;M575 P1 B57600 S1			; Comms parameters for PanelDue
    
    ; Movement section
    M569 P0 S0                          	; Drive 0 goes backwards
    M569 P1 S1                          	; Drive 1 goes forwards
    M569 P2 S1                          	; Drive 2 goes forwards
    M569 P3 S0                     		; Drive 3 goes backwards
    M569 P4 S1                          	; Drive 4 goes forwards
    M574 X1 Y1 Z0 S0			; set endstop configuration (X and Y endstops only, at low end, active high)
    M584 X0 Y1 Z2:4				; X uses driver 0, Y driver 1, Z drivers 2 and 4
    M906 X1500 Y1500 Z1000:1000 E1250      	; Set motor currents (mA)
    M201 X2000 Y2000 Z100 E1000            	; Accelerations (mm/s^2)
    M203 X15000 Y15000 Z800:800 E1800      	; Maximum speeds (mm/min)
    M566 X1200 Y1200 Z800:800 E300          ; Set allowable instantaneous speed change mm/min
    M208 X200 Y298 Z150			; set axis maxima (adjust to suit your machine)
    M208 X-20 Y-8 Z0 S1			; set axis minimum (adjust to make X=0 and Y=0 the edge of the bed)
    M84 S30					; Set idle timeout
    M350 X16 Y16 Z16:16 E16 I1  		; Set 16x microstepping with interpolation
    M92 X80 Y80 Z400:400			; Set axis steps/mm
    M92 E837                       		; Set extruder steps per mm
    G21                                 	; Work in millimetres
    G90                                 	; Send absolute coordinates...
    M83                                 	; ...but relative extruder moves
    M572 D0 S0.05				; pressure advance
    M207 S1.2 R0 F3000 			; firmware retraction
    M929 P"eventlog.txt" S1			; enable eventlogging
    
    ; Z probe section
    M558 P8 X0 Y0 Z1 H20 I0 R1 F600 T2000 	; Piezo probe used for homing Z axis, dive height 2cm, probe speed 600mm/min, travel speed 2400mm/min
    G31 X0 Y0 Z-0.14 P600           	; Set the probe height and threshold (put your own values here)
    ;M557 X1:180 Y1:290 S30			: Set probe grid
    M671 X-55:255 Y170:170 S1.5		; leadscrews for G32
    
    ; Heater and thermistor section
    ;*** If you have a Duet board with 1K thermistor series resistors, change R4700 to R1000 to the following M305 commands
    M305 P0 R4700 T100000 B3950 		; Put your own H and/or L values here to set the bed thermistor ADC correction
    M305 P1 R4700 T100000 B4725 ;7.06e-8	; 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
    M301 H1 P10 I0.10 D100 T0.50 S1.0	; PID settings for extruder 0
    ;M301 H2 P10 I0.10 D100 T0.50 S1.0	; PID settings for extruder 1
    ;M307 H1 A391.6 C185.2 D4.0 S1.00 B0	; PID Tuning Extruder 0 // E3DV6 clone
    ;M307 H1 A380 C175.0 D6.5 S1.00 B0	; PID Tuning Extruder 0 // new E3DV6
    M307 H1 A349.1 C187.2 D6.5 S1.00 B0
    ;M570 S120				; Increase to allow extra heating time if needed
    M106 P1 T45 H1				; Cooling fan for Heatbreak is located on PWM 1, start blowing from 45°
    M106 P2 F25000 I1			; PWM fan for HEPA filter, intel spec 25KHz inverted
    M143 H0 S125   				; set the maximum bed temperature to 125C
    M143 H1 S275      			; set the maximum temperature of the hot-end to 275°C
    
    ; Tool definition section
    M563 P0 D0 H1                        	; Define tool 0 to use extruder drive 0 and heater 1 and FAN 0
    G10 P0 S0 R0                       	; Set tool 0 operating and standby temperatures
    ;*** If you have a dual-nozzle build, un-comment the following 2 lines
    ;M563 P1 D1 H2                      	; Define tool 1
    ;G10 P1 S0 R0                       	; Set tool 1 operating and standby temperatures
    
    ; Epilogue
    T0				    	; select first hot end</redacted> 
    


  • @whosrdaddy:

    I have a p3 steel with titan aero extruder with 0.9deg E3d pancake motor, 1.8deg motors on all axis.
    I use 2 motors on the Z axis (second motor is driven by E1 driver) and use 2 motor auto leveling feature
    I use a precision piezo board as probe (piezo is mounted on the carriage).

    Hi!

    Couple of questions regarding the auto leveling feature… as this kind of printers don't move the bed in Z, what you're doing is having the X axis with one side higher than the other, right? (theoretically, it will be "straight", but if you have your bed over springs, that may not be true). Why you set the Y as 170?

    Apart from the G30 (as the documentation says), do you execute a G29 too? can you please share your bed.g file?

    I was trying to use this in a CoreXY before, but I was a bit confused, and I thought it wasn't possible to use this kind of levelling in a prusa style printer due to the fact that bed only allows Y movement...

    Regards



  • @whosrdaddy:

    I have a p3 steel with titan aero extruder with 0.9deg E3d pancake motor, 1.8deg motors on all axis.
    I use 2 motors on the Z axis (second motor is driven by E1 driver) and use 2 motor auto leveling feature
    I use a precision piezo board as probe (piezo is mounted on the carriage).

    ; Prusa i3 config file for dc42 Duet firmware
    
    ; Prologue and  comms section
    M111 S0                             	; Debug off
    M550 PKryo_Prusai3_001			; Machine name (can be anything you like)
    M551 <redacted>; Machine password
    
    ; Wifi Networking
    ;M552 S0
    M552 S1					; Enable WiFi
    M586 P0 S1 R20000			; Set Port 20000 for HTTP
    ; General
    M555 P2                             	; Set output to look like Marlin
    ;M575 P1 B57600 S1			; Comms parameters for PanelDue
    
    ; Movement section
    M569 P0 S0                          	; Drive 0 goes backwards
    M569 P1 S1                          	; Drive 1 goes forwards
    M569 P2 S1                          	; Drive 2 goes forwards
    M569 P3 S0                     		; Drive 3 goes backwards
    M569 P4 S1                          	; Drive 4 goes forwards
    M574 X1 Y1 Z0 S0			; set endstop configuration (X and Y endstops only, at low end, active high)
    M584 X0 Y1 Z2:4				; X uses driver 0, Y driver 1, Z drivers 2 and 4
    M906 X1500 Y1500 Z1000:1000 E1250      	; Set motor currents (mA)
    M201 X2000 Y2000 Z100 E1000            	; Accelerations (mm/s^2)
    M203 X15000 Y15000 Z800:800 E1800      	; Maximum speeds (mm/min)
    M566 X1200 Y1200 Z800:800 E300          ; Set allowable instantaneous speed change mm/min
    M208 X200 Y298 Z150			; set axis maxima (adjust to suit your machine)
    M208 X-20 Y-8 Z0 S1			; set axis minimum (adjust to make X=0 and Y=0 the edge of the bed)
    M84 S30					; Set idle timeout
    M350 X16 Y16 Z16:16 E16 I1  		; Set 16x microstepping with interpolation
    M92 X80 Y80 Z400:400			; Set axis steps/mm
    M92 E837                       		; Set extruder steps per mm
    G21                                 	; Work in millimetres
    G90                                 	; Send absolute coordinates...
    M83                                 	; ...but relative extruder moves
    M572 D0 S0.05				; pressure advance
    M207 S1.2 R0 F3000 			; firmware retraction
    M929 P"eventlog.txt" S1			; enable eventlogging
    
    ; Z probe section
    M558 P8 X0 Y0 Z1 H20 I0 R1 F600 T2000 	; Piezo probe used for homing Z axis, dive height 2cm, probe speed 600mm/min, travel speed 2400mm/min
    G31 X0 Y0 Z-0.14 P600           	; Set the probe height and threshold (put your own values here)
    ;M557 X1:180 Y1:290 S30			: Set probe grid
    M671 X-55:255 Y170:170 S1.5		; leadscrews for G32
    
    ; Heater and thermistor section
    ;*** If you have a Duet board with 1K thermistor series resistors, change R4700 to R1000 to the following M305 commands
    M305 P0 R4700 T100000 B3950 		; Put your own H and/or L values here to set the bed thermistor ADC correction
    M305 P1 R4700 T100000 B4725 ;7.06e-8	; 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
    M301 H1 P10 I0.10 D100 T0.50 S1.0	; PID settings for extruder 0
    ;M301 H2 P10 I0.10 D100 T0.50 S1.0	; PID settings for extruder 1
    ;M307 H1 A391.6 C185.2 D4.0 S1.00 B0	; PID Tuning Extruder 0 // E3DV6 clone
    ;M307 H1 A380 C175.0 D6.5 S1.00 B0	; PID Tuning Extruder 0 // new E3DV6
    M307 H1 A349.1 C187.2 D6.5 S1.00 B0
    ;M570 S120				; Increase to allow extra heating time if needed
    M106 P1 T45 H1				; Cooling fan for Heatbreak is located on PWM 1, start blowing from 45°
    M106 P2 F25000 I1			; PWM fan for HEPA filter, intel spec 25KHz inverted
    M143 H0 S125   				; set the maximum bed temperature to 125C
    M143 H1 S275      			; set the maximum temperature of the hot-end to 275°C
    
    ; Tool definition section
    M563 P0 D0 H1                        	; Define tool 0 to use extruder drive 0 and heater 1 and FAN 0
    G10 P0 S0 R0                       	; Set tool 0 operating and standby temperatures
    ;*** If you have a dual-nozzle build, un-comment the following 2 lines
    ;M563 P1 D1 H2                      	; Define tool 1
    ;G10 P1 S0 R0                       	; Set tool 1 operating and standby temperatures
    
    ; Epilogue
    T0				    	; select first hot end</redacted> 
    

    If i may ask how dit you mount the piezo do you have a foto. And thanks for the config. Ill try this one and tune on this one. Also for the bed leveling i need to find out how.



  • @CobraMike:

    If i may ask how dit you mount the piezo do you have a foto. And thanks for the config. Ill try this one and tune on this one. Also for the bed leveling i need to find out how.

    You can find the mount and some photos here: https://www.thingiverse.com/thing:2705784

    concerning independent motor leveling, this is described in the manual:
    https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors



  • @whosrdaddy:

    concerning independent motor leveling, this is described in the manual:
    https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors

    I've read the documentation many times, I was more interested in your setup though. Why you setup Y at 170? is not the middle of the bed… Do you execute G29 after levelling it?

    Regards



  • I dont use mesh bed leveling (G29), I only do the calibration (G32) because my bed is leveled (I removed the springs and replaced them with TPU feet).
    M671 indicates the location of my Z leadscrews when my bed is located at 0,0 and they are slightly off-center:

    M671 X-55:255 Y170:170 S1.5 // one leadscrew is located at -55,170, other leadscrew is located at 255,170
    
    ```In fact, the Y coordinates for 2 point leveling don't really matter as long as they are the same
    
    The probing points are defined in bed.g:
    

    G28 ; home
    G30 P0 X40 Y150 Z-99999 ; probe near a leadscrew
    G30 P1 X160 Y150 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
    G28 Z


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.