Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Triggering issue in performance equation

$
0
0

Hello,

 

Each time when the tag (BCQ:CASTH:CRUCIBLE_WEIGHING:TICKET_ID for example) changes its value, I would like to trigger a calculaiton.  I decided to create a new Performace equation (BCQ:PTRM:L4:PRECISION_CREUSET_HORS_NORME.SHIFT.PIPE) by using "BCQ:CASTH:CRUCIBLE_WEIGHING:TICKET_ID" as Event-based scheduling in PI System management Tools. The informations of my PE is shown below:

 

Event Tag  :

BCQ:CASTH:CRUCIBLE_WEIGHING:TICKET_ID

 

Equation :

IF (Left(TagVal('BCQ:CASTH:CRUCIBLE_WEIGHING:TICKET_ID','*+1s'),1) = "D") AND ( TagVal('BCQ:CASTH:CRUCIBLE_WEIGHING:WEIGHT_FULL','*+1s') - TagVal('BCQ:CASTH:CRUCIBLE_WEIGHING:WEIGHT_EMPTY','*+1s')- (TagVal('BCQ:CASTH:CRUCIBLE_WEIGHING:WEIGHT_ESTIMATED','*+1s'))<=-200 OR  TagVal('BCQ:CASTH:CRUCIBLE_WEIGHING:WEIGHT_FULL','*+1s') - TagVal('BCQ:CASTH:CRUCIBLE_WEIGHING:WEIGHT_EMPTY','*+1s')- (TagVal('BCQ:CASTH:CRUCIBLE_WEIGHING:WEIGHT_ESTIMATED','*+1s'))>=300) THEN 1 ELSE 0

 

Scheduling :

Event-based scheduling

Event tag: BCQ:CASTH:CRUCIBLE_WEIGHING:TICKET_ID

Set tiemstamp of resulting expression to : The timestamp of the triggering event

 

Archive:

Typical value : 500

Zero : 0

Span : 1000

Scan : on

Archiving : on

Step : on

Exception Deviation 0

Min Time : 0

Max Time : 10 min

 

The problem is the calcuation is done alternatively ( not as long as tag 'BCQ:CASTH:CRUCIBLE_WEIGHING:TICKET_ID' change its value, the calcuaiton must be done. Sometimes, the cacluaiton is triggered. sometimes not.). It seems that my Trigger does not work very well. However, once I check my trigger value in archive editor, it works fine! Can anybody help me? Thanks a lot. 


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>