Data Storing

outlaw9801

Member
Join Date
Jun 2014
Location
minersville
Posts
22
I have a system that run quite a bit off different products. Each product has a job number tied to it and i want to be able to store the job numbers of products that had issues when they run. I would like to be able to store as many as possible but would like to do it without creating a ton of code. We have differnt checks on the items that tell us if it is good or not. So basically if i see a high count of issues i want to store the string that has the job number in it. Is there a way to do this without having to create alot of code? I have never had to do something quite like this. I am using logix 5000.
 
I'm sure others will chime up as I'm not an expert in doing this myself, but i would think you could make a string array and then when your count of bad parts is high, you would move the current string into the array string and index the array string by one. this would set the next string array register to accept the next bad part #. I believe if you did a 2 dimensional array you could also store the # of bad parts to associate with the bad part string #.
 
The Copy Instruction would work. Make your STRINGARRAY[LENGHT+1] then copy STRINGARRAY[1] TO STRINGARRAY[0].

So if you want to the last 1000 part numbers you would make your STRINGARRAY[1001] This gives you 0-1000

Then when number is high move part number into STRINGARRAY[1000] AND COPY 1 TO 0 for Length of 1000. This will shift your data up every entry. Just beware that you most recent data will be stored in STRINGARRAY[999]
 
Last edited:
we have an external systems that i just give the tags to and it can read them and send out a report based on what intervals we want. The copy instruction that was suggested should do the job thanks.
 

Similar Topics

Hello, I have an int variable that updates the value every second. I want to store the 100 values in an array. Array should keep storing the...
Replies
7
Views
1,000
hi, i made a program of controlling temperature of 20 tanks using PID control. now i want to store the data of the present temperature of the...
Replies
4
Views
2,872
I'm on PLC 5000. So I'm trying to store mutiple things. And trying to find the shortest way to write it without using so many rungs. I'm using FFl...
Replies
0
Views
1,409
I have an AB L27ERM PLC and a Panelview Plus 1000 with a local network setup with a PC on the machiene. 1. What is the best method for exporting...
Replies
5
Views
2,865
Dear all, I would like to move data stored by Historian to another place on network drive with more space, but I'm facing problems as I cannot...
Replies
0
Views
1,752
Back
Top Bottom