
adccommunitymod (AutomationDirect) asked a question.
Created Date: March 10,2016
Created By: cheme
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
I'm working on an application where we will be scanning and logging bar codes of raw materials used in our process. There is one issue im not sure how to resolve. The bar code contains two pieces of data which is the Lot number and raw material number. There are in the bar code as xxxxx_xxxxx with the first set of numbers being the lot number and the numbers after the underscore being the raw material number. How can I separate the two and fill into different data locations? This is easily accomplished in excel, but I'm not sure how to do so in the P3000 controller. I can also connect the bar code reader the a C-More panel if this is easier to do there? Thanks!
Created Date: March 10,2016
Created by: bcarlton
The P300 has a number of string manipulation instructions. The most interesting for your application is the 'Unpack String ' instruction. Read up on it in the help file.
Created Date: March 10,2016
Created by: cheme
I'm working on an application where we will be scanning and logging bar codes of raw materials used in our process. There is one issue im not sure how to resolve. The bar code contains two pieces of data which is the Lot number and raw material number. There are in the bar code as xxxxx_xxxxx with the first set of numbers being the lot number and the numbers after the underscore being the raw material number. How can I separate the two and fill into different data locations? This is easily accomplished in excel, but I'm not sure how to do so in the P3000 controller. I can also connect the bar code reader the a C-More panel if this is easier to do there?
Thanks!