Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
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.
Solved! Go to Solution.
Hello,
Thank you for reaching out to us regarding the issue with Kepware not being designed for the type of calculation and retention of values in tags as required.
After reviewing the situation, it appears that Kepware may not be the appropriate tool for this specific task. It is recommended that you consider implementing the necessary calculations and retention of values within the source of the data, such as the PLC, or directly within your client system.
Should you require any further assistance or guidance on how to proceed, please do not hesitate to contact us.
Regards,
Mohit
Hello,
Thank you for reaching out to us regarding the issue with Kepware not being designed for the type of calculation and retention of values in tags as required.
After reviewing the situation, it appears that Kepware may not be the appropriate tool for this specific task. It is recommended that you consider implementing the necessary calculations and retention of values within the source of the data, such as the PLC, or directly within your client system.
Should you require any further assistance or guidance on how to proceed, please do not hesitate to contact us.
Regards,
Mohit