system.mes.getTagCollectorLastTimeStamp(equipmentPath, collectorType, key)
String equipmentPath - The path from the production model to the desired equipment.
String collectorType - The name of the tag collector type. See Tag Collector Types for more details.
String key - Where there are multiple instances of a tag collector type, this specifies which one to use. For example, there can be multiple MES counters for the "Equipment Count" tag collector type. If not needed, pass an empty string. In other words it is the name of the MES counter or the name of the Additional Factor.
Date lastTimeStamp - The timestamp of the last chronological recorded value.