Abstract: A position controller controls the direction and degrees of rotation of an electrical motor output shaft in response to a stored control program. The stored control program contains a plurality of profiles, each including a plurality of successively executed steps defining the operation sequence of the motor. Each step includes programmed instructions defining a predetermined amount of rotation of the motor output shaft and a predetermined event which must occur before the step is executed. In one embodiment, the controller selectively controls the speed of the motor in each step. The controller supplies a signal, programmed in each step, to a variable frequency A.C. drive which correspondingly varies the frequency of A.C. power supplied to the motor to vary the operating speed of the motor.