DC motor with 3(or more) programmed limits