From 6eec0b6c4a0d3797270640b74f9e6ae4f9ba7310 Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 28 May 2021 22:35:11 +0000 Subject: [PATCH] Fix bed and homing coordinates, add calibrate thermal probes, etc --- bed.g | 8 ++++---- config.g | 30 ++++++++++++++++++------------ deployprobe.g | 2 +- homeall.g | 6 +++--- homex.g | 7 +++---- homey.g | 9 ++++----- homez.g | 10 +++++----- retractprobe.g | 1 - 8 files changed, 38 insertions(+), 35 deletions(-) diff --git a/bed.g b/bed.g index a5ed91e..49451b2 100644 --- a/bed.g +++ b/bed.g @@ -1,12 +1,12 @@ - ; this script compensates for what the Z offset is +; this script compensates for what the Z offset is ; so if G31 P500 X-30 Y-15 Z1.7 then first probe will be at ; X30 Y20 (when G30 P0 X0 Y5) M561 ; clear any bed transform -G30 P0 X50 Y450 Z-99999 ; probe near a leadscrew -G30 P1 X250 Y50 Z-99999 ; probe near a leadscrew -G30 P2 X450 Y450 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors +G30 P0 X0 Y500 Z-99999 ; probe near a leadscrew +G30 P1 X250 Y0 Z-99999 ; probe near a leadscrew +G30 P2 X500 Y500 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors G29 ; probe the bed and enable compensation diff --git a/config.g b/config.g index 8fb6edb..11310a1 100644 --- a/config.g +++ b/config.g @@ -1,12 +1,11 @@ ; Configuration file for Duet 3 (firmware version 3) ; executed by the firmware on start-up ; -; generated by RepRapFirmware Configuration Tool v3.2.3 on Wed May 26 2021 19:44:39 GMT+0000 (Coordinated Universal Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves -M550 P"Duet3" ; set printer name +M550 P"vcore3" ; set printer name fqdn: vcore3.int.lgx.io M669 K1 ; select CoreXY mode ; Drives @@ -22,13 +21,13 @@ M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpola M92 X160.00 Y160.00 Z1600.00 E873.08 ; set steps per mm M566 X400.00 Y400.00 Z6.00 E120.00 ; set maximum instantaneous speed changes (mm/min) M203 X10800.00 Y10800.00 Z1000.00 E1600.00 ; set maximum speeds (mm/min) -M201 X3000.00 Y3000.00 Z100.00 E3600.00 ; set accelerations (mm/s^2) -M906 X1000 Y1000 Z1000 E800 I30 ; set motor currents (mA) and motor idle factor in per cent +M201 X3000.00 Y3000.00 Z100.00 E3600.00 ; set accelerations (mm/s^2) +M906 X1200 Y1200 Z1200 E800 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits -M208 X15 Y15 Z0 S1 ; set axis minima -M208 X500 Y500 Z500 S0 ; set axis maxima +M208 X0 Y0 Z0 S1 ; set axis minima +M208 X510 Y500 Z500 S0 ; set axis maxima ; Endstops M574 X1 S1 P"io2.in" ; configure active-high endstop @@ -37,26 +36,33 @@ M574 Y1 S1 P"io1.in" ; configure active-high endst ; Z-Probe M950 S0 C"io7.out" ; create servo pin 0 for BLTouch -M558 P9 C"^io7.in" H3 F180 T12000 ; set Z probe type to bltouch and the dive height + speeds -G31 P500 X-28 Y-13 Z0.9 ; set Z probe trigger value, offset and trigger height -M557 X50:500 Y50:500 S50 ; define mesh grid +M558 P9 C"^io7.in" H3 F500 T12000 ; set Z probe type to bltouch and the dive height + speeds +G31 P500 X-28 Y15 Z0.9 ; set Z probe trigger value, offset and trigger height + +M671 X-4.5:250:504.5 Y504.52:-5:504.52 S5 ; define positions of Z leadscrews or bed levelling screws +M557 X0:500 Y0:500 P5 ; define 5x5 mesh grid ; Heaters -M308 S0 P"temp0" Y"thermistor" T100000 B3950 A"Bed" ; configure sensor 0 as thermistor on pin temp0 +;; BED +M308 S0 P"temp0" Y"thermistor" T100000 B3950 A"Bed"; configure sensor 0 as thermistor on pin temp0 M950 H0 C"out1" T0 ; create bed heater output on out1 and map it to sensor 0 M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C -M308 S1 P"temp1" Y"thermistor" T100000 B4138 A"Hotend" ; configure sensor 1 as thermistor on pin temp1 +M307 H0 A303.1 C356.7 D1.4 S1.00 V24.0 B0 ; PID tune for "Bed" + +;; HotEnd +M308 S1 P"temp1" Y"thermistor" T100000 B4725 C7.060000e-8 A"Hotend" ; configure sensor 1 as thermistor on pin temp1 M950 H1 C"out2" T1 ; create nozzle heater output on out2 and map it to sensor 1 M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M143 H1 S280 ; set temperature limit for heater 1 to 280C +M307 H1 A751.5 C196.6 D4.7 S1.00 V23.9 B0 ; run PID tune for Hotend ; Fans M950 F0 C"out7" Q500 ; create fan 0 on pin out7 and set its frequency M106 P0 C"Hotend fan" S1 H1 T45 ; set fan 0 value. Thermostatic control is turned on M950 F1 C"out4" ; create fan 1 on pin out4 -M106 P1 C"Layer fan" S1 ;;H-1 ; set fan 1 value. Thermostatic control is turned off +M106 P1 C"Layer fan" S1 H-1 ; set fan 1 value. Thermostatic control is turned off ; Tools M563 P0 D0 H1 F0:1 ; define tool 0 diff --git a/deployprobe.g b/deployprobe.g index 88711c5..b187be0 100644 --- a/deployprobe.g +++ b/deployprobe.g @@ -5,4 +5,4 @@ M280 P0 S160 ; clear and reset BL touch -M280 P0 S10 ; \ No newline at end of file +M280 P0 S10 ; diff --git a/homeall.g b/homeall.g index 260f963..5d0cc93 100644 --- a/homeall.g +++ b/homeall.g @@ -5,11 +5,11 @@ G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position -G1 H1 X-625 Y605 F3600 ; move quickly to X and U axis endstops and stop there (first pass) +G1 H1 X-625 Y-605 F3600 ; move quickly to X and U axis endstops and stop there (first pass) G1 H1 X-625 F1800 ; move quickly to X and U axis endstops and stop there (first pass) G1 H1 Y-605 F1800 ; move quickly to X and U axis endstops and stop there (first pass) -G1 H2 X5 Y-5 F6000 ; go back a few mm -G1 H1 X-625 Y605 F360 ; move slowly to X and U axis endstops once more (second pass) +G1 H2 X5 Y5 F6000 ; go back a few mm +G1 H1 X-625 Y-605 F360 ; move slowly to X and U axis endstops once more (second pass) G1 H1 X-625 F360 ; move slowly to X and U axis endstops once more (second pass) G1 H1 Y-605 F360 ; move slowly to X and U axis endstops once more (second pass) diff --git a/homex.g b/homex.g index 877a4c1..ef9e8e1 100644 --- a/homex.g +++ b/homex.g @@ -3,11 +3,10 @@ ; G91 ; relative positioning -;G1 H2 Z5 F6000 ; lift Z relative to current position +G1 H2 Z2 F10800 ; lift Z relative to current position G1 H1 X-625 F1800 ; move quickly to X axis endstop and stop there (first pass) G1 H2 X5 F6000 ; go back a few mm G1 H1 X-625 F360 ; move slowly to X axis endstop once more (second pass) -;G1 H2 Z-5 F6000 ; lower Z again +G1 H2 Z-2 F10800 ; lower Z again G90 ; absolute positioning - -G1 X0 F6000 +G1 X10 F6000 ; move forward 10mm diff --git a/homey.g b/homey.g index ed5dc50..0e7a63a 100644 --- a/homey.g +++ b/homey.g @@ -3,11 +3,10 @@ ; G91 ; relative positioning -;G1 H2 Z5 F6000 ; lift Z relative to current position +G1 H2 Z2 F10800 ; lift Z relative to current position G1 H1 Y-605 F1800 ; move quickly to Y axis endstop and stop there (first pass) -G1 Y-5 F6000 ; go back a few mm +G1 Y-5 F6000 ; go back a few mm G1 H1 Y-605 F360 ; move slowly to Y axis endstop once more (second pass) -;G1 H2 Z-5 F6000 ; lower Z again +G1 H2 Z-2 F10800 ; lower Z again G90 ; absolute positioning - -G1 Y0 F6000 +G1 Y10 F6000 ; move forward 10 mm diff --git a/homez.g b/homez.g index 5f2b1af..0b85c76 100644 --- a/homez.g +++ b/homez.g @@ -3,13 +3,13 @@ ; G91 ; relative positioning -G1 H2 Z5 F6000 ; lift Z relative to current position +G1 H2 Z5 F10800 ; lift Z relative to current position G90 ; absolute positioning -G1 X250 Y250 F10000 ; go to first probe point +G1 X250 Y250 F10800 ; go to first probe point G30 ; home Z by probing the bed ; Uncomment the following lines to lift Z after probing -;G91 ; relative positioning -;G1 Z5 F100 ; lift Z relative to current position -;G90 ; absolute positioning +G91 ; relative positioning +G1 Z5 F100 ; lift Z relative to current position +G90 ; absolute positioning diff --git a/retractprobe.g b/retractprobe.g index aa9ac1b..94e38da 100644 --- a/retractprobe.g +++ b/retractprobe.g @@ -1,6 +1,5 @@ ; retractprobe.g ; called to retract a physical Z probe ; -; generated by RepRapFirmware Configuration Tool v3.2.3 on Wed May 26 2021 19:44:39 GMT+0000 (Coordinated Universal Time) M280 P0 S90 ; retract BLTouch