Designing packaging machines with PC-based control