How to set max velocity?

I guess this would suit your need It’s a simple closed-loop control.