Electronic section of cartoning machine