cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Maximum Tag That Only Shows The True Maximum Value for a run

JK_10744682
9-Granite

Maximum Tag That Only Shows The True Maximum Value for a run

Hi all,

 

I am having an issue with how the Maximum Advanced Tag works and am hoping to get some insight. So I want the maximum value for a run written to a tag. But I want ONLY the maximum written to the tag so that is all I see. The Maximum Advanced tag doesn't seem to actually handle this since it writes all values that are a maximum and ends the cycle with the max, but I just want to see the true max for the cycle. For example, the data for my max tag looks like below for a run cycle, but I only want to see the max of 21, not the rest of the data leading up to the actual max. Any help is appreciated!

JK_10744682_0-1732633758727.png

 

 

ACCEPTED SOLUTION

Accepted Solutions
MKhatri
14-Alexandrite
(To:JK_10744682)

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

View solution in original post

5 REPLIES 5
MKhatri
14-Alexandrite
(To:JK_10744682)

Hello,

Thank you for reaching out with your query for resolution.
Maximum Tags calculate the maximum value of a tag's value. Determining the maximum value is initiated by the value of a Run Tag transitioning from zero to non-zero.
C
ould you please check the mentioned notebook as well as the example referenced within it?

 

Regards,
Mohit

Yes I understand this, but for example if the value I want the max for goes like {0..1..2..3..4..5..6..0} over the course of a minute, how do I have it so the Max tag ONLY is set to 6. The Maximum Advanced tag seems to be set to 1 then 2 then 3 and so on since that is the maximum at the time, but not the maximum of the run. If the maximum tag doesn't have this capability is there another way to do this in kepware?

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, and I can't find a way to get it to work like how I want.

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, and I can't find a way to get it to work like how I want.

MKhatri
14-Alexandrite
(To:JK_10744682)

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

Announcements


Top Tags