<p>Since your team is designing a printer, you'll have to do some basic calculations to figure out your x and y axis <strong>steps per millimeter</strong> and then set them in your firmware.</p>

<p>For a decent primer in the basic idea, <a href="https://www.youtube.com/watch?v=VIHgDiCCY0Y" rel="nofollow">this video</a> is a good start.  For another decent getting started summary check <a href="http://solidutopia.com/marlin-firmware-user-guide-basic/" rel="nofollow">this blog post</a></p>

<p>Also, since you're using Marlin, become very familiar with the Marlin Firmware and how to configure it.  <strong>The setting you want to change exists in the configuration.h file.</strong>  Documentation is included in the file, but you can find good information <a href="https://github.com/MarlinFirmware/Marlin/wiki/Marlin-Configuration" rel="nofollow">here</a> in the Marlin Configuration instructions within the Marlin Firmware Github repo.</p>

<p>I hope this helps!  :-)</p>

CC BY-SA 3.0
2016-10-19T01:53:33.283Z
Note that this answer is correct **IF** your issue is in the firmware configuration and not a mechanical problem that is causing you to loose steps or experience significant backlash in both the x and y.  I suspect that's not the case, but if you nail down your steps per mm setting and are still not getting the expected movement, be sure to spend some time to rule out mechanical issues as your root cause.  :-)
Chris Thompson
CC BY-SA 3.0
2016-10-19T01:49:35.803Z
2016-10-19T01:49:35.803Z
Chris Thompson
<p>I'm working on designing a 3d printer with a team. The team is using marlin open source software and I started half way into project trying to make sense of things. </p>

<p>Apparently there is an issue with the wheels moving the print head and it always moves a few mm short in the of the desired position. Can some one tell me which part of the marlin code interprets the G-code file and controls movement? I'm thinking of increasing the distance in the x and y axis to correct this (seemingly) minor problem.</p>

CC BY-SA 3.0
2016-10-18T07:05:47.567Z
What does "arc" in the title refer to? It seems like you have more of a mechanical problem, because no amount of software compensation is going to fix "a few mm" of backlash. Marlin has no support for backlash compensation, and adding it in is going to be complicated.
Tom van der Zanden
CC BY-SA 3.0
2016-10-18T10:34:54.760Z
Does it always cut off a certain distance, or does the distance vary? If you see a constant error rate per distance moved, it could be possible to adjust some stepper motor movement settings. For instance, if your motors always move 20% too short (20mm for a 100mm move, but only 10mm for a 50mm moved, etc...), you could increase the overall stepper motor movement by 20%.
Tormod Haugene
CC BY-SA 3.0
2016-10-18T17:40:55.580Z
@TomvanderZanden I mean the movement pattern
Jay
CC BY-SA 3.0
2016-10-18T17:43:29.493Z
@TormodHaugene it is always a fixed distance in both the x and y axis. I was wondering where in the code do I edit stepper motor movement
Jay
CC BY-SA 3.0
2016-10-19T02:01:09.970Z
I'd suggest you change your title to "Adjusting X and Y axis configuration settings in Marlin Firmware" or something similar to more accurately describe your question.  I figure you mentioned "arc" because you know you're translating rotational to linear movement, but my first impression from the title was that you were asking something about moving the print head in an arc.
Chris Thompson
<marlin><g-code>
Editing arc in Marlin for 3d printing
Jay
# Editing arc in Marlin for 3d printing

(Asked by: username_0 on 2016-10-17)

I'm working on designing a 3d printer with a team. The team is using marlin open source software and I started half way into project trying to make sense of things.

Apparently there is an issue with the wheels moving the print head and it always moves a few mm short in the of the desired position. Can some one tell me which part of the marlin code interprets the G-code file and controls movement? I'm thinking of increasing the distance in the x and y axis to correct this (seemingly) minor problem.

**Tags:** marlin, g-code

> **Comments:**
> **username_1**: What does "arc" in the title refer to? It seems like you have more of a mechanical problem, because no amount of software compensation is going to fix "a few mm" of backlash. Marlin has no support for backlash compensation, and adding it in is going to be complicated.  
> **username_2**: Does it always cut off a certain distance, or does the distance vary? If you see a constant error rate per distance moved, it could be possible to adjust some stepper motor movement settings. For instance, if your motors always move 20% too short (20mm for a 100mm move, but only 10mm for a 50mm moved, etc...), you could increase the overall stepper motor movement by 20%.  
> **username_0**: @username_1 I mean the movement pattern  
> **username_0**: @username_2 it is always a fixed distance in both the x and y axis. I was wondering where in the code do I edit stepper motor movement  
> **username_3**: I'd suggest you change your title to "Adjusting X and Y axis configuration settings in Marlin Firmware" or something similar to more accurately describe your question.  I figure you mentioned "arc" because you know you're translating rotational to linear movement, but my first impression from the title was that you were asking something about moving the print head in an arc.  

---

## 1 answers

### Answer by username_3 on 2016-10-19. Score: 1 | Accepted answer

Since your team is designing a printer, you'll have to do some basic calculations to figure out your x and y axis **steps per millimeter** and then set them in your firmware.

For a decent primer in the basic idea, [this video](https://www.youtube.com/watch?v=VIHgDiCCY0Y) is a good start. For another decent getting started summary check [this blog post](http://solidutopia.com/marlin-firmware-user-guide-basic/)

Also, since you're using Marlin, become very familiar with the Marlin Firmware and how to configure it. **The setting you want to change exists in the configuration.h file.** Documentation is included in the file, but you can find good information [here](https://github.com/MarlinFirmware/Marlin/wiki/Marlin-Configuration) in the Marlin Configuration instructions within the Marlin Firmware Github repo.

I hope this helps! :-)

> **Comments:**
> **username_3**: Note that this answer is correct **IF** your issue is in the firmware configuration and not a mechanical problem that is causing you to loose steps or experience significant backlash in both the x and y.  I suspect that's not the case, but if you nail down your steps per mm setting and are still not getting the expected movement, be sure to spend some time to rule out mechanical issues as your root cause.  :-)  

---

