Skip to main content
1-Visitor
September 22, 2023
Solved

KepServerEX Advanced Tag update non zero value from a tag

  • September 22, 2023
  • 1 reply
  • 2020 views

I have a tag on a Molding press for Cooling Time that counts up and then zeroes out.  I am writing the data to a database using a trigger called New Data Flag.  When the new data flag kicks from 0 to 1 I write the data to the database.  Unfortunately the cooling time tag is at zero when the new data flag changes over.  

 

So I think I can fix this by creating an advanced tag that will monitor the Cooling Time tag.  I only want the advanced tag to update if the Cooling time tag is not zero.  By doing this I will always end up with the last non zero value from the Cooling Time tag when the New Data Flag changes from 0 to 1.  

 

My assumption is that a derived tag may work but I am not sure how to setup the expression.  Any help would be appreciated.  

 

 

 

Best answer by rajskumar

You can create a derived tag using below expression and then use it for trigger. Refer Advanced Tags Help manual for more details  (page=18)

https://www.ptc.com/store/-/media/kepware-store/en/manuals/advanced-tags-manual.pdf

 

Expression = TAG (Tag_Name)==1 

rajskumar_0-1697030178875.png

 

1 reply

rajskumar16-PearlAnswer
16-Pearl
October 11, 2023

You can create a derived tag using below expression and then use it for trigger. Refer Advanced Tags Help manual for more details  (page=18)

https://www.ptc.com/store/-/media/kepware-store/en/manuals/advanced-tags-manual.pdf

 

Expression = TAG (Tag_Name)==1 

rajskumar_0-1697030178875.png