Hello,
I have a little experience with Siemens programming and am now starting a larger project. I am writing a program that will accept a barcode scan a part and its assemblies and will be stored in a datablock. Information that will be taken in is the Part #, Model #, Assembly #, test pass, and time stamp.
These parts will go through 3 small stations and then be scanned at the last station. Parts will not always be in sequence and the order will drastically change from station 1 to station 3. Then in station 3 the part will be scanned and the datablock will have to be called to look up the serial number and confirm if it passed all test.
I have experience creating the blocks and will create a separate datablock for each set of data information. I do not have much experience linking them or searching the data block at station 3 to match the serial codes and look up if it passed or not. I was wondering has any tips or examples to help me get started in the right direction.
Should I create a separate datablock for each parameter and then create a master with the parameters all linked to the serial code? (The test will be done at separate stations so the tank will be scanned at each station and a new parameter added).
What is the best approach to look for the scanned part in the data block. Could I create a pointer that gets incremented comparing each serial number stored in the datablock to the scanned part at the station?
Any help would be greatly appreciated! Thanks!
I have a little experience with Siemens programming and am now starting a larger project. I am writing a program that will accept a barcode scan a part and its assemblies and will be stored in a datablock. Information that will be taken in is the Part #, Model #, Assembly #, test pass, and time stamp.
These parts will go through 3 small stations and then be scanned at the last station. Parts will not always be in sequence and the order will drastically change from station 1 to station 3. Then in station 3 the part will be scanned and the datablock will have to be called to look up the serial number and confirm if it passed all test.
I have experience creating the blocks and will create a separate datablock for each set of data information. I do not have much experience linking them or searching the data block at station 3 to match the serial codes and look up if it passed or not. I was wondering has any tips or examples to help me get started in the right direction.
Should I create a separate datablock for each parameter and then create a master with the parameters all linked to the serial code? (The test will be done at separate stations so the tank will be scanned at each station and a new parameter added).
What is the best approach to look for the scanned part in the data block. Could I create a pointer that gets incremented comparing each serial number stored in the datablock to the scanned part at the station?
Any help would be greatly appreciated! Thanks!