DSP-Based Electromechanical Motion Control