Gordo777 said:
The conveyor is a point-to-point type.
In this case you don't need to deal with recirculating the bags. This makes the program a little easier.
The bags will automatically be dropped into washers.
Good! No manual intervention once the bag is on its way.
Yes the 3 load points are up stream of washers.
Here's one option: Find an outfit which produces RFID tags and readers and affix a tag, numbered 1 through 40 to each bag. IMHO, a marking device which stays with the bag and is impervious to water and chemicals would be a good thing.
The operator enters the three pieces of information: tag number; destination; and wash type, and this is forwarded to the PLC.
Since all incoming bags must pass one point on the conveyor, mount a reader somewhere before the first dropoff point. When a bag with a tag passes the reader, drop/inject it, the tag number, into the (word wide) shift register and start tracking it. If no tag, inject zeroes. Somewhere, X number of pulses downstream, choose a shift register stage near the washer as the dropoff point. Whenever this stage detects a number greater than zero, get the tag number and use it as an index to lookup the destination for that tag. When the destination from the lookup matches the one assigned for that stage, the actuator drops the bag into the washer (assuming the washer is available).
Keep a file parallel with the 1-40 bag destination file to store the wash cycle type. That way, when a bag is dropped, the tag number will also point to the correct wash type for the tag in question so it can easily be retrieved and presented to the washer.
There 'ya go. All 'ya gotta do is...