Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_TrendX_GenericToTag

CSV_TrendX_GenericToTag

Converts raw integer value (0-32000) to real value scaled between specified tag's engineering zero and engineering full scale.

Syntax

CSV_TrendX_GenericToTag(iValue,sTagName)

#iValue:

Raw value scaled between 0 - 32000.

#sTagname:

Name of tag whose eng zero and eng full scale values are to be used to scale iValue.

Return Value

Value scaled between tag's eng zero scale and eng full scale.