Marco Brombacher Posted January 3, 2019 Report Share Posted January 3, 2019 I need to calculate the difference between the current tag value and its value during the previous scan. The tag value originates from a Formula using analogue data from a UIA-0402N Analog input and stores a Real value. Is there a easy way to do this without using a Data Table or other FB that uses the SD card memory? Link to comment Share on other sites More sharing options...
ORSO2001 Posted January 3, 2019 Report Share Posted January 3, 2019 Hi Marco, I am not sure about what you need...but you can use a second variable to store the value, afer that you done all that you need, or previously, then you will have an ActualValue and an OldValue Link to comment Share on other sites More sharing options...
Isakovic Posted January 3, 2019 Report Share Posted January 3, 2019 It is possible. NET 1 Difference = Current Value - Previous Value NET 2 Previous Value = Current Value Link to comment Share on other sites More sharing options...
Marco Brombacher Posted January 8, 2019 Author Report Share Posted January 8, 2019 Thanks, It works! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now