# Must home axis first when starting print

**URL:** <https://klipper.discourse.group/t/must-home-axis-first-when-starting-print/10918>\
**Category:** General Discussion\
**Created:** [October 11, 2023, 1:21am UTC](https://klipper.discourse.group/t/must-home-axis-first-when-starting-print/10918 "2023-10-11T01:21:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktb1228](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@ktb1228](https://klipper.discourse.group/u/ktb1228)\
**Post date:** [October 11, 2023, 1:21am UTC](https://klipper.discourse.group/t/must-home-axis-first-when-starting-print/10918/1 "2023-10-11T01:21:51Z")

</div>

### Basic Information:

Printer Model: ender 3 v2  
 MCU / Printerboard: stock ender 3 v2 mainboard (v2.2 i believe)  
[klippy (1).log](https://klipper.discourse.group/uploads/short-url/zEbJOWu2FBK9XJDzq15LurOws9y.log) (713.7 KB)

I have been trying to get my start macro working, I have everything mostly up and running but keep getting this weird error: `Must home axis first: 0.000 0.000 50.000 [0.000]`  
I believe this issue is caused by trying to preform an auto bed leveling sequence before the printer has been homed. i have tried moving around the home command, homing the x and y axes multiple times but nothing has worked.

start macro:

```auto
[gcode_macro START_PRINT] 
gcode: 
      # Use absolute coordinates 
      G90 

      # Reset extruder 
      G92 E0

      # Heat the bed and wait
      #50 for pla
      #100 for abs
      M190 S50

      # Home the printer and level bed
      G28 
      G28 X Y
      G1 X0 Y0 Z0 F3000
      M84
      

     # Move to wait position 
     G1 X0 Y0 Z50 F4000.0  
     # Set and wait for nozzle to reach temperature 
     #215 for pla
     #240 for abs
     M109 S215

    # Move Z axis up 
    G1 Z2.0 F3000 
    # Move to start position 
    G1 X10.1 Y20 Z0.28 F5000.0 
    # Draw the first line
    G1 X10.1 Y200.0 Z0.28 F1500.0 E15 
    # Move to the side
    G1 X10.4 Y200.0 Z0.28 F5000.0 
    # Draw the second line 
    G1 X10.4 Y20 Z0.28 F1500.0 E30 
    # Reset extruder 
    G92 E0

```

---

<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:** [October 11, 2023, 5:52am UTC](https://klipper.discourse.group/t/must-home-axis-first-when-starting-print/10918/2 "2023-10-11T05:52:45Z")

</div>

> [@ktb1228](#):
>
> ```auto
> # Home the printer and level bed
> G28 
> G28 X Y
> G1 X0 Y0 Z0 F3000
> M84 # <------------
>       
> 
> ```

Of course: `M84` turns the motors off and the homing is gone.

[https://www.klipper3d.org/G-Codes.html](https://www.klipper3d.org/G-Codes.html)

---

<div class="post-metadata">

**Author:** ![ktb1228](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@ktb1228](https://klipper.discourse.group/u/ktb1228)\
**Post date:** [October 11, 2023, 11:25am UTC](https://klipper.discourse.group/t/must-home-axis-first-when-starting-print/10918/3 "2023-10-11T11:25:55Z")

</div>

Thank you for pointing that out, I somehow came to the conclusion that M84 would level the bed which now that i think about doesn’t make any sense

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [December 10, 2023, 11:26am UTC](https://klipper.discourse.group/t/must-home-axis-first-when-starting-print/10918/4 "2023-12-10T11:26:10Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
