plc ladder diagram for packing machine