Omron barcode ascii string problem

Shawn Cassidy

Member
Join Date
Mar 2004
Location
Montreal
Posts
98
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.
 
Very difficult project!

The Omron CPM series is very limited when it comes to ascii handling instructions.

Take a look at the SRCH instruction (Data Search). With a little work, you may be able to use this instruction to locate the comma, then you could MOV or XFER the data to split the strings.

Here is a link to the programming manual

W353 Manual at Mr.PLC.com

The newer CP1L/CP1H series processors do have full text/ascii handling instructions. Depending on how much you need to do with the strings, it might be less expensive to change processors. Just depends on what your time is worth.

Hope this will help
 
I'm installing several other barcode stations with the new Omron CP1L plc's. They do a much better job when it comes to handling strings data. This one unfortunately, has to remain for the moment...

I'll look at that instruction.
Thanks
 

Similar Topics

Brand: motorola Model number: LI 4278 Cradle model number: STB4278 Rs232 cable: CBA-R01-S07PBR To communicate with Plc model: omron CP1E -N30-DR...
Replies
2
Views
2,127
Hey all. Have a Omron NB5Q HMI, looking to integrate a handheld RS232 barcode scanner to input codes. All well and good for the numeric input...
Replies
1
Views
2,302
Does anyone have an example program of the programming between a CJ series Omron and a barcode reader that uses Ethernet I/P? Anything can help...
Replies
1
Views
1,736
Anyone worked with this combination before? I bought the cable for SSI communication and I guess should have gotten the trigger cable instead...
Replies
0
Views
2,638
Hi, Has anyone connected a barcode reader directly into port B of this HMI (OMRON NS8). I have set this up in the comm settings for port B as it...
Replies
1
Views
6,645
Back
Top Bottom