# Printing on the Same Line Height/Z-Axis Issues

**URL:** https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677
**Category:** General Discussion
**Created:** [February 15, 2023, 8:06am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677 "2023-02-15T08:06:53Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 15, 2023, 8:06am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/1 "2023-02-15T08:06:53Z")

</div>

### Basic Information:

Printer Model: `PrintrBot 1403`  
 MCU / Printerboard: `AR100/Recore`  
 `klippy.log` :  
[klippy.log](https://klipper.discourse.group/uploads/short-url/94jvzj9YhFndbHcdTLxwDQBiT05.log) (911.8 KB)

_Fill out above information and in all cases attach your_ `klippy.log` _file. Pasting your_ `printer.cfg` _is **not** needed_  
_**Be sure to check our [Knowledge Base](https://klipper.discourse.group/t/about-the-knowledge-base-category-table-of-contents/6228) and in particular [this](https://klipper.discourse.group/t/how-to-trouble-shoot/6326) and [this](https://klipper.discourse.group/t/how-to-ask-for-help/6327) post**_

### Describe your issue: `The print is only printing the base layers well.`

I keep printing w/ different calibration steps, PROBE\_CALIBRATE and HEATER\_CALIBRATE, yet my builds are starting to stop lifting and rising when printing.

I put in the Z-offset but this has not cured the issue so far.

See the photo for actual representation of ideas in the rising of the Z\_axis. Oh and I tried different rotation\_distance ideas b/c of me “updating” the lead screw.

 ![Behemoth_Acting_Up](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/d/d171925238668581065a9cd2889a6534c98fecc8.jpeg)

I can home now w/out issue. I can move the XYZ axes and I have not figured out what exact issues could cause the print to keep printing on the same Z\_Axis level.

Seth

---

<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: [February 15, 2023, 8:57am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/2 "2023-02-15T08:57:53Z")

</div>

Most likely one of two potential reason:

- Your `rotation_distance` is wrong (this is not something to “try”. There is only one truth). See [Config Z lead screw 8mm diameter, 1 start, 2mm pitch - #2 by Sineos](https://klipper.discourse.group/t/config-z-lead-screw-8mm-diameter-1-start-2mm-pitch/1517/2)
- Your z-axis has mechanical issues like binding etc.

---

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 15, 2023, 9:07am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/3 "2023-02-15T09:07:54Z")

</div>

@Sineos ,

Okay…I will look over the link you have left.

Seth

---

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 15, 2023, 10:42pm UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/4 "2023-02-15T22:42:45Z")

</div>

Hello @Sineos or Anyone Else w/ Sound Advice Here,

@Sineos …I read over the link you posted. It is similar to the config portions in the docs. to Klipper if not exact. Anyway, nothing has helped so far.

8mm diameter, w/ 1 start, and 2mm pitch. I put in the value and while trying other values for this cube print to start off, I noticed that I could also change the microsteps once the rotation\_distance has been configured.

Anyway, I know it needs to be exact but I did try other values outside of the exact value.

I tried 2 to 16 in increments of 2. Nothing is making the Z-Axis rise…

I altered the height of the gantry for the Z-Axis too. I lowered it. I finally got it to where it would print flat enough on the build surface.

I set up the PROBE, PROBE\_CALIBRATE, and performed the offset values also for XYZ.

I had this issue before w/ this specific PrintrBot 1403 w/ a 7mm and/or 1/4" lead screw.

This fellow showed me to use PID values to handle such a lead screw. I cannot reconfigure his steps, i.e. computer crash since then and lost materials (notes and paperwork).

Is there any other ideas you and anyone else has currently to handle lead screws on the 1403?

Seth

P.S. I will keep trying, i.e. as I just put a larger bed on this printer to finish off some prints that I wanted to make. Anyway, thank you so far for the advice and knowledge. I had 1.58 for the lead screw of 7mm and/or 1/4" beforehand.

This lead screw is 8mm or roughly 5/16" in diameter w/ an arbitrary value for the start and pitch.

I type arbitrary there b/c my current tools are not equipped to handle the measurements of start and pitch. I have a couple tools to use but all have failed, i.e. calipers and fine tooth mm ruler.

Anyway, thank you for any advice you can give.

---

<div class="post-metadata">

### Author: ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)
#### Post date: [February 16, 2023, 9:28am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/5 "2023-02-16T09:28:29Z")

</div>

Don’t mix up metric and imperial lead screws.  
Although they have almost the same diameter, they have different pitches.  
If you are not sure, you can measure the pitch.

> [@silver2row](#):
>
> I tried 2 to 16 in increments of 2. Nothing is making the Z-Axis rise…

You only can set the microsteps to 1,2,4,8 and 16. And for the TMC 2209 further on to 32, 64, 128 and 256).  
Keep in mind: The higher the amount of microsteps, the less torque you have. So 16 is usually the way to go.

> [@silver2row](#):
>
> This fellow showed me to use PID values to handle such a lead screw.

This makes me wonder. PID in 3D printers is used for the control of heated elements (hotends, beds) and do not makes sense with lead screws.

```auto
[tmc2209 stepper_z]
uart_pin = ar100:PB1
tx_pin = ar100:PB0
uart_address = 2
run_current = 0.750
hold_current = 0.500 #<---
stealthchop_threshold = 250 #<---

```

You may increase the `hold_current` of `stepper_z`.  
You also may set `stealthchop_threshold` to 999999

---

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 16, 2023, 11:46pm UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/6 "2023-02-16T23:46:12Z")

</div>

Okay. I will test these ideas. Thank you for not giving up on me here.

Seth

P.S. You are most likely right about the PID/Lead Screw options. I may have taken some poor notes years ago. Forgive me…

Also and okay about the metric vs. standard approach. I finally found the “paperwork” on this lead screw. It is an 8 mm diameter leadscrew. It was an older purchase from '18 and the company no longer sells it. Anyway, thank you for your ideas. Off to test!

---

<div class="post-metadata">

### Author: ![mykepredko](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/mykepredko/32/2085_2.png) [@mykepredko](https://klipper.discourse.group/u/mykepredko)
#### Post date: [February 17, 2023, 2:56am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/7 "2023-02-17T02:56:59Z")

</div>

> [@EddyMI3D](#):
>
> You only can set the microsteps to 1,2,4,8 and 16. And for the TMC 2209 further on to 32, 64, 128 and 256).  
> Keep in mind: The higher the amount of microsteps, the less torque you have. So 16 is usually the way to go.

Slight correction - you don’t have less torque over a step, you have less of a difference in torque between microsteps which results in poorer positioning of each microstep. There will be cases where there is no turning of the motor to an unexpectedly big jump as the torque builds up over several microsteps and reaches a point where the friction of the system is overcome.

---

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 17, 2023, 4:03am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/8 "2023-02-17T04:03:52Z")

</div>

Hello @EddyMI3D ,

What does the 999999 value for `stealthchop_threshold` entail under the Klipper guidelines?

I mean…does it handle tmc2209 devices specific to some value? All I know is that I tried 999999 and the z-axis is no longer operational.

Seth

P.S. I will try to get back what exactly has happened but that stealchop\_threshold: 999999 command created an instance of up-down movements that are too fast for a leadscrew.

---

<div class="post-metadata">

### Author: ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)
#### Post date: [February 17, 2023, 7:03am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/9 "2023-02-17T07:03:08Z")

</div>

> [@silver2row](#):
>
> What does the 999999 value for `stealthchop_threshold` entail under the Klipper guidelines?
> 
> I mean…does it handle tmc2209 devices specific to some value? All I know is that I tried 999999 and the z-axis is no longer operational.

It should turn stealth shopping always on. One never knows what velocity the slicer produces, so it it is quite high.  
If it is not working any more, it’s a bit strange.

---

<div class="post-metadata">

### Author: ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)
#### Post date: [February 17, 2023, 7:37am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/10 "2023-02-17T07:37:45Z")

</div>

For moving torque: Yes.  
But I more had the holding torque in mind:

[https://www.machinedesign.com/archive/article/21812154/microstepping-myths](https://www.machinedesign.com/archive/article/21812154/microstepping-myths)

---

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 17, 2023, 8:52am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/11 "2023-02-17T08:52:34Z")

</div>

I tried 0, 100, 250, 500, and 999999. None are quite right so far…

My print is very smashed so far. I have altered the klipper config files many times over and I have not come across the correct one just yet.

Seth

P.S. I used to use this config for this printer and it worked, how? Who knows? I surely do not.

I just added an upgraded, 8mm diameter leadscrew and a new bed. The only real big difference here is that the x-axis can handle 230mm instead of 152mm. Anyway, thank you all for trying w/ me.

---

<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: [February 17, 2023, 9:06am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/12 "2023-02-17T09:06:44Z")

</div>

Proper movement of you z-axis should be Independent of using stealth chop or not.

```auto
[printer]
kinematics = cartesian
max_velocity = 250
max_accel = 1500
max_z_velocity = 5
max_z_accel = 50

```

Important for the leadscrew Z is a sensible `max_z_velocity` and yours is good (usually between 5 and max 20 / lower is better).

You really need to figure out the proper `rotation_distance` for your lead-screw. Usually when you buy one it should be accompanied with the respective technical data like, Leads, Starts, Pitch. If not, maybe contact the seller.

Once that setting is secured and you still have issues then most likely you have some mechanical issues like binding etc.

> [@silver2row](#):
>
> I tried 0, 100, 250, 500, and 999999. None are quite right so far…

For the z-axis, I’d recommend to stick with spread cycle. This means set `stealthchop_threshold: 0`

---

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 17, 2023, 9:20am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/13 "2023-02-17T09:20:08Z")

</div>

Okay @Sineos ,

No issue. I will try `0` instead this time.

Seth

P.S. The leadscrew was purchased in '18 and they no longer mfg. it. I will try another one w/ good paperwork one day.

---

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 17, 2023, 10:06am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/14 "2023-02-17T10:06:28Z")

</div>

Hello @Sineos ,

Also…and this could be it. I have a `flimsy` coupler for the attachment from the motor to the T8 leadscrew. I will invest in a rigid coupler.

Seth

---

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 19, 2023, 2:46am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/15 "2023-02-19T02:46:50Z")

