Shawn Cassidy
Member
Hi,
I'm working on an Omron CPM2C plc that is communicating with a Microscan MS-3 laser barcode scanner. I need to read a label with two different barcodes on it. One barcode is the LOT the other is the product code. I'm able to read both barcodes with the scanner and send the string to the plc serially. The problem is the order in which the barcodes are sent to the plc. Sometimes the string will be sent with the first barcode at the beginning of the string and sometimes it is sent at the end. In order to verify each barcode separately I'll need to either put the string in the proper order or move each string into it's own register then compare each on it's own. I'm able to send the string from the barcode with a comma between both barcode strings which will help in identifying the start and end of each barcode string. The length of the barcodes may change in the future. The existing Omron plc that I'm using has very limited functions, but I'd rather not replace it at the moment.
Any ideas would be much appreciated.
I'm working on an Omron CPM2C plc that is communicating with a Microscan MS-3 laser barcode scanner. I need to read a label with two different barcodes on it. One barcode is the LOT the other is the product code. I'm able to read both barcodes with the scanner and send the string to the plc serially. The problem is the order in which the barcodes are sent to the plc. Sometimes the string will be sent with the first barcode at the beginning of the string and sometimes it is sent at the end. In order to verify each barcode separately I'll need to either put the string in the proper order or move each string into it's own register then compare each on it's own. I'm able to send the string from the barcode with a comma between both barcode strings which will help in identifying the start and end of each barcode string. The length of the barcodes may change in the future. The existing Omron plc that I'm using has very limited functions, but I'd rather not replace it at the moment.
Any ideas would be much appreciated.