# Unknown command:"TESTZ"

**URL:** <https://klipper.discourse.group/t/unknown-command-testz/8508>\
**Category:** General Discussion\
**Created:** [May 20, 2023, 12:47am UTC](https://klipper.discourse.group/t/unknown-command-testz/8508 "2023-05-20T00:47:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 12:47am UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/1 "2023-05-20T00:47:32Z")

</div>

### Basic Information:

Printer Model: tronxy x5sa  
 MCU / Printerboard:manta m8p  
 [klippy (4).log](https://klipper.discourse.group/uploads/short-url/rKitLg3s8JBpjwZN829CHcial4E.log) (366.5 KB)

### Describe your issue: ok me again. I installed a bl touch clone “3d touch” I got the printer to home the command BLTOUCH\_DEBUG COMMAND=pin\_down/up work but it still registers as open when up. I did not understand where

“pin\_up\_reports\_not\_triggered” needs to go in the config.  
when I try to set the z probe offset with TEST Z= \* I get Unknown command:“TESTZ”  
the “MANUAL\_PROBE” command works but when I click accept and rehome it is not saved

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 1:00am UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/2 "2023-05-20T01:00:19Z")

</div>

when I try to set the z offset in the dashboard I get"SAVE\_CONFIG section ‘bltouch’ option ‘z\_offset’ conflicts with included value"

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [May 20, 2023, 5:47am UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/3 "2023-05-20T05:47:32Z")

</div>

> [@SAVE\_CONFIG section 'bltouch' option 'z\_offset' conflicts with included value](https://klipper.discourse.group/t/save-config-section-bltouch-option-z-offset-conflicts-with-included-value/6640/1):
>
> SAVE\_CONFIG section ‘bltouch’ option ‘z\_offset’ conflicts with included value SAVE\_CONFIG section ‘extruder’ option ‘pid\_Kp’ conflicts with included value Background The SAVE\_CONFIG command updates various aspects of the printer.cfg. The relevant settings and setting sections to be updated depend on the type of tuning that is performed. Possible commands include but are not limited to: PROBE\_CALIBRATE PID\_CALIBRATE PROBE\_EDDY\_CURRENT\_CALIBRATE DELTA\_CALIBRATE and others Updating these setting…

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 2:32pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/4 "2023-05-20T14:32:07Z")

</div>

So how do I correct this. If I try to manually change the z offset in the config I get an error message that it is not valid. It doesn’t recognize the testz command.

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 3:10pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/5 "2023-05-20T15:10:45Z")

</div>

I  
[klippy (5).log](https://klipper.discourse.group/uploads/short-url/d9KTtsTtCjSSW8TZnelR5jDQZiH.log) (1.1 MB)  
get this Option ‘z\_offset’ in section ‘bltouch’ must have minimum of 0.0

---

<div class="post-metadata">

**Author:** ![jakep\_82](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jakep\_82](https://klipper.discourse.group/u/jakep_82)\
**Post date:** [May 20, 2023, 5:04pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/6 "2023-05-20T17:04:40Z")

</div>

TEST\_Z only works when running a PROBE\_CALIBRATE. This is all explained in the documentation.

[https://www.klipper3d.org/Probe\_Calibrate.html#calibrating-probe-z-offset](https://www.klipper3d.org/Probe_Calibrate.html#calibrating-probe-z-offset)

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 5:43pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/7 "2023-05-20T17:43:40Z")

</div>

when I use PROBE\_CALIBRATE, the manual probe window pops up and does nothing. the manual probe doesn’t respond.

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 5:48pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/8 "2023-05-20T17:48:41Z")

</div>

it reads ??? \>\>\> 4.994 \<\<\< ???

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 5:54pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/9 "2023-05-20T17:54:53Z")

</div>

now ??? → 5.019 ← ???

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 6:06pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/10 "2023-05-20T18:06:38Z")

</div>

if I don’t move the z down and run PROBE\_CALIBRATE I get “BLTouch failed to deploy Failed to verify BLTouch probe is raised; retrying.”  
If I do move it I get the manual probe ???  
5.069  
???

---

<div class="post-metadata">

