Motor - Count time - Change direction

Thank you Steve,
I didn't think about millis().
I will work on it and I'll be back
edgardo