Related codes:
Описание
Automatic (Linear) Bed Leveling probes the bed in a grid and enables bed leveling compensation using a matrix to compensate for bed tilt, applying a “least-squares” approximation.
The printer must be homed with
before
.
Automatic Probing
Using an electronic probe
Marlin can probe the entire grid with a single
command. See parameter descriptions and examples below for details.
Manual Probing
Click for Details
Примечание
Any arguments left out of
will use the default values set in Configuration.h.
disables bed leveling. Follow with M420 S to turn leveling on, or use RESTORE_LEVELING_AFTER_G28 to automatically keep leveling on after
.
To save time and machine wear, save your matrix to EEPROM with
and in your slicer’s “Starting
G-CODE” replace
with M420 S1 to enable your last-saved matrix.
Использование
G29 [A<bool>] [B<linear>] [C<bool>] [D<bool>] [E<bool>] [F<linear>] [H<linear>] [J<bool>] [L<linear>] [O] [P<int>] [Q<bool>] [R<linear>] [S<rate>] [T<bool>] [V<0-4>] [X<int>] [Y<int>]
Параметры
[A<bool>]
Abort leveling procedure in-progress (PROBE_MANUALLY)
[B<linear>]
Set the back limit of the probing grid.
[C<bool>]
Create a fake grid for testing. (DEBUG_LEVELING_FEATURE)
[D<bool>]
Dry-Run mode. Just probe the grid but don’t update the bed leveling data
[E<bool>]
- By default G29 will engage the Z probe, test the bed, then disengage.
- Include “E” to engage/disengage the Z probe for each sample.
- There’s no extra effect if you have a fixed Z probe. (without PROBE_MANUALLY)
[F<linear>]
Set the front limit of the probing grid.
[H<linear>]
Set the square width and height of the area to probe.
[J<bool>]
Jettison the leveling data stored in SRAM and turn off leveling compensation. Data in EEPROM is not affected.
[L<linear>]
Set the left limit of the probing grid.
[O]
Optional. If leveling is already enabled then exit without leveling. (1.1.9)
[P<int>]
Set the size of the square grid that will be probed - P x P points
[Q<bool>]
Query the current leveling state (PROBE_MANUALLY, DEBUG_LEVELING_FEATURE)
[R<linear>]
Set the right limit of the probing grid.
[S<rate>]
Set the XY travel speed between probe points.
[T<bool>]
Generate a Bed Topology Report
[V<0-4>]
Set the verbose level. Level 2 and up act like ‘T’.
[X<int>]
Set the number of columns (in X) that will be probed.
[Y<int>]
Set the number of rows (in Y) that will be probed.
Примеры
Automatic Probing examples
G29 ; probe and enable
is most commonly used without any arguments. This uses the defaults set in Configuration.h.
G29 P5 ; 5x5 matrix
Probe a 5x5 matrix.
G29 X4 Y8 L50 R150 F50 B150 T V4
Probe a 4x8 matrix from X50 Y50 to X150 Y150, printing a full report.
Manual Probing example
G29 V1 ; Ready! Go to Point 1, wait...
G29 V1 ; Store Z, go to Point 2, wait...
G29 V1 ; Store Z, go to Point 3, wait...
G29 V1 ; Store Z, go to Point 4, wait...
G29 V1 ; Store Z, go to Point 5, wait...
G29 V1 ; Store Z, go to Point 6, wait...
G29 V1 ; Store Z, go to Point 7, wait...
G29 V1 ; Store Z, go to Point 8, wait...
G29 V1 ; Store Z, go to Point 9, wait...
G29 V1 ; Store Z. Calculate matrix. Activate.
Each
command goes to the next step until the whole procedure is done. The V1 parameter provides a progress report.