<p>From the linked <code>Configuration.h</code> file the probe X, Y, Z probe offset is set by constant array:</p>

<pre><code>#define NOZZLE_TO_PROBE_OFFSET { 75, -35 , 0 }
</code></pre>

<p>So, the sensor is mounted at the right-front (X+, Y- according to the Marlin configuration definition) when facing the printer.</p>

<p>This implies that the sensor is limited on the right and at the front.</p>

<p>The probing area used to be defined in Marlin 1.1.x in the <code>Configuration.h</code> file. However, Marlin 2.x requires edge offsets rather than absolute bed size constraints. From the <code>Configuration_adv.h</code> of linked file, the following probing limits are set:</p>

<pre><code>#if PROBE_SELECTED &amp;&amp; !IS_KINEMATIC
  #define MIN_PROBE_EDGE_LEFT (75 + MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_RIGHT (X_BED_SIZE  - MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_FRONT (MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_BACK (Y_BED_SIZE -35 - MIN_PROBE_EDGE)
#endif
</code></pre>

<p>This is incorrect, this is what you would do in Marlin 1.1.x. Note that <a href="/a/8154">this answer</a> describes in detail how to set the bed probing limits. You need to specify the offset from the edge on each side, in schematics the probing area is defined as:</p>

<p><a href="https://i.sstatic.net/PLhmn.png" rel="nofollow noreferrer" title="Front-right probe position"><img src="https://i.sstatic.net/PLhmn.png" alt="Front-right probe position" title="Front-right probe position"></a></p>

<p>From your printer configuration, the probing limits should be set to:</p>

<pre><code>#if PROBE_SELECTED &amp;&amp; !IS_KINEMATIC
  #define MIN_PROBE_EDGE_LEFT (75 + MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_RIGHT (MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_FRONT (MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_BACK (35 + MIN_PROBE_EDGE) ; Note that 35 is absolute(-35)!
#endif
</code></pre>

CC BY-SA 4.0
2020-04-02T14:53:02.450Z
2020-04-02T14:53:02.450Z
0scar
<p>I've just updated my Anet A8 with the blue bed level sensor to Marlin 2.0 .
Both pressing the Level Bed button on the display or using <code>G29</code> after <code>G28</code> in the G-code don't do anything.</p>

<p><code>G28</code> Homing works fine, but doesn't put the nozzle at the center like it did on Marlin 1.1.x, instead it puts the sensor at the center of the build plate.
<code>G29</code> worked fine in my previous Marlin 1.1 config.</p>

<p>These are my config files: </p>

<ul>
<li><a href="https://pastebin.com/kbRgPzM8" rel="nofollow noreferrer">Configuration.h</a></li>
<li><a href="https://pastebin.com/HQiLLArE" rel="nofollow noreferrer">Configuration_adv.h</a></li>
</ul>

CC BY-SA 4.0
2020-04-02T09:47:43.153Z
[Do you mean the ROKO SN04-N?](https://ae01.alicdn.com/kf/HTB1l5_PbcrrK1RjSspaq6AREXXaV/SN04-N-Naderingsschakelaar-Detectie-Afstand-Auto-Leveling-Positie-Sensor-Voor-Anet-A8-3D-Printer-Onderdelen.jpg)
0scar
CC BY-SA 4.0
2020-04-02T10:16:54.067Z
Please read [this answer](/a/8154) (scroll to the bottom for an example for a back-right mounted sensor), your `Configuration_adv.h` file is incorrect (more specific, the probe area definition is incorrect). In version 2.x you do not define the bed size (absolute) for the sensor, you only specify the offsets (so relative) from the edge! You should be able to figure out what these values need to be using the example.
0scar
<marlin><firmware><anet-a8><bed-leveling>
G29 Bed Level not doing anything on Marlin 2.0
Nicola Guerrera
# G29 Bed Level not doing anything on Marlin 2.0

(Asked by: username_0 on 2020-04-02)

I've just updated my Anet A8 with the blue bed level sensor to Marlin 2.0 .
Both pressing the Level Bed button on the display or using `G29` after `G28` in the G-code don't do anything.

`G28` Homing works fine, but doesn't put the nozzle at the center like it did on Marlin 1.1.x, instead it puts the sensor at the center of the build plate.
`G29` worked fine in my previous Marlin 1.1 config.

These are my config files:

* [Configuration.h](https://pastebin.com/kbRgPzM8)
* [Configuration\_adv.h](https://pastebin.com/HQiLLArE)

**Tags:** marlin, firmware, anet-a8, bed-leveling
> **Comments:**
> **username_1**: [Do you mean the ROKO SN04-N?](https://ae01.alicdn.com/kf/HTB1l5_PbcrrK1RjSspaq6AREXXaV/SN04-N-Naderingsschakelaar-Detectie-Afstand-Auto-Leveling-Positie-Sensor-Voor-Anet-A8-3D-Printer-Onderdelen.jpg)  
> **username_1**: Please read [this answer](/a/8154) (scroll to the bottom for an example for a back-right mounted sensor), your `Configuration_adv.h` file is incorrect (more specific, the probe area definition is incorrect). In version 2.x you do not define the bed size (absolute) for the sensor, you only specify the offsets (so relative) from the edge! You should be able to figure out what these values need to be using the example.  

---

## 1 answers

### Answer by username_1 on 2020-04-02. Score: 0 | Accepted answer

From the linked Configuration.h file the probe X, Y, Z probe offset is set by constant array:
#define NOZZLE_TO_PROBE_OFFSET { 75, -35 , 0 }

So, the sensor is mounted at the right-front (X+, Y- according to the Marlin configuration definition) when facing the printer.
This implies that the sensor is limited on the right and at the front.
The probing area used to be defined in Marlin 1.1.x in the Configuration.h file. However, Marlin 2.x requires edge offsets rather than absolute bed size constraints. From the Configuration_adv.h of linked file, the following probing limits are set:
#if PROBE_SELECTED && !IS_KINEMATIC
  #define MIN_PROBE_EDGE_LEFT (75 + MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_RIGHT (X_BED_SIZE  - MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_FRONT (MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_BACK (Y_BED_SIZE -35 - MIN_PROBE_EDGE)
#endif

This is incorrect, this is what you would do in Marlin 1.1.x. Note that this answer describes in detail how to set the bed probing limits. You need to specify the offset from the edge on each side, in schematics the probing area is defined as:

From your printer configuration, the probing limits should be set to:
#if PROBE_SELECTED && !IS_KINEMATIC
  #define MIN_PROBE_EDGE_LEFT (75 + MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_RIGHT (MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_FRONT (MIN_PROBE_EDGE)
  #define MIN_PROBE_EDGE_BACK (35 + MIN_PROBE_EDGE) ; Note that 35 is absolute(-35)!
#endif


---

