Skip to main content
Jul 24, 2023 7:58 AM UTC
Solved

KEPServerEx Advance Tag

Hi Everyone,

I have one "Double" data type Derived Tag in Advance Tag logging/refreshing at ever 30sec. I want to subtract latest value with previous value (logged before 30sec ago) & store the this subtracted value. 

Oracle cummulative tag not working, tried as per manual.

 

Pls find the attachment for more in details.

 

Pls help on this.

 

Regards,

Vijay

 

 

 

aservetasAnswer
Aug 3, 2023 10:47 AM UTC

You could do this using a combination of Link Tags and Memory Based driver tags.

 

Use a link tag to move the current value into a memory tag, 30 seconds later compare the two values using a derived tag. If they are different, do the math (subtract) in another derived tag, 

 

Then, move the current value into the same memory based tag for the next comparison 30 seconds later.

 

-Andy

Andy Servetas
Principal Technical Support Engineer | Kepware Technologies

1 reply

aservetasAnswer
Aug 3, 2023 10:47 AM UTC

You could do this using a combination of Link Tags and Memory Based driver tags.

 

Use a link tag to move the current value into a memory tag, 30 seconds later compare the two values using a derived tag. If they are different, do the math (subtract) in another derived tag, 

 

Then, move the current value into the same memory based tag for the next comparison 30 seconds later.

 

-Andy

Andy Servetas
Principal Technical Support Engineer | Kepware Technologies