---
tag: m0871
title: Probe temperature config
brief: Configure probe temperature compensation
author: tompe-proj
contrib: thinkyhead

group: calibration
requires: PROBE_TEMP_COMPENSATION
eeprom: true

codes: [ M871 ]
related: [ G76, M192 ]

notes:
- Requires `PROBE_TEMP_COMPENSATION`.
- Values at index zero are constant (zero).
- Compensation values are stored in µm (micrometers).
- Use [`M500`](/docs/gcode/M500.html) to save the values to [EEPROM](/docs/features/eeprom.html).

parameters:

- tag: V
  optional: true
  description: Z adjustment value, in µm (micrometers).
  values:
  - tag: value
    type: int

- tag: I
  optional: true
  description: Index at which to store the given Z adjustment value.
  values:
  - tag: index
    type: int

- tag: B
  optional: true
  type: flag
  description: Store the value `V` as the Z adjustment at index `I` for the Bed.

- tag: P
  optional: true
  type: flag
  description: Store the value `V` as the Z adjustment at index `I` for the Probe.

- tag: E
  optional: true
  type: flag
  description: Store the value `V` as the Z adjustment at index `I` for the Extruder.

- tag: R
  optional: true
  type: flag
  description: Reset all Z adjustment values to factory defaults (zero).

example:
- code:
  - M871 ; print current values
  - M871 R ; reset all values factory default (zero, effectively disabling compensation)
  - M871 B I2 V20 ; set bed compensation value at index 2 to 20µm
  - M871 P I1 V-5 ; set probe compensation value at index 1 to -5µm
  - M871 E I4 V-13 ; set extruder compensation value at index 4 to -13µm

---

Read/write probe temperature compensation values. Values for bed and/or probe can be calibrated using the [`G76`](/docs/gcode/G076.html) command.
