Added overcurrent error register to motor structure