DaveE Posted June 1, 2018 Report Posted June 1, 2018 Good Morning I have a new project in which my customer wants the system to scan a barcode, connected either via serial or ethernet and then record the barcodes scanned. That bit is no issue, was going to use a data table and store all of the scans done, and use the last entry to give him a total. However he has just thrown a wrench in what I had planned as he wants the details on the screen too. Not only that he wants to show a totalized list of the barcodes scan with a subtotal for each barcode scanned during the day, and I am not sure how to created that on the PLC. And I will not know what those barcodes will be, could be one barcode, could be 10 different (they have 3000 different products, but fortunately not all running at once.) I will be using a V570 for this. Has anyone got any knowledge of doing this type of thing previously, or even if its possible? Thanks
MVP 2023 Flex727 Posted June 1, 2018 MVP 2023 Report Posted June 1, 2018 I haven't done anything like this before either, but I would imagine that you would do a data table lookup after each barcode scan, and if the barcode already exists in the DT, increment the value for the daily subtotal. If the barcode doesn't exist, then enter it in the first empty row.
MVP 2023 Joe Tauser Posted June 3, 2018 MVP 2023 Report Posted June 3, 2018 Scanning barcodes is easy enough, but this is one of those applications you'll have to build on the bench with the PLC and the barcode scanner in front of you. Flex has the proper approach, but first you'll need to get the barcode reader talking to the PLC. Then you'll have to build a screen with a bunch of Data Table read blocks to display all the data. Post your code if you get frustrated. Joe T.
DaveE Posted June 4, 2018 Author Report Posted June 4, 2018 Thanks guys I guess I will find out if Flex is a genius
MVP 2023 Flex727 Posted June 4, 2018 MVP 2023 Report Posted June 4, 2018 1 hour ago, DaveE said: I guess I will find out if Flex is a genius Jokes like this belong in "The Lounge" forum topic.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now