Restarting location constraint

I need to make a mesh to return to its starting position when it reaches a certain location in one axis. It is a cyclic animation in a non-cyclic path. Is it possible? Thank you.

Ok. Maybe I did not express myself clearly. Anyway, I already found out how. I used the cycle modifier for the curve and voila.