HELP PLEASE! Stepper motor and arduino

On the fly would mean as its moving, i turn encoder, and parameter changes as its working