Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual
Page 94

FactoryTalk EnergyMetrix Software
94
TagRatchet Function
Returns the largest instance of the selected MeterTagId over the specified DateRange or
time span and IntervalInMonths ending with the optional EndDate argument. The
EndDate argument is a String type. If the EndDate is not specified, the IntervalInMonths
ends on the current date and overlaps the specified DateRange or time span. Usage:
Result = TagRatchet(MeterTagId, [EndDate,] IntervalInMonths,
DateRange.enumValue)
Result = Tagratchet(MeterTagId, [EndDate,] IntervalInMonths,
months, days, hours, minutes)
TagLowest Function
Returns the smallest instance of the selected MeterTagId over the specified DateRange or
time span. Usage:
Result = TagLowest(MeterTagId, DateRange.enumValue)
Result = TagLowest(MeterTagId, months, days, hours, minutes)
TagNLowest Function
Returns a Double array of N elements containing the N smallest instances of the selected
MeterTagId over the specified DateRange or time span. Usage:
Result = TagNLowest(MeterTagId, N, DateRange.enumValue)
Result = TagNLowest(MeterTagId, N, months, days, hours, minutes)
TagLowestTimestamp Function
Returns a DateTime structure containing the UTC time stamp of the smallest instance of
the selected MeterTagId over the specified DateRange or time span. Usage:
Result = TagLowestTimestamp(MeterTagId, DateRange.enumValue)
Result = TagLowestTimestamp(MeterTagId, months, days, hours,
minutes)
TagNLowestTimestamps Function
Returns a DateTime array of N elements containing the UTC time stamps of the N
smallest instances of the selected MeterTagId over the specified DateRange or time span.
Usage:
Result = TagNLowestTimestamps(MeterTagId, DateRange.enumValue)
Result = TagNLowestTimestamps(MeterTagId, months, days, hours,
minutes)
TagSum Function
Returns the arithmetic sum of the selected MeterTagId over the specified DateRange or
time span. The TagSum function is usually used with non-consumption values such as
hourly production. Usage:
Result = TagSum(MeterTagId, DateRange.enumValue)
Result = TagSum(MeterTagId, months, days, hours, minutes)