Motor Control with in and exit Speed