Tune homing and bed parameters

This commit is contained in:
pedro 2022-02-02 23:19:54 +00:00
parent 5a747e0740
commit d931f49b67
8 changed files with 110 additions and 72 deletions

18
bed.g
View File

@ -5,10 +5,16 @@
M561 ; clear any bed transform M561 ; clear any bed transform
G30 P5 X65 Y0 Z-99999 ; probe near a leadscrew G30 P0 X5 Y5 Z-99999 ; probe near a leadscrew
G30 P1 X252.5 Y450 Z-99999 ; probe near a leadscrew G30 P1 X5 Y20 Z-99999 ; probe near a leadscrew
G30 P2 X450 Y0 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors G30 P2 X20 Y5 Z-99999 ; probe near a leadscrew
G30 P3 X230 Y470 Z-99999 ; probe near a leadscrew
M280 P0 S160 ; clear and reset BL touch G30 P4 X250 Y470 Z-99999 ; probe near a leadscrew
;G29 ; probe the bed and enable compensation G30 P5 X250 Y450 Z-99999 ; probe near a leadscrew
G30 P6 X270 Y470 Z-99999 ; probe near a leadscrew
G30 P7 X470 Y20 Z-99999 ; probe near a leadscrew
G30 P8 X470 Y5 Z-99999 ; probe near a leadscrew
G30 P9 X450 Y5 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors
M280 P0 S160 ; clear and reset BL touch
G29 S1 ; probe the bed and enable compensation

View File

@ -1,4 +1,4 @@
; Configuration file for Duet 3 (firmware version 3) and RatRig VCore3 500^3 ; Configuration file for Duet 3 (firmware version 3) and RatRig V\Core3 500^3
; executed by the firmware on start-up ; executed by the firmware on start-up
; ;
@ -9,41 +9,38 @@ M550 P"vcore3" ; set printer name fqdn: vcor
M669 K1 ; select CoreXY mode M669 K1 ; select CoreXY mode
; Drives ; Drives
M569 P0.0 S0 D3 H50 V50 ; physical drive 0.0 goes backwards M569 P0.0 S0 D3 H50 V50 ; physical drive 0.0 goes backwards
M569 P0.1 S0 D3 H50 V50 ; physical drive 0.1 goes backwards M569 P0.1 S0 D3 H50 V50 ; physical drive 0.1 goes backwards
M569 P0.2 S0 D3 H50 V50 ; physical drive 0.2 goes backwards M569 P0.2 S0 D3 H50 V50 ; physical drive 0.2 goes backwards
M569 P0.3 S1 D3 H50 V50 ; physical drive 0.3 goes forwards M569 P0.3 S1 D3 H50 V50 ; physical drive 0.3 goes forwards
M569 P0.4 S1 D3 H50 V50 ; physical drive 0.4 goes forwards M569 P0.4 S1 D3 H50 V50 ; physical drive 0.4 goes forwards
M569 P0.5 S0 D3 H50 V50 ; physical drive 0.5 goes backwards M569 P0.5 S0 D3 H50 V50 ; physical drive 0.5 goes backwards
M584 X0.3 Y0.4 Z0.0:0.1:0.2 E0.5 ; set drive mapping M584 X0.3 Y0.4 Z0.2:0.1:0.0 E0.5 ; set drive mapping
M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
M92 X80.00 Y80.00 Z1600.00 E835 ; set steps per mm
M92 X80.00 Y80.00 Z1600.00 E835 ; set steps per mm M566 X400.00 Y400.00 Z6.00 E120.00 P1 ; set maximum instantaneous speed changes (mm/min)
M566 X400.00 Y400.00 Z6.00 E120.00 P1 ; set maximum instantaneous speed changes (mm/min) M203 X20800.00 Y20800.00 Z1000.00 E3600.00 ; set maximum speeds (mm/min)
M203 X20800.00 Y20800.00 Z1000.00 E3600.00 ; set maximum speeds (mm/min) M201 X6000.00 Y6000.00 Z3000.00 E3600.00 ; set accelerations (mm/s^2)
M201 X6000.00 Y6000.00 Z3000.00 E3600.00 ; set accelerations (mm/s^2) M906 X2000 Y2000 Z1200 E800 I20 ; set motor currents (mA) and motor idle factor in per cent
M906 X2000 Y2000 Z1200 E800 I20 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout
M84 S30 ; Set idle timeout
; Axis Limits ; Axis Limits
M208 X5 Y5 Z0 S1 ; set axis minima M208 X0 Y0 Z0 S1 ; set axis minima
M208 X500 Y500 Z500 S0 ; set axis maxima M208 X500 Y500 Z500 S0 ; set axis maxima
; Endstops ; Endstops
M574 X1 S1 P"io2.in" ; configure active-high endstop M574 X1 S1 P"io2.in" ; configure active-high endstop
M574 Y2 S1 P"io1.in" ; configure active-high endstop M574 Y2 S1 P"io1.in" ; configure active-high endstop
; Z-Probe ; Z-Probe
M950 S0 C"io7.out" ; create servo pin 0 for BLTouch M950 S0 C"io7.out" ; create servo pin 0 for BLTouch
M558 P9 C"^io7.in" H3 F250 T12000 A3 ; set Z probe type to bltouch and the dive height + speeds, run probing 3x M558 P9 C"^io7.in" H2 F200 T10000 A5 ; set Z probe type to bltouch and the dive height + speeds, run probing 5x
;; Pay special attention to the values bellow on G31, the Z value needs to be validated for your printer ;; Pay special attention to the values bellow on G31, the Z value needs to be validated for your printer
;; Start with something like 0.5 ;; Start with something like 0.5
;; Documentation available: https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe ;; Documentation available: https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe
G31 P500 X-30 Y-0.5 Z2.1 ; set Z probe trigger value, offset and trigger height G31 P500 X-35 Y-0.5 Z3.175 ; set Z probe trigger value, offset and trigger height
;; M671 X-6:250:503 Y0:511:0 S5 ; define positions of Z leadscrews or bed levelling screws
M671 X-12.5:250:506.5 Y-12.5:508.5:-12.5 S6 ; define positions of Z leadscrews or bed levelling screws M557 X5:465 Y5:465 P20 ; define 20x20 mesh grid
M557 X30:470 Y30:470 P11 ; define 11x11 mesh grid
; Heaters ; Heaters
;; BED ;; BED
@ -66,7 +63,6 @@ M950 F1 C"out4" Q20 ; create fan 1 on pin out4
;M950 F1 C"!out4+out4.tach" Q25000 ; create fan 1 on pin out4 pwm fan (4 wires) ;M950 F1 C"!out4+out4.tach" Q25000 ; create fan 1 on pin out4 pwm fan (4 wires)
M106 P1 C"Layer fan" S0 H-1 -L255 ; set fan 1 value. Thermostatic control is turned off M106 P1 C"Layer fan" S0 H-1 -L255 ; set fan 1 value. Thermostatic control is turned off
; Lights ; Lights
M950 P2 C"out8" ; create output for lighning via DC DC SSR M950 P2 C"out8" ; create output for lighning via DC DC SSR
@ -75,10 +71,8 @@ M563 P0 D0 H1 F1 ; define tool 0
G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C
; Custom settings are not defined
; Filament sensor - Duet3D laser filament monitor ; Filament sensor - Duet3D laser filament monitor
M591 D0 P5 C"0.io4.in" R40:120 E3.0 S1 ; Duet3D laser sensor for extruder drive 0, connected to endstop input 4 (E0), tolerance 40 to 120%, 3mm comparison length, enabled filament monitoring M591 D0 P5 C"io3.in" R40:120 E3.0 S1 ; Duet3D laser sensor for extruder drive 0, connected to endstop input 4 (E0), tolerance 40 to 120%, 3mm comparison length, enabled filament monitoring
; Miscellaneous ; Miscellaneous
M575 P1 S1 B57600 ; enable support for PanelDue M575 P1 S1 B57600 ; enable support for PanelDue

