Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_TrendX_TagToGeneric

CSV_TrendX_TagToGeneric

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

Instant Trend data is stored in generic format. i.e. as a raw integer with range 0 - 32000.

Syntax

CSV_TrendX_TagToGeneric(rValue, sTagName)

#rValue:

Scaled value to convert to raw integer 0-32000.

#sTagname:

Name of tag whose eng zero and eng full scale values rValue is scaled between.

Return Value

Value scaled between 0-32000.