Compare commits

..

No commits in common. "master" and "v1" have entirely different histories.
master ... v1

39 changed files with 797 additions and 163 deletions

2
.gitignore vendored
View File

@ -4,5 +4,3 @@
dwc-settings.json dwc-settings.json
heightmap.csv heightmap.csv
config-override.g config-override.g
accelerometer/*
resurrect.g

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -7,25 +7,10 @@ Parts of the g code are not mine and were extracted from the ratrig config, duet
Pay special attention to the stepper direction and stepper step/angle, these are not standard. Pay special attention to the stepper direction and stepper step/angle, these are not standard.
## Git structure
### V1 branch
* Tries to keep compatibility with the default RR HW
* Can be used as a default config
### Master
* It uses my personal config
* It supports or will support newer/better hw, pwm fans, camera, thermal camera, etc
* Better HW monitoring
* Better automation
## HW Config ## HW Config
##### #####
- 1x [Duet 3 6HC](https://www.123-3d.nl/Duet3D-Duet-3-Mainboard-6HC-v1-0-origineel-Duet-3-MB6HC-v1-00-i4602.html) - 1x [Duet 3 6HC](https://www.123-3d.nl/Duet3D-Duet-3-Mainboard-6HC-v1-0-origineel-Duet-3-MB6HC-v1-00-i4602.html)
<img src="Duet3-6HC_BoardDiagram.png" alt="Duet3 6HC Diagram" width="1600"/>
##### Display ##### Display
- 1x [Duet panel Due](https://www.123-3d.nl/Duet3D-PanelDue-met-7-v1-0-display-kabel-PanelDue-7i-v1-0-i3018-t14808.html) - 1x [Duet panel Due](https://www.123-3d.nl/Duet3D-PanelDue-met-7-v1-0-display-kabel-PanelDue-7i-v1-0-i3018-t14808.html)
@ -33,28 +18,14 @@ Pay special attention to the stepper direction and stepper step/angle, these are
- 1x [PI 4 2GB](https://www.123-3d.nl/RaspberryPi-Raspberry-Pi-4-model-B-2-GB-i4908-t16066.html) - 1x [PI 4 2GB](https://www.123-3d.nl/RaspberryPi-Raspberry-Pi-4-model-B-2-GB-i4908-t16066.html)
##### Power supply ##### Power supply
- 1x Mean well 400W 24v - ([RSP-500-24](https://eu.mouser.com/ProductDetail/MEAN-WELL/RSP-500-24?qs=8uyp%2Fy7yFW5FrdkZCZycgg==)) - 1x Mean well 400W 24v ([RSP-500-24](https://eu.mouser.com/ProductDetail/MEAN-WELL/RSP-500-24?qs=8uyp%2Fy7yFW5FrdkZCZycgg==))
- 1x Mean well 50w 5v - [LRS-50-5](https://www.meanwell-web.com/en-gb/ac-dc-single-output-enclosed-power-supply-lrs--50--5)
##### Steppers ##### Steppers
- 3x z [0.9 nema 17](https://www.123-3d.nl/123-3D-NEMA17-stappenmotor-0-9-graden-per-stap-48-mm-lang-4-2-kg-cm-SL42S248MA108-0524-i3420-t14804.html) - 3x z [0.9 nema 17](https://www.123-3d.nl/123-3D-NEMA17-stappenmotor-0-9-graden-per-stap-48-mm-lang-4-2-kg-cm-SL42S248MA108-0524-i3420-t14804.html)
- 1x x 1.8 nema 17 - 1x x 0.9 nema 17
- 1x y 1.8 nema 17 - 1x y 0.9 nema 17
- 1x extruder [0.9 nema 17 pancake](https://www.ratrig.com/nema-17-stepper-motor-slimline.html) - 1x extruder [0.9 nema 17 pancake](https://www.ratrig.com/nema-17-stepper-motor-slimline.html)
Replaced x y 0.9º nema 17 for 1.8º [LDO steppers](https://www.ratrig.com/nema-17-stepper-motor.html), these old 2.5A per phase at 3.1v.
Pay attention to currents and number of steps while configuring your printer.
Note: the stepper except the pancake one have the following specs:
```
Draaddikte: 24 Awg Aantal draden: 4
Nominale stroom: 1,7 A Weerstand: 1,8 Ω
Afmetingen: 42,3 x 42,3 x 48 mm (LxBxH) As diameter: 5 mm
Voltage: 3,1 V Stap hoek: 0,9 °
Houdkoppel: 4.2 kg-cm As lengte: 22 mm
Montagegat: M3
```
##### Carriage ##### Carriage
- 1x [Eva 2.0](https://main.eva-3d.page/) - 1x [Eva 2.0](https://main.eva-3d.page/)
@ -84,9 +55,6 @@ Note: The usage of a second SSR allows more lighting to be added without worries
##### Filament sensor ##### Filament sensor
1x [Duet 3d - laser sensor](https://www.123-3d.nl/Duet3D-Laser-Filament-Monitor-LaserFilamentMonitor-i3121-t14808.html) 1x [Duet 3d - laser sensor](https://www.123-3d.nl/Duet3D-Laser-Filament-Monitor-LaserFilamentMonitor-i3121-t14808.html)
##### Power automation
1x SONOFF 10A [BASICR2](https://sonoff.tech/product/diy-smart-switch/basicr2/)
### Software ### Software
#### Base intall #### Base intall
[Duet light](https://pkg.duet3d.com/DuetPi-lite.zip) - Config [link](https://duet3d.dozuki.com/Wiki/SBC_Setup_for_Duet_3) [Duet light](https://pkg.duet3d.com/DuetPi-lite.zip) - Config [link](https://duet3d.dozuki.com/Wiki/SBC_Setup_for_Duet_3)
@ -106,25 +74,22 @@ ls -s /opt/duet_vcore3 /root/ # yes I use root on the rasp.
### Duet 3 6HC - Pins ### Duet 3 6HC - Pins
#### Accelerometer
* Temp daughterboard - [LIS3HD](https://www.digikey.nl/en/products/detail/adafruit-industries-llc/3886/10709725)
#### IO #### IO
Used IO pin headers Used IO pin headers
* io_0 - display * io_0 - display
* io_1 - y endstop * io_1 - y endstop
* io_2 - x endstop * io_2 - x endstop
* io_3 - Duet filament sensor
* io_7 - bltouch * io_7 - bltouch
#### Stepper motors #### Stepper motors
All steppers are 0.9º
* z left - driver2 - motion backwards (looking from the back of the printer) - 0.9º * z left - driver2 - motion backwards (looking from the back of the printer)
* z rear - driver1 - motion backwards - 0.9º * z rear - driver1 - motion backwards
* z right - driver1 - motion backwards - 0.9º * z right - driver1 - motion backwards
* top right motor - driver3 - Y - motion forwards (looking from the back of the printer) - 1.8º * top right motor - driver3 - Y - motion forwards (looking from the back of the printer)
* top left motor - driver4 - X - motion forwards - 1.8º * top left motor - driver4 - X - motion forwards
* extruder motor - driver5 - motion forwards - 0.9º * extruder motor - driver5 - motion forwards
#### Outputs #### Outputs
##### Heating elements (24v) ##### Heating elements (24v)
@ -145,19 +110,9 @@ Thermal probes in use:
* temp0 - Bed thermistor * temp0 - Bed thermistor
* temp1 - Hotend thermistor * temp1 - Hotend thermistor
#### Jumpers
* Internal 5V - Enable
* 5V -> SBC - Disable
* SBC -> 5V - Disable
The SBC is powerwered by the Mean Well LRS-50-5
#### Emergency Reset
Emergency reset button is connected to reset pins.
## TODO ## TODO
- Setup filament sensor
- Add printing tracking camera - Add printing tracking camera
- Add accelerometer config
- All macros are untested until stated otherwise (some are cloned from duet repos, others are mine), list of tested macros: - All macros are untested until stated otherwise (some are cloned from duet repos, others are mine), list of tested macros:
- - Lighting (all) - - Lighting (all)
@ -169,7 +124,7 @@ Emergency reset button is connected to reset pins.
- - Diagnostics/E steps calibration - - Diagnostics/E steps calibration
## Electronics backplate ## Electronics backplate
I've also add a electronics backplate (to be a cut of alluminium or polycarbonate up to 4mm), you may find it in [thingiverse.com](https://www.thingiverse.com/thing:4792093). I've also set a exectronics backplate (to be a cut of alluminium or polycarbonate up to 4mm), you may find it in [thingiverse.com](https://www.thingiverse.com/thing:4792093).
## Links and external sources ## Links and external sources
* [GCode library](https://duet3d.dozuki.com/Wiki/Gcode) * [GCode library](https://duet3d.dozuki.com/Wiki/Gcode)

20
bed.g
View File

@ -2,19 +2,11 @@
; so if G31 P500 X-30 Y-15 Z1.7 then first probe will be at ; so if G31 P500 X-30 Y-15 Z1.7 then first probe will be at
; X30 Y20 (when G30 P0 X0 Y5) ; X30 Y20 (when G30 P0 X0 Y5)
M561 ; clear any bed transform M561 ; clear any bed transform
G30 P0 X10 Y10 Z-99999 ; probe near a leadscrew
G30 P1 X60 Y10 Z-99999 ; probe near a leadscrew
G30 P2 X60 Y60 Z-99999 ; probe near a leadscrew
G30 P3 X230 Y470 Z-99999 ; probe near a leadscrew
G30 P4 X250 Y470 Z-99999 ; probe near a leadscrew
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 G30 P0 X25 Y25 Z-99999 ; probe near a leadscrew
G1 Z10 F300 G30 P1 X250 Y475 Z-99999 ; probe near a leadscrew
G29 S1 ; probe the bed and enable compensation G30 P2 X475 Y25 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors
G29 ; probe the bed and enable compensation

View File

@ -1,4 +1,4 @@
; Configuration file for Duet 3 (firmware version 3) and RatRig V\Core3 500^3 ; Configuration file for Duet 3 (firmware version 3) and RatRig VCore3 500^3
; executed by the firmware on start-up ; executed by the firmware on start-up
; ;
@ -9,39 +9,41 @@ 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 H500 V500 ; physical drive 0.0 goes backwards M569 P0.0 S0 D3 H50 V50 ; physical drive 0.0 goes backwards
M569 P0.1 S0 D3 H500 V500 ; physical drive 0.1 goes backwards M569 P0.1 S0 D3 H50 V50 ; physical drive 0.1 goes backwards
M569 P0.2 S0 D3 H500 V500 ; physical drive 0.2 goes backwards M569 P0.2 S0 D3 H50 V50 ; physical drive 0.2 goes backwards
M569 P0.3 S1 D3 H500 V500 ; physical drive 0.3 goes forwards M569 P0.3 S1 D3 H50 V50 ; physical drive 0.3 goes forwards
M569 P0.4 S1 D3 H500 V500 ; physical drive 0.4 goes forwards M569 P0.4 S1 D3 H50 V50 ; physical drive 0.4 goes forwards
M569 P0.5 S0 D2 H500 V500 ; 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.2:0.1:0.0 E0.5 ; set drive mapping M584 X0.3 Y0.4 Z0.0:0.1:0.2 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 E794 ; set steps per mm
M566 X400.00 Y400.00 Z6.00 E120.00 P1 ; set maximum instantaneous speed changes (mm/min) M92 X160.00 Y160.00 Z1600.00 E833.32 ; set steps per mm
M203 X10800.00 Y10800.00 Z1000.00 E3600.00 ; set maximum speeds (mm/min) M566 X400.00 Y400.00 Z6.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
M201 X3000 Y3000 Z100.00 E3600.00 ; set accelerations (mm/s^2) M203 X10800.00 Y10800.00 Z1000.00 E1600.00 ; set maximum speeds (mm/min)
M906 X1700 Y1700 Z800 E800 I20 ; 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 M84 S30 ; Set idle timeout
; Axis Limits ; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minima M208 X0 Y0 Z0 S1 ; set axis minima
M208 X500 Y500 Z500 S0 ; set axis maxima M208 X510 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" H5 F300 T10000 A5 S0.05 R0.2 ; set Z probe type to bltouch and the dive height (H) + speeds (F), run probing 5x M558 P9 C"^io7.in" H3 F500 T12000 ; set Z probe type to bltouch and the dive height + speeds
; tolerance when probing mm (S), probe recovery time (R),
;; 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-35 Y-0.5 Z2.84 ; set Z probe trigger value, offset and trigger height (90 ºc, 15m after reaching temp) G31 P500 X-28 Y-13 Z2.235 ; set Z probe trigger value, offset and trigger height
M671 X-4.5:250:503 Y4.52:505:-4.5 S100 ; define positions of Z leadscrews or bed levelling screws ;;
M557 X5:465 Y5:465 P5 ; define mesh grid M671 X-4.5:250:504.5 Y-4.52:505:-4.52 S5 ; define positions of Z leadscrews or bed levelling screws
M557 X25:475 Y25:475 P10 ; define 10x10 mesh grid
; Heaters ; Heaters
;; BED ;; BED
@ -51,6 +53,7 @@ M307 H0 B0 S1.00 ; disable bang-bang mode for
M140 H0 ; map heated bed to heater 0 M140 H0 ; map heated bed to heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C M143 H0 S120 ; set temperature limit for heater 0 to 120C
;; HotEnd
M308 S1 P"temp1" Y"thermistor" T100000 B4725 C7.060000e-8 A"Hotend" ; configure sensor 1 as thermistor on pin temp1 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 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 M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
@ -59,9 +62,8 @@ M143 H1 S280 ; set temperature limit for h
; Fans ; Fans
M950 F0 C"out7" Q500 ; create fan 0 on pin out7 and set its frequency 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 M106 P0 C"Hotend fan" S1 H1 T45 ; set fan 0 value. Thermostatic control is turned on
M950 F1 C"out4" Q20 ; create fan 1 on pin out4 M950 F1 C"out4" Q10 ; create fan 1 on pin out4
;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
@ -71,24 +73,11 @@ 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
; Filament sensor - Duet3D laser filament monitor ; Custom settings are not defined
M591 D0 P5 C"io3.in" R20:150 E5.0 A0 S1 ; Duet3D laser sensor for extruder drive 0, connected to endstop input 4 (E0), tolerance 30 to 125%, 5mm comparison length, enabled filament monitoring
; Miscellaneous ; Miscellaneous
M575 P1 S1 B57600 ; enable support for PanelDue M575 P1 S1 B57600 ; enable support for PanelDue
M501 ; load saved parameters from non-volatile memory M501 ; load saved parameters from non-volatile memory
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set tension thresholds and actions to run on power loss M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set tension thresholds and actions to run on power loss
M404 N1.75 D0.4 ; Filament width and nozzle diameter M404 N1.75 D0.4 ; Filament width and nozzle diameter
;M572 D0 S0.10 ; Pressure Advance
T0 ; Define default tool T0 ; Define default tool
; Accelerometer - LIS3HD
;; More info: https://duet3d.dozuki.com/Wiki/Accelerometers
;; More info: regarding sensor orientation: https://www.dropbox.com/s/hu2w5mk57l4zqpg/Accelerometer%20Orientation.pdf
;; Possible orientations 01,02,05,06
M955 P0 C"spi.cs3+spi.cs2" I01 S1344 R10; all wires connected to temperature daughter board connector, Orientation 01, Sampling rate 1344, 10b resolution
M593 P"ei3" F38 ; use P "shaper" input shaping to cancel ringing at center 38Hz
;M593 P"none" ; disable input shaping
;M593 P"custom" H0.4:0.7 T0.0135:0.0135 ; use custom input shaping

View File

@ -2,33 +2,23 @@
; called to home all axes ; called to home all axes
; ;
; BLTouch M280 P0 S160 ; Reset probe
M280 P0 S160 ; Precautionary alarm release
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 Z10 F10800 ; lift Z relative to current position G1 H2 Z5 F6000 ; lift Z relative to current position
G1 H1 X-625 F3600 ; move quickly to X axis endstop and stop there (first pass) G1 H1 X-625 Y625 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 H2 X20 F3000 ; go back a few mm G1 H1 X-625 F900 ; move quickly to X axis endstops and stop there (first pass)
G1 H1 X-625 F256 ; move slowly to X axis endstop once more (second pass) G1 H1 Y625 F900 ; move quickly to Y axis endstops and stop there (first pass)
M201 X3000 Y3000 ; Return to full acceleration G1 H2 X5 Y-10 F1800 ; go back a few mm
G90 ; absolute positioning G1 H1 X-625 Y625 F256 ; move slowly to X and Y axis endstops once more (second pass)
G1 H1 X-625 F256 ; move slowly to X axis endstops once more (second pass)
M201 X500.00 Y500.00 ; Reduce acceleration for homing moves G1 H1 Y625 F256 ; move slowly to Y axis endstops once more (second pass)
G91 ; relative positioning
G1 H1 Y625 F3600 ; move quickly to Y axis endstop and stop there (first pass)
G1 Y-20 F3000 ; go back a few mm
G1 H1 Y625 F256 ; move slowly to Y axis endstop once more (second pass)
M201 X3000 Y3000 ; Return to full acceleration
G90 ; absolute positioning G90 ; absolute positioning
G1 X250 Y250 F3600 ; go to first probe point G1 X250 Y250 F10000 ; 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 G91 ; relative positioning
G1 Z10 F3600 ; lift Z relative to current position G1 Z5 F100 ; lift Z relative to current position
G90 ; absolute positioning G90 ; absolute positioning
G1 X15 Y-15 F10000

17
homex.g
View File

@ -1,13 +1,12 @@
; 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 F3600 ; 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-2 F10800 ; lower Z again
G90 ; absolute positioning
G1 X10 F6000 ; move forward 10mm

18
homey.g
View File

@ -1,14 +1,12 @@
; 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
G1 H2 Z10 F8000 ; lift Z relative to current position
G1 H1 Y625 F3600 ; move quickly to Y axis endstop and stop there (first pass)
G1 Y-20 F3000 ; go back a few mm
G1 H1 Y625 F256 ; move slowly to Y axis endstop once more (second pass)
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
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 Y-10 F6000 ; go back a few mm
G1 H1 Y625 F360 ; move slowly to Y axis endstop once more (second pass)
G1 H2 Z-2 F10800 ; lower Z again
G90 ; absolute positioning
G1 Y-10 F6000 ; move forward 10 mm

View File

@ -8,8 +8,9 @@ G1 H2 Z5 F10800 ; lift Z relative to current position
G90 ; absolute positioning G90 ; absolute positioning
G1 X250 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
; Uncomment the following lines to lift Z after probing
G91 ; relative positioning G91 ; relative positioning
G1 Z10 F3600 ; lift Z relative to current position G1 Z5 F100 ; lift Z relative to current position
G90 ; absolute positioning G90 ; absolute positioning

29
macros/1_Preheat PLA Normal file
View File

@ -0,0 +1,29 @@
; Raise temp of heated bed to 60 and nozzle to 210
;
M291 P"Setting PID and retraction values for PLA" R"Proceed?" S3
; New values
;M307 H0 A82.6 C112.0 D2.7 S1.00 V24.0 B0 ; PID tune for bed at 60c
;M307 H1 A460.6 C173.6 D3.1 S1.00 V23.9 B0 ; Pid tune for hotend at 210c
M572 D0 S0.05 ; Pressure advance for PLA
M207 S0.7 R-0.000 F8000 T1500 ; retraction settings for PLA
T0
M140 S60 ; Set bed temp to 80
M116 ; Wait for temps to be reached...
G10 P0 S180 ; Set extruder temp (tool 0) to 200
M116
M117 PLA Preheat complete ; and send a notice to the screen that temps have been reached
;Play a tone
M300 S1250 P200
G4 P201
M300 S1500 P200
G4 P201
M300 S1100 P200
G4 P201
M300 S950 P300
G4 P400
M300 S1175 P300
G4 S1

View File

@ -13,9 +13,9 @@ M207 S0.8 R-0.000 F8000 T1500 ; retraction settings for Edge PETG
T0 T0
M140 S85 ; Set bed temp to 85 M140 S80 ; Set bed temp to 80
M116 ; Wait for temps to be reached... M116 ; Wait for temps to be reached...
G10 P0 S200 ; Set extruder temp (tool 0) to 200 G10 P0 S240 ; Set extruder temp (tool 0) to 200
M116 M116
M117 PETG Preheat complete ; and send a notice to the screen that temps have been reached M117 PETG Preheat complete ; and send a notice to the screen that temps have been reached
;Play a tone ;Play a tone

View File

@ -0,0 +1,141 @@
; Helps guide leveling the bed mechanically, and calibrate the ZProbe trigger height before running a grid bed compensation routine..
;
; Preamble to tell the user to prepare the printer before continuing
;
;M291 P"Before proceeding make sure the printer is mechanically sound and properly functioning." R"Prepare printer for leveling routine" S3 ; User must click OK
;M291 P"ZProbe should be configured and working. Clear the print bed of any obstacles or debris." R"Prepare printer for leveling routine" S3 ; User must click OK
;M291 P"This routine will take about 10-20 minutes and heat both the bed and nozzle." R"Prepare printer for leveling routine" S3 ; User must click OK
;M291 P"You will need a screwdriver and piece of paper. Filament will be unloaded." R"Prepare printer for leveling routine" S3 ; User must click OK
;M291 P"Make sure you have successful Gcodes logged to the console before proceeding." R"WARNING" S3 ; User must click OK or cancel
;M291 P"Make a note of your M558 Z value and backup current heightmap before proceeding." R"WARNING" S3 ; User must click OK or cancel
; Clear compensation map and Zprobe trigger height
;
M291 P"Grid bed compensation map will be disabled. Ok or Cancel?" R"WARNING" S3 ; User must click OK or cancel.
M291 P"Bed and nozzle will preheat and home all axis." R"Preheat and Home" S3 T0 ; User must click OK or cancel
; Heat up bed and nozzle to PLA temps in prep for filament removal and probing
;
T0 ; Activate first tool
M104 S85 ; Set nozzle to 85 and release
M140 S65 ; Set bed to 65 and release
G28 ; home all
M561 ; Disable any current bed compensation
; Move nozzle forward for filament removal
;
M291 P"Moving nozzle to the front for filament removal and cleaning." T0
M98 P"0:/macros/1_Nozzle Access.g" ; Moves print head to front left and drops the bed down for easy access
M109 S85 ; Set nozzle to 85 and wait
M98 P"0:/macros/Musical Tunes/GetAttention.g" ; Tone to get user attention
; Unload filament and clean nozzle
;
M291 P"Unload filament if loaded and clean nozzle, then press OK to continue" R"Unload Filament" S3 T0 ; User must click OK or cancel
; Preheat to probing temps
;
M291 P"Preheating the bed to 60 and nozzle to 210 for accurate probing" T0
M104 S210 ; Set nozzle to 210 and release
M190 S60 ; Set bed to 60 and wait
M109 S210 ; Set nozzle to 210 and wait
M98 P"0:/macros/Musical Tunes/GetAttention.g" ; Tone to get user attention
; Move nozzle to center of bed at Z10 and drop to Z1
;
M291 P"Nozzle will now move to center of bed and move close to the bed" T0
M98 P"0:/macros/0_Center Nozzle.g"
G90 G1 Z3 F400 ; drop bed for nozzle clearance
G92 Z4 ; Reset z to 8 to allow jogging up to touch bed to nozzle
; Set lower speeds for Z homing and lower Z motor current
;
M98 P"ZSpeedsSlow.g"
M400
M913 Z50 ; Drop motor current to prevent damage in case of head crash
; Dialog to allow user to job z to touch nozzle to bed gently and then move Z down 10
;
M291 P"Carefully Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; set z = 0
; Move nozzle to leveling points and prompt user to level bed at each
;
M291 P"Nozzle will now move to the 3 leveling points twice." S1 T2
; Move to leveling point 1
G1 Z2 ; move to z2 for travel
M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #1" ; Move to rear left corner
M400
M291 P"Adjust point 1. Jog down by 2 and adjust screw." R"Adjustment Point 1" S2 Z1
; Move to leveling point 2
G1 Z2 ; Move to Z2 for clearance
M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #2" ; Move to rear right corner
M400
M291 P"Adjust point 2. Jog down by 2 and adjust screw." R"Adjustment Point 2" S2 Z1
; Move to leveling point 3
G1 Z2 ; Move to Z2 for clearance
M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #3" ; Move to front middle
M400
M291 P"Adjust point 3. Jog down by 2 and adjust screw." R"Adjustment Point 3" S2 Z1
; Repeat to verify
;
M291 P"The adjustment sequence will now repeat for fine adjustment." S1 T2
; Move to leveling point 1
G1 Z2 ; move to z2 for travel
M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #1" ; Move to rear left corner
M400
M291 P"Adjust point 1. Jog down by 2 and adjust screw." R"Adjustment Point 1" S2 Z1
; Move to leveling point 2
G1 Z2 ; Move to Z2 for clearance
M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #2" ; Move to rear right corner
M400
M291 P"Adjust point 2. Jog down by 2 and adjust screw." R"Adjustment Point 2" S2 Z1
; Move to leveling point 3
G1 Z2 ; Move to Z2 for clearance
M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #3" ; Move to front middle
M400
M291 P"Adjust point 3. Jog down by 2 and adjust screw." R"Adjustment Point 3" S2 Z1
G1 Z2 ; Move to Z2 for clearance
M98 P"0:/macros/Musical Tunes/GetAttention.g" ; Tone to get user attention
; Turn off heaters
;
M104 S0 ; Set nozzle to 0 and release
M140 S0 ; Set bed to 0 and release
M98 P"ZSpeedsNormal.g"
M98 P"CurrentsNormal.g"
M291 P"Homing"
G28 ; Home XYZ
M84 ; Turn off the motors
M291 P"The bed has been mechanically leveled and Z0 set." S2
; Tell user to take values from gcode console log and average the Z height and use that as the new Z probe trigger height
;
;M291 P"Average the 10 Z height values in the console and round to 2 decimal places" S2
;M291 P"The resulting value is the ZProbe trigger height value (M558 Zn)" S2
;M291 P"Either set the value in config.g and reboot, or send M558 Zn in the console before running G29." S2
;M291 P"The bed is now mechanically leveled and probe height calibrated." R"Congratulations!" S2
;M291 P"You may now run a Grid Bed Compensation Detailed Probe. (G92)." S2
;
; Run bed grid compensation routine

View File

@ -0,0 +1,95 @@
M291 P"Grid bed compensation map and Z Probe trigger height will be cleared. Ok or Cancel?" R"WARNING" S3 ; User must click OK or cancel.
M291 P"Heights will be found in gcode console if logging successful gcode is enabled" R"Did you remember to enabled gcode logging?" S3
; Clear compensation map and Z probe trigger height
;
G28 ; home all axis
M561 ; Disable any current bed compensation
G90 ; Absolute positioning
T0 ; Activate first tool
M98 P"ZSpeedsSlow.g" ; Set lower speeds for Z homing and lower Z motor current
M913 Z50 ; Drop motor current to prevent damage in case of head crash
; Preheat to probing temps
;
M291 P"Preheating to bed to 60 and nozzle to 210 for accurate probing"
M104 S210 ; Set nozzle to 210 and release
M190 S60 ; Set bed to 60 and wait
M109 S210 ; Set nozzle to 210 and wait
M98 P"0:/macros/musical tunes/GetAttention.g"
; 1
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
M98 P"0:/macros/Calibration/Bed Leveling/1_Center Nozzle on Bed"
G90 G1 Z3 F400
M400
G92 Z4 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
M400
G92 Z0 ; Set z = 0
G90 G1 Z3 F400
M104 S0 ; Turn off hotend heater as it's no longer needed
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
M400
M98 P"0:/macros/Calibration/Bed Leveling/1_Center Probe on Bed"
G1 Z5
M400
G30 S-1
M400
G1 Z5
M400
G30 S-1
M400
G1 Z5
M400
G30 S-1
M400
G1 Z5
M400
G30 S-1
M400
G1 Z5
M400
G30 S-1
M400
G1 Z5
M400
G30 S-1
M400
G1 Z5
M400
G30 S-1
M400
G1 Z5
M400
G30 S-1
M400
G1 Z5
M400
G30 S-1
M400
G1 Z5
M400
G30 S-3 ; measure probe height and set it.
M400
M500 P31 ; save trigger height to config-override.g
G1 Z5
M98 P"0:/macros/musical tunes/GetAttention.g"
; Turn off heaters
;
M104 S0 ; Set nozzle to 0 and release
M140 S0 ; Set bed to 0 and release
M98 P"ZSpeedsNormal.g" ; return to normal speeds
M98 P"CurrentsNormal.g"
M400
M291 P"Homing"
G28 ; Home Z
M84 ; turn off the motors
M291 P"Probing complete. Turning off heaters and homing axis. Check log for trigger heights and enter into config.g" S2

View File

@ -0,0 +1,47 @@
; 0:/macros/Bed Leveling/0_Grid Compensation Assist.g
; Macro to run a mesh bed compensation routine (G29)
;
M291 P"Grid bed compensation map will be cleared and re-calculated. Ok or Cancel?" R"WARNING. This will take about 30 minutes." S3 ; User must click OK or cancel.
; Preheat to probing temps
;
M291 P"Preheating to bed to 60 and nozzle to 210 for accurate probing" R"Proceed?" S3
T0 ; Activate first tool
M190 S65 ; Set bed to 65 and wait
;M109 S210 ; Set nozzle to 210 and wait. Used only for stall detection probing.
; Clear current mesh compensation map and disable compensation.
;
G28 ; Home all
M561 ; Disable any current bed compensation
; Set lower speeds for Z homing and lower Z motor current
;
M98 P"ZSpeedsSlow.g"
M98 P"CurrentsHoming.g" ; Drop motor current to prevent damage in case of head crash
M98 P"0:/macros/musical tunes/GetAttention.g" ; Tone to get user attention
M291 P"Running mesh grid compensation probing cycle. Do not disturb the printer."
M558 H1.5 ; lower dive height
G29 ; Run mesh compensation
M98 P"0:/macros/musical tunes/GetAttention.g" ; Tone to get user attention
M558 H3 ; return dive height
; Turn off heaters
;
M140 S0 ; Set bed to 0 and release
;M104 S0 ; turn off hot end heater
M98 P"ZSpeedsNormal.g"
M98 P"CurrentsNormal.g"
M291 P"Homing"
G28 ; Home all
M84 ; turn off the motors
M291 P"Check heightmap for results." R"Probing complete!" S3

View File

@ -0,0 +1,20 @@
; 0:/macros/Bed Leveling/0_Measure Zmax trigger.g
; Automates measuring the Zmax trigger for optical endstop at 305mm
;
M291 P"This will set Z0 and calibrate Zmax height to 305mm" R"Proceed?" S3
M291 P"Homing all axis" T5
G28 ; Home all
G90 ; Absolute positioning
M291 P"Bed will now drop to Z305" S3
G1 Z305 ; Move bed down 305mm
M291 P"Adjust optical endstop flag until light just turns off" R"Set Zmax=305mm" S3
M291 P"ZMax homing will now be tested, starting with homing Zmin" S3
M291 P"Homing to Zmin" T5
G28
M291 P"Ready to test Zmax homing?" R"Proceed?" S3
M291 P"Homing to Zmax" T5
G1 Z350 H3 F400 ; home to z max and set the trigger height as the M208 Z maxima
M500 ; save the measured M208 Z maxima to config-override.g
M291 P"ZMax homing test complete. Printer will now home all." R"Proceed?" S3
G28 ; Home all
M291 P"ZMax calibration complete." S3

View File

@ -0,0 +1,126 @@
;prob testing
;used to measure probe repeatability - 24 points
M291 S3 P"This will test probe repeatability on 24 points" R"Proceed?"
G30 P0 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P1 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P2 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P3 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P4 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P5 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P6 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P7 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P8 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P9 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P10 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P11 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P12 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P13 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P14 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P15 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P16 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P17 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P18 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P19 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P20 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P21 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P22 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P23 X150.0 Y150.0 Z-99999 F5000
G1 X100.0 Y150.0 Z5 F5000
G1 X150.0 Y100.0 Z5 F5000
G1 X50.0 Y150.0 Z5 F5000
G1 X150.0 Y50.0 Z5 F5000
G30 P24 X150.0 Y150.0 Z-99999 F5000 S-1

View File

@ -0,0 +1,24 @@
; 0:/macros/Bed Leveling/0_Set Zmax height.g
; Automates measuring the Zmax height for optical endstop at ~300mm
;
M291 P"This will set Z0 and calibrate Zmax height" R"Proceed?" S3
M291 P"Homing all axis" T5
G28 ; Home all
G90 ; Absolute positioning
M98 P"0:/macros/0_Center Nozzle.g" ; Move nozzle to bed center
M291 P"Adjust nozzle height until it's touching bed" Z1 S3
G92 Z0 ; set Z0
M291 P"Bed will now drop to Z300" S3
G1 Z300 ; Move bed down 300mm
G1 S3 Z300 F200
M500 ; save m208 value for z axis to config override
M291 P"Adjust optical endstop flag until light just turns off" R"Set Zmax=300mm" S3
M291 P"ZMax homing will now be tested, starting with homing Zmin" S3
M291 P"Homing to Zmin" T5
G28 Z
M291 P"Ready to test Zmax homing?" R"Proceed?" S3
M291 P"Homing to Zmax" T5
M98 P"0:/macros/2_HomeZMax.g" ; Test Zmax homing
M291 P"ZMax homing test complete. Printer will now home all." R"Proceed?" S3
G28 ; Home all
M291 "ZMax calibration complete." S3

View File

@ -0,0 +1,15 @@
M291 P"Probe will be tested 10 times and return mean and standard deviation. Ok or Cancel?" R"WARNING" S3 ; User must click OK or cancel.
G28
M401
G30 P0 X192.2 Y98.1 Z-9999
G30 P1 X192.2 Y98.1 Z-9999
G30 P2 X192.2 Y98.1 Z-9999
G30 P3 X192.2 Y98.1 Z-9999
G30 P4 X192.2 Y98.1 Z-9999
G30 P5 X192.2 Y98.1 Z-9999
G30 P6 X192.2 Y98.1 Z-9999
G30 P7 X192.2 Y98.1 Z-9999
G30 P8 X192.2 Y98.1 Z-9999
G30 P9 X192.2 Y98.1 Z-9999 S-1
M402
M117 P"Check Console for Results"

View File

@ -0,0 +1,4 @@
; move the nozzle to the center of the bed
;
;G91 G1 Z5 ; drop bed for nozzle clearance
G90 G1 X142 Y140 F12000 ; move to bed center

View File

@ -0,0 +1,5 @@
; move the nozzle to the center of the bed
;
;G91 G1 H2 Z5 ; drop bed for nozzle clearance
G90 G1 X185 Y111 F12000 ; Move x and Y axis so probe over bed center

View File

@ -0,0 +1,6 @@
;Moves print head to rear left position closest to reference adjustment screw.
;
G90 ; Absolute positioning
G1 Z2 ; Lower bed for nozzle clearance
G1 X28 Y280 F12000 ; Move to rear left corner
G91 ; Relative positioning

View File

@ -0,0 +1,6 @@
;Moves print head to rear right position closest to pitch adjustment screw.
;
G90 ; Absolute positioning
G1 Z2 ; Lower bed for nozzle clearance
G1 X255 Y280 F12000 ; Move to rear right corner
G91 ; Relative positioning

View File

@ -0,0 +1,5 @@
;Moves print head to front middle position closest to roll adjustment screw.
;
G90 ; Absolute positioning
G1 Z2 ; Lower bed for nozzle clearance
G1 X142 Y16 F12000 ; Move to front middle

View File

@ -0,0 +1,2 @@
G90 ; Absolute
g1 Z0 ; move to Z0

View File

@ -0,0 +1,2 @@
G90 ; Absolute
G1 Z1

View File

@ -0,0 +1,2 @@
G90 ; Absolute
G1 Z10

View File

@ -0,0 +1,2 @@
G91 ; Relative
G1 Z0.02

View File

@ -0,0 +1,2 @@
G91 ; Relative
G1 Z0.1

View File

@ -0,0 +1,2 @@
G91 ; Relative
G1 Z-0.02

View File

@ -0,0 +1,2 @@
G91
G1 Z-0.1

View File

@ -0,0 +1,171 @@
M291 P"Grid bed compensation map and Z Probe trigger height will be cleared. Ok or Cancel?" R"WARNING" S3 ; User must click OK or cancel.
M291 P"Heights will be found in gcode console if logging successful gcode is enabled" R"Did you remember to enabled gcode logging?" S3
; Clear compensation map and Z probe trigger height
;
G28 ; home all axis
M561 ; Disable any current bed compensation
G29 S2 ; Clear mesh bed compensation parameters
G31 Z0 ; Reset Z probe trigger height
G90 ; Absolute positioning
T0 ; Activate first tool
M98 P"ZSpeedsSlow.g" ; Set lower speeds for Z homing and lower Z motor current
M913 Z60 ; Drop motor current to prevent damage in case of head crash
; Preheat to probing temps
;
M291 P"Preheating to bed to 60 and nozzle to 210 for accurate probing"
M104 S210 ; Set nozzle to 210 and release
M190 S60 ; Set bed to 60 and wait
M109 S210 ; Set nozzle to 210 and wait
; 1
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
G1 X149 Y130 Z5 F4000 ; Move to bed center
G92 Z8 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; Set z = 0
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
G1 Z1 ; Drop bed for nozzle clearance
G1 X192.2 Y98.1 F4000 ; Move to bed center
G1 Z10
G30 S-1
; 2
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
G1 X149 Y130 Z5 F4000 ; Move to bed center
G92 Z8 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; Set z = 0
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
G1 Z1 ; Drop bed for nozzle clearance
G1 X192.2 Y98.1 F4000 ; Move to bed center
G1 Z10
G30 S-1
; 3
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
G1 X149 Y130 Z5 F4000 ; Move to bed center
G92 Z8 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; Set z = 0
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
G1 Z1 ; Drop bed for nozzle clearance
G1 X192.2 Y98.1 F4000 ; Move to bed center
G1 Z10
G30 S-1
; 4
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
G1 X149 Y130 Z5 F4000 ; Move to bed center
G92 Z8 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; Set z = 0
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
G1 Z1 ; Drop bed for nozzle clearance
G1 X192.2 Y98.1 F4000 ; Move to bed center
G1 Z10
G30 S-1
; 5
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
G1 X149 Y130 Z5 F4000 ; Move to bed center
G92 Z8 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; Set z = 0
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
G1 Z1 ; Drop bed for nozzle clearance
G1 X192.2 Y98.1 F4000 ; Move to bed center
G1 Z10
G30 S-1
; 6
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
G1 X149 Y130 Z5 F4000 ; Move to bed center
G92 Z8 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; Set z = 0
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
G1 Z1 ; Drop bed for nozzle clearance
G1 X192.2 Y98.1 F4000 ; Move to bed center
G1 Z10
G30 S-1
; 7
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
G1 X149 Y130 Z5 F4000 ; Move to bed center
G92 Z8 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; Set z = 0
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
G1 Z1 ; Drop bed for nozzle clearance
G1 X192.2 Y98.1 F4000 ; Move to bed center
G1 Z10
G30 S-1
; 8
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
G1 X149 Y130 Z5 F4000 ; Move to bed center
G92 Z8 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; Set z = 0
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
G1 Z1 ; Drop bed for nozzle clearance
G1 X192.2 Y98.1 F4000 ; Move to bed center
G1 Z10
G30 S-1
; 9
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
G1 X149 Y130 Z5 F4000 ; Move to bed center
G92 Z8 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; Set z = 0
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
G1 Z1 ; Drop bed for nozzle clearance
G1 X192.2 Y98.1 F4000 ; Move to bed center
G1 Z10
G30 S-1
; 10
;
M291 P"Nozzle will now move to center of bed to reset Z0 and calibrate probe" S3
G1 X149 Y130 Z5 F4000 ; Move to bed center
G92 Z8 ; Reset z to 8 to allow jogging up to touch bed to nozzle
M291 P"Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
G92 Z0 ; Set z = 0
M291 P"Probe will now move to center of bed and measure trigger height 10 times" R"ZProbe Trigger Height Calibration" T3
G1 Z1 ; Drop bed for nozzle clearance
G1 X192.2 Y98.1 F4000 ; Move to bed center
G1 Z10
G30 S-1
M400
; Turn off heaters
;
M104 S0 ; Set nozzle to 0 and release
M140 S0 ; Set bed to 0 and release
M98 P"ZSpeedsNormal.g" ; return to normal speeds
M913 Z75 ; reset z motor current
G28 ; Home Z
M291 P"Probing complete. Turning off heaters and homing axis. Check log for trigger heights and enter into config.g" S2
; Tone to get user attention
;
M400 ; Clear movement buffer so tones play reliably
M300 S666 P500
G4 P501
M300 S1111 P300
G4 P301

View File

@ -0,0 +1,3 @@
G90 ; Absolute
G1 Z10 ; Lower bed 10mm
G30 S-1 ; Do a probe and don't reset z height to get trigger height of probe.

View File

@ -0,0 +1 @@
G92 Z0

View File

@ -0,0 +1 @@
G92 Z10

View File

@ -1 +0,0 @@
M280 P0 S160 ; clear and reset BL touch

Binary file not shown.