Switch speed reference from speed to position loop of both spindles to synchronize