QUOTE(Noely @ Jul 14 2007, 08:32 AM) [snapback]56577[/snapback]
Hi,
I have a weigh hopper that weighs cement. What i want to do is calculate the total amount of cement used in a day. The weigh hopper is weighed with loadcells and my weight indicator give me a 4-20mA signal with 0 kgs = 4mA and 100kgs = 20mA. Each time I weigh up I want to record the weight that has just been weighed and then add on the weight to a previous weight. I am using an slc 500. Any ideas would be very helpful.
Once you've reached the end of a batch, simply execute an ADD instruction once. Use the one shot (ONS) to do this, or organize your logic in some other way so that it only happens exactly one time.
Trigger off the time such as EQU S:21 0 (check if it's midnight) followed by a one shot in the location where you want to zero the total register as well as most likely copy the number into a "yesterday" location.
If you can't control the timing of the sequence (such as watching an operator add cement and then dump it all), then you have to capture the minimum and maximum readings. Even if you only need the maximum, you might still need the minimum because you will want to measure a TARE.