Step motor used as measuring device and as drive motor