View File

@ -6,31 +6,29 @@
M280 P0 S160 ; Precautionary alarm release M280 P0 S160 ; Precautionary alarm release
M280 P0 S90 ; Ensure the pin is raised M280 P0 S90 ; Ensure the pin is raised
M201 X500.00 Y500.00 ; Reduce acceleration for homing moves
G91 ; relative positioning G91 ; relative positioning
G1 H2 Z2 F10800 ; lift Z relative to current position G1 H2 Z10 F10800 ; lift Z relative to current position
G1 H1 X-625 F10800 ; move quickly to X axis endstop and stop there (first pass) G1 H1 X-625 F3600 ; move quickly to X axis endstop and stop there (first pass)
G1 H2 X10 F6000 ; go back a few mm G1 H2 X20 F3000 ; go back a few mm
G1 H1 X-625 F256 ; move slowly to X axis endstop once more (second pass) G1 H1 X-625 F256 ; move slowly to X axis endstop once more (second pass)
M201 X3000 Y3000 ; Return to full acceleration
G90 ; absolute positioning G90 ; absolute positioning
G1 X10 F6000 ; move forward 10mm
M201 X500.00 Y500.00 ; Reduce acceleration for homing moves
G91 ; relative positioning G91 ; relative positioning
G1 H2 Z2 F10800 ; lift Z relative to current position G1 H1 Y625 F3600 ; move quickly to Y axis endstop and stop there (first pass)
G1 H1 Y625 F10800 ; move quickly to Y axis endstop and stop there (first pass) G1 Y-20 F3000 ; go back a few mm
G1 Y-10 F6000 ; go back a few mm
G1 H1 Y625 F256 ; move slowly to Y axis endstop once more (second pass) G1 H1 Y625 F256 ; move slowly to Y axis endstop once more (second pass)
G90 ; absolute positioning M201 X3000 Y3000 ; Return to full acceleration
G1 Y10 F6000 ; move forward 10 mm
G91 ; relative positioning
G1 H2 Z5 F10800 ; lift Z relative to current position
G90 ; absolute positioning G90 ; absolute positioning
G1 X275 Y250 F10800 ; go to first probe point G1 X250 Y250 F3600 ; go to first probe point
G30 ; home Z by probing the bed G30 ; home Z by probing the bed
G29 S1 ; enable compensation
G91 ; Relative positioning
G1 Z10 F100 ; lift Z relative to current position G1 Z10 F100 ; lift Z relative to current position
G90 ; absolute positioning G90 ; absolute positioning
G29 S1 P"heightmap.csv" ; load weightmap

