Limit Position (Max Number of Turns)

There is a way to limit the maximum number of turns the motor can make? The same way there is a vel_limit why there is no pos_limit (or at least i cant find it) ?

Thanks,

I think a position limit doesn’t make much sense. What are you trying to accomplish? Are you using position or velocity control?

I´m controlling the position of a leadscrew with a enstop in one side. So the limit on the other side is not define. If you put a position over the limit you hit the edge with the nut. I want to have a position limit so if a calculation error or a human error insert a value over the maximum position the leadscrew stop before hit the edge

So why don’t you do a clamp before you send the position to the odrive?