# Explanation of the math for moving the sled?

**URL:** <https://forums.maslowcnc.com/t/explanation-of-the-math-for-moving-the-sled/2183>\
**Category:** Software\
**Created:** [February 3, 2018, 6:05pm UTC](https://forums.maslowcnc.com/t/explanation-of-the-math-for-moving-the-sled/2183 "2018-02-03T18:05:02Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![rjon17469](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@rjon17469](https://forums.maslowcnc.com/u/rjon17469)\
**Post date:** [February 3, 2018, 8:25pm UTC](https://forums.maslowcnc.com/t/explanation-of-the-math-for-moving-the-sled/2183/9 "2018-02-03T20:25:25Z")

</div>

> [@dlang](#):
>
> you need to account for the fact that the chain leaves the sprocket at
> 
> some horizontal and vertical distance away from the origin

This is accomplished by the equations that @Joshua was asking about, where the straight chain length is calculated from the motor distance and sprocket radius. I found it was cleaner to accomplish it this way than to try to translate the motor position into a constantly moving point on the sprockets.

The chain angle is calculated based on the exit point from the sprocket, which is why the chain angle equations are different for the chain on top versus the chain on bottom configurations.

---

_[View the full topic](https://forums.maslowcnc.com/t/explanation-of-the-math-for-moving-the-sled/2183)._
