Calculation of Delta Weight from changing weight.
Any one who can help me in ABB ACx800A programing issue. I want to use a weighting transmitter's 4-20 mA signal from a continuously changing weight (reservoir Tank's loss in weight) for getting delta W during every second, how can I do that? is there any control module in library for this reason? If there isn't how it's possible in the logic?
DeltaWeight := WeightInput - LastScanInput;
LastScanInput := WeightInput;
Execute this code in a task with 1 second interval.
Around about this time you should start reading about "Code Sorting". The code above depends ENTIRELY upon the correct execution order. Code sorting in some circumstances can break this. Be sure you understand what happens when you spread the code over multiple code pages and especially what happens when you try to solve Code Loops by setting variables to "NoSort"