Stepper motor and variables not working together

That is not a good test. Use the same value in the variable that you used in the fixed value test!!!!