</div>

@Sineos ,

Seth here. I tracked down some oddities, more starts, in the leadscrew in question that has given me issues on calculating starts and the pitch. Anyway, please view the photo. I was using the leadscrew on the left of the photo. I am going to rebuild w/ the leadscrew on the right:

 ![LeadScrewsd](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/5/5b05a25c3c7f2cd016d0e705d26ef1170dc8c493.jpeg)

Seth

P.S. Thank you guys for putting up w/ me so far.

---

<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: [February 19, 2023, 9:04am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/16 "2023-02-19T09:04:47Z")

</div>

Just from such pictures, I cannot tell what kind of screw this is

| **Thread** | **rotation\_distance** |
| --- | --- |
| M8 | 2 |
| M8 | 1.25 |
| 5/16 | 1.41111 |
| ACME TR8 | 2 |
| ACME TR4 | 4 |
| ACME TR2 | 8 |

Table above are the most common lead-screws. I suggest following procedure:

1. Measure the distance between your X gantry and the top of your bed
2. Command the gantry to move up 20 mm
3. Measure again and do `<second measurement> - <first measurement>`
4. Calculate

```auto
rotation_distance = <current_rot_dis> * <result No. 3> / <20>

```

5. Compare to the table above and see if you come close

---

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 19, 2023, 9:58am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/17 "2023-02-19T09:58:08Z")

