Compare characters within a string to a look up table

beethoven_ii

Lifetime Supporting Member
Join Date
Nov 2006
Location
Central England
Posts
409
I am working on a Step 7 project where I have to read some barcodes and store the full code as a string which I'm fine with. I also need to identify the colour of my product from 2 numbers that are within the code. The numbers will be in the same place within the string every time and so I'm looking for some help in how best to compare the characters (e.g. '06' or '13' etc) to a look up table to identify the colour.

Any help or tips on the best way to do this in ladder would be greatly appreciated.

Barry
 
Actually what seemed like a daunting task is much easier than I anticipated. I'm pretty sure I've figured this out already by simply moving the string values into DINT's and comparing these values for a match. Go figure!

Barry
 

Similar Topics

Help please. Im new to Omron and have a machine down. I have a compare = for barcode label scan. I've attached two pics. On the Mnemonics you can...
Replies
4
Views
624
Hi everyone! Accidentally closed it and it wont appear again. Checked and unchecked the option and seem to make no difference. Running v7.10.00...
Replies
16
Views
1,914
I'm working on an array that contains a UDT of 5 Items Array[4] DataType[0] - Part 1 - Part 2 - Part 3 - Part 4...
Replies
1
Views
843
Hi. I have 2 files where I would like to see the ladder logic differences (similar to the Rockwell compare function). I am using TISoft Siemens...
Replies
1
Views
1,266
Hello experts, I am just starting with AB programing, I have a questions regarding a compare done in an old RSlogix500 and causing me issues when...
Replies
5
Views
1,941
Back
Top Bottom