Servo-driven carton erecting machine