DC motor with 3(or more) programmed limits

I was tested before I publish believe to me.

It was count properly, and the PWM was also working.

I think that we cant expect more from this sketch.

Any idea for continue?