tracking
I realize there is a lot involved in this project, but here are a few hints.
Include the store assignment as the last two digits in the barcode, then strip the rest of the digits off. Use that to compare to a lane (store) assignment. If compare equal then activate diverter when product reaches the divert point. The divert point can be determined with a pulse encoder activating a counter and using a value equal to the distance. I know that there is a whole lot more than this, such as bit shift instructions and counters to keep up with many packages in process at the same time. For this process, the barcode labels were printed and assigned at the beginning.
The data flowed something like this. The barcode was scanned, the scanner was attached to an ASCII to DF1 interface (AB).The ASCII was retrieved by the SLC500 PLC, there the barcode was stripped out as outlined above. From there, a PC was attached to another port of the ASCII interface. They used a simple Visual Basic program to transfer the complete barcode data into a MS ACCESS database. The ACCESS database was then read with ORACLE software to get the info to the AS400 mainframe.
I hope this will give you at least a little help.
Sid