4/25/2016 3:55 PM | |
Posts: 31 Rating: (5) |
Hi Rashid, Do you have the option to reset the total flow via a command from the PLC? If so, you could zero the counter every time the material is changed, then simply read the total at the end of the batch. If that's not an option then I would go about it in basically the same way you suggest:
Do you need to keep a record of the total as it accumulates or are you only interested in the total flow at the end of the batch? If the latter then there would be no need to archive every 10 seconds - just log the value when the batch is complete. We use a similar method to calculate pump flow totals. This FAQ entry gives details on using SQL with WinCC Advanced: If it is possible that the counter can be reset to zero by an external process (reset button, overflow, etc.) then your code should include a check to make sure the current total value > start value. If the check fails then you can decide what action to take e.g. raise an alarm, discard the value... If the material doesn't change while the computer is switched off it won't cause a problem - the data you need is still stored in the weighing system and PLC. If the material changes while the computer is turned off then you will lose the data for that batch. An alternative would be to store the totals for the last few batches in the PLC. You could do this using an array or look into datalogging using the PLC itself: Hope this is some help, Craig.
|
This contribution was helpful to1 thankful Users |
Follow us on