Request for a motor script to turn X revolutions one way and then the reverse

As it says on the tin...

I want a motor to turn X amount of revolutions clockwise and then the Y in counter clockwise.

Id like to be able to enter in the X and Y variables myself and also a speed variable if possible?

This would go on an arduino uno R3 - stepper servo motor - servo shield

My project is to hold two ends of fine wires to move back and forth eg 100 revs left... then 80 revs right... so that the older wire will move off the spindle.

Thank you in advanced.

Lee

Here are a couple threads to get you started.

http://forum.arduino.cc/index.php?topic=284828.0

http://forum.arduino.cc/index.php?topic=277692.0

Something like this pseudo code

set direction
for (int n = 0; n < 123; n++) {
    move one step
}
change direction
for (int n = 0; n < 78; n++) {
    move one step
}

...R
Stepper Motor Basics
Simple Stepper Code