17
homex.g
View File

@ -1,12 +1,13 @@
; homex.g ; homex.g
; called to home the X axis ; called to home the X axis
; ;
M201 X500.00 Y500.00 ; Reduce acceleration for homing moves
G91 ; relative positioning
G1 H2 Z10 F8000 ; lift Z relative to current position
G1 H1 X-625 F3600 ; move quickly to X axis endstop and stop there (first pass)
G1 X20 F3000 ; go back a few mm
G1 H1 X-625 F256 ; move slowly to X axis endstop once more (second pass)
M201 X3000 Y3000 ; Return to full acceleration
G1 H2 Z-10 F8000 ; lower Z again
G90 ; absolute positioning
G91 ; relative positioning
G1 H2 Z2 F10800 ; lift Z relative to current position
G1 H1 X-625 F10800 ; move quickly to X axis endstop and stop there (first pass)
G1 H2 X5 F6000 ; go back a few mm
G1 H1 X-625 F256 ; move slowly to X axis endstop once more (second pass)
;G1 H2 Z-2 F10800 ; lower Z again
G90 ; absolute positioning
G1 X10 F10800 ; move forward 10mm

14
homey.g
View File

@ -1,12 +1,14 @@
; homey.g ; homey.g
; called to home the Y axis ; called to home the Y axis
; ;
M201 X500.00 Y500.00 ; Reduce acceleration for homing moves
G91 ; relative positioning G91 ; relative positioning
G1 H2 Z2 F10800 ; lift Z relative to current position G1 H2 Z10 F8000 ; lift Z relative to current position
G1 H1 Y625 F10800 ; move quickly to Y axis endstop and stop there (first pass) G1 H1 Y625 F3600 ; move quickly to Y axis endstop and stop there (first pass)
G1 Y-10 F6000 ; go back a few mm G1 Y-20 F3000 ; go back a few mm
G1 H1 Y625 F256 ; move slowly to Y axis endstop once more (second pass) G1 H1 Y625 F256 ; move slowly to Y axis endstop once more (second pass)
;G1 H2 Z-2 F10800 ; lower Z again G1 Y10 F10800 ; move forward 10 mm
M201 X3000 Y3000 ; Return to full accelerationG1 H2 Z-10 F10800
G1 H2 Z-10 F8000 ; Lower Z relative to current position
G90 ; absolute positioning G90 ; absolute positioning
G1 Y10 F10800 ; move forward 10 mm

12
homez.g
View File

@ -6,12 +6,10 @@ M280 P0 S160 ; Reset probe
G91 ; relative positioning G91 ; relative positioning
G1 H2 Z5 F10800 ; lift Z relative to current position G1 H2 Z5 F10800 ; lift Z relative to current position
G90 ; absolute positioning G90 ; absolute positioning
G1 X275 Y250 F10800 ; go to first probe point G1 X250 Y250 F10800 ; go to first probe point
G30 ; home Z by probing the bed G30 ; home Z by probing the bed
G29 S1 ; probe the bed and enable compensation
G91 ; relative positioning
G1 Z10 F100 ; lift Z relative to current position
G90 ; absolute positioning
; Uncomment the following lines to lift Z after probing
G91 ; relative positioning
G1 Z5 F100 ; lift Z relative to current position
G90 ; absolute positioning
G29 S1 P"heightmap.csv" ; Load saved height map

Binary file not shown.

39
resurrect.g Normal file
View File

@ -0,0 +1,39 @@
; File "0:/gcodes/CFFFP_accel_support.gcode" resume print after print paused at 2022-02-13 17:05
G21
M140 P0 S90.0
G29 S1
G92 X215.634 Y137.576 Z0.400
G60 S1
G10 P0 S230 R230
T0 P0
M98 P"resurrect-prologue.g"
M116
M290 X0.000 Y0.000 Z0.000 R0
T-1 P0
T0 P6
; Workplace coordinates
G10 L2 P1 X0.00 Y0.00 Z0.00
G10 L2 P2 X0.00 Y0.00 Z0.00
G10 L2 P3 X0.00 Y0.00 Z0.00
G10 L2 P4 X0.00 Y0.00 Z0.00
G10 L2 P5 X0.00 Y0.00 Z0.00
G10 L2 P6 X0.00 Y0.00 Z0.00
G10 L2 P7 X0.00 Y0.00 Z0.00
G10 L2 P8 X0.00 Y0.00 Z0.00
G10 L2 P9 X0.00 Y0.00 Z0.00
G54
M106 S0.00
M106 P1 S0.00
M116
G92 E-1.00000
M83
M486 S-1
G17
M23 "0:/gcodes/CFFFP_accel_support.gcode"
M26 S788
G0 F6000 Z2.400
G0 F6000 X215.634 Y137.576
G0 F6000 Z0.400
G1 F600.0 P0
G21
M24