Sepasoft MES Module Suite
system.mes.getTagCollectorLastTimeStamp(equipmentPath, collectorType, key)
Returns the timestamp of the last value chronologically recorded by this MES tag collector.
|
This function is not supported for the 'Equipment Count' collector type |
Syntax
system.mes.getTagCollectorLastTimeStamp(equipmentPath, collectorType, key)
- Parameters
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.
- Returns
Date lastTimeStamp - The timestamp of the last chronological recorded value.
- Scope
All
Code Example
Python |
dateTime = system.date.now() equipmentPath = '[global]\Enterprise\San Marcos\MP Rotator\MP Rotator 1' collectorType = 'Equipment Mode' key = '' system.mes.getTagCollectorLastTimeStamp(equipmentPath, collectorType, key) |
Output
Code |
Mon Mar 20 16:29:31 PDT 2017 |
Sepasoft MES Module Suite