Delay-based commutation option and a terminal cmd to measure motor parameters