04 March 2011

Optimizing PI Smart Alert Email

By default, using OPC Datahub i configured certain events to be alerted via email. Things like plant shutdown, tripped, 52G breaker status etc

Add below code, to trim the decimal values of the OPC tag.

Hello Ainuddin,

Something like below where you replace the DataSim:Sine with your tag name. This means that it will have 6 digits before the decimal and 2 after the decimal. Let me know if you have other questions.
<%= format("%6.2f", $DataSim:Sine) %>

Thanks,

Win Worrall
Support Engineer
Software Toolbox, Inc.

No comments:

Post a Comment