Hi
I have a system where a sampler takes samples of material at regular intervals (may be hour) with datetime stamp which is stored in Logix5000 PLC.
After few hours the laboratory data will be returned with same datetime stamp entered by operator. This will update data in PLC with laboratory data i.e. %age, conc etc.
Now the idea I have is to compare the datetime in PLC with Datetime entered and update that data.
Now in logix5000 as most of you may know that we have to create array
DateTime[0] to DateTime[7] for date time
In my case DateTime is part of another array so it looks like this
Sample[x].DateTime[0-7] = Entered_DateTime[0-7]
If equal then replace data in Sample[x] array with Lab Data.
Sample[x] has DateTime[y] and other elements i.e. Concentration
Any Ideas how can I compare the Date time in Sample Array for all the samples.
I have a system where a sampler takes samples of material at regular intervals (may be hour) with datetime stamp which is stored in Logix5000 PLC.
After few hours the laboratory data will be returned with same datetime stamp entered by operator. This will update data in PLC with laboratory data i.e. %age, conc etc.
Now the idea I have is to compare the datetime in PLC with Datetime entered and update that data.
Now in logix5000 as most of you may know that we have to create array
DateTime[0] to DateTime[7] for date time
In my case DateTime is part of another array so it looks like this
Sample[x].DateTime[0-7] = Entered_DateTime[0-7]
If equal then replace data in Sample[x] array with Lab Data.
Sample[x] has DateTime[y] and other elements i.e. Concentration
Any Ideas how can I compare the Date time in Sample Array for all the samples.