**Author:** ![jakep\_82](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jakep\_82](https://klipper.discourse.group/u/jakep_82)\
**Post date:** [May 20, 2023, 7:31pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/11 "2023-05-20T19:31:20Z")

</div>

You really need to read the documentation and spend some time to understand it. When you run `PROBE_CALIBRATE` it will show you the current height the printer believes the nozzle is at as you’ve noted. You then use `TESTZ Z=-0.1` to lower the nozzle 0.1mm. You need to lower the nozzle until it just touches a piece of paper on the bed. You then type `ACCEPT` followed by `SAVE_CONFIG`. This is the correct procedure for calibrating z\_offset. I also see you don’t have X or Y offsets which are mandatory to get good mesh values. Finding these values is also explained in the documentation.

If you get an error about included values it’s because you have the bltouch in an include file which is not valid. Sineos already linked to the knowledge base with this info.

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 7:57pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/12 "2023-05-20T19:57:55Z")

</div>

![image](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/0/00875b918b480dbf775b7f2103a7b000d9e98f63.png)

I did read it and what I got does not match what the doc said would happen.

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 8:04pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/13 "2023-05-20T20:04:40Z")

</div>

![image](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/b/bfa134c45b6767a4004a8782f568b6c2783ff347.png)

---

<div class="post-metadata">

**Author:** ![jakep\_82](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jakep\_82](https://klipper.discourse.group/u/jakep_82)\
**Post date:** [May 20, 2023, 8:07pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/14 "2023-05-20T20:07:44Z")

</div>

I can’t offer any more help. You need to fix your config.

---

<div class="post-metadata">

**Author:** ![jakep\_82](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jakep\_82](https://klipper.discourse.group/u/jakep_82)\
**Post date:** [May 20, 2023, 8:14pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/15 "2023-05-20T20:14:55Z")

</div>

For reference, this is just a graphical version of the TESTZ command. Mainsail is simply providing buttons instead of making you type TESTZ. The process is the same as detailed in the documentation. None of this matters though because you have your bltouch in an included file which is not valid.

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 8:21pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/16 "2023-05-20T20:21:30Z")

</div>

literally my 4th day of using klipper what do you mean by " bltouch in an included file which is not valid." what would a valid one look like?  
[klippy (6).log](https://klipper.discourse.group/uploads/short-url/sCUrT1HKtjJ3kUAJiyK3Su1mLZ8.log) (1.6 MB)

---

<div class="post-metadata">

**Author:** ![jakep\_82](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jakep\_82](https://klipper.discourse.group/u/jakep_82)\
**Post date:** [May 20, 2023, 8:23pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/17 "2023-05-20T20:23:12Z")

</div>

In your config, you have a line that says:

`[include filename.cfg]`

Whatever that file is contains your bltouch information. That is not the correct way to add a bltouch for the reason you’re experiencing here. Post your printer.cfg and I will fix it for you.

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 8:25pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/18 "2023-05-20T20:25:39Z")

</div>

[config-202346-13253.zip](https://klipper.discourse.group/uploads/short-url/72Y2DyyPtU0M1q6BEKCnjLT70Bw.zip) (2.5 KB)  
thank you

---

<div class="post-metadata">

**Author:** ![jakep\_82](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jakep\_82](https://klipper.discourse.group/u/jakep_82)\
**Post date:** [May 20, 2023, 8:28pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/19 "2023-05-20T20:28:52Z")

</div>

Do you see in your printer.cfg file that all it has are 2 included files? This is not correct. You need to delete printer.cfg and rename generic-bigtreetech-manta-m8p-V1\_0.cfg to printer.cfg. Then at the top of that new printer.cfg file add:

`[include mainsail.cfg]`

---

<div class="post-metadata">

**Author:** ![EvanGel](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@EvanGel](https://klipper.discourse.group/u/EvanGel)\
**Post date:** [May 20, 2023, 9:26pm UTC](https://klipper.discourse.group/t/unknown-command-testz/8508/20 "2023-05-20T21:26:38Z")

</div>

Thank you that solved this issue. Now I have others. will post on a new thread.

[Next page](https://klipper.discourse.group/t/unknown-command-testz/8508.md?page=2)
