Inline function module for pulse width and frequency modulation, or pulse drive motor control, with pulse / direction excuse, 2 5 V or 24 V outputs