Kepware tag that only holds maximum for a run cycle
Hi all,
I am trying to create a kepware tag that only holds the maximum value for a property for each run cycle of a machine.
Here is a more in-depth example of what I want to achieve with getting only the maximum and why the maximum advanced tag doesn't solve this.
I have a property named XTime, that runs 3 times through it's cycle.
The 3 cycles and values are as follows (between cycles the value goes to 0):
{0...1...2...3...4...5...6...0}
{0...1...2...3...4...5...6...7...0}
{0...1...2...3...4...5...6...7...8...0}
Now say I have a tag named XTimeMAX where I only want to get the max value from each run and that is the ONLY value that XTimeMAX is set as.
So in this case the history of tag XTimeMAX is:
{6...7...8}
This is because these are the respective maximums for each cycle.
The Maximum Advanced Tag doesn't seem to do this as it sets the advanced tag value with the current maximum each time it changes, so the Maximum tag would change like this which is the same as the normal tag except without the zeroes.
{1...2...3...4...5...6}
{1...2...3...4...5...6...7}
{1...2...3...4...5...6...7...8}
Any ideas on how to accomplish this in kepware? I just want to link this to a property in thingworx so I have a clear history of the max result for each cycle.

