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? Quote 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 Quote 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 Quote 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.