</div>

Hello,

It seems that for rotation\_distance, 2 or 4 work well but both are not working on the leadscrew w/ more starts.

When I say, “not working,” I am describing the print once the homing and all subsequent calibrations have taken place.

The `flexible coupler` is no more and I am using the M8 leadscrew w/ the many starts now.

When the print starts…

1. The machine homes
2. The homing is mm away from the bed
3. Then…the print starts
4. Then, it digs into the bed

It is like it is not understanding where and at what distance it homed.

Could this be due to `step` or the `z_offset` or is this due to something else entirely?

Seth

P.S. Please see the update below:

# Update

```auto
PROBE_CALIBRATE
TESTZ Z=-4
ACCEPT
SAVE_CONFIG

```

Done. Sorry to harass you guys…

---

<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: [February 19, 2023, 11:19am UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/18 "2023-02-19T11:19:35Z")

</div>

> [@silver2row](#):
>
> It seems that for rotation\_distance, 2 or 4 work well

Oh come on, @silver2row. At the danger of repeating myself: There is no OR. Between these two setting is a factor x2 in movement distance. Before you have not validated your correct `rotation_distance` it makes no sense to continue with anything else.

---

<div class="post-metadata">

### Author: ![silver2row](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silver2row/32/1462_2.png) [@silver2row](https://klipper.discourse.group/u/silver2row)
#### Post date: [February 19, 2023, 12:08pm UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/19 "2023-02-19T12:08:21Z")

</div>

Yes sir. No issue.

I will attempt this non-error prone ideas I keep up w/ currently. Thank you for reiterating the point.

I have no paperwork on these or this specific one that I am using. Is there a particular way to measure?

I think it is an oddball T8 or 8mm of some kind. I have no way to tell so far.

Seth

P.S. Anyway, I will attempt to read up more on measurements and how to measure 8mm/T8 screws. Anyway, check out my Behemoth so far!

[https://vimeo.com/800261181](https://vimeo.com/800261181)

# Update

W/ the leadscrew on the left, do you think it is ACME or trapezoidal? I know it is not high helix.

I only know the co, when it was sold to me, said leadscrew at 8mm.

# Another Update

```auto
8mm diameter
5 starts
1.6mm pitch

```

Send guidance sir…please.

---

<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: [February 19, 2023, 1:42pm UTC](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677/20 "2023-02-19T13:42:59Z")

</div>

```auto
8mm diameter
5 starts
1.6mm pitch

```

[/quote]

Would equal a `rotation_distance: 8`

[Next page](https://klipper.discourse.group/t/printing-on-the-same-line-height-z-axis-issues/6677.md?page=2)
