X-Axis Movement Erratic

You might want to invert the motor and encoder direction to get your homing position on the right end, as this was discussed in this thread: Problems with farm bot's coordinate systems

Maybe I’ve got your intention wrong, but this sounds pretty much the same.

Good luck farming! :seedling: