I actually need to move the end of the chain a few inches closer to the motor (I run out of chain in the bottom corner)
you have the chain going different ways around the sprocket in your two examples, you need it in the direction of the first, but move the end of the chain up to the top of the beam rather than the bottom of the beam.