Sepasoft MES Module Suite
system.mes.getTagCollectorPreviousValue(equipmentPath, collectorType, key, dateTime)
Return the value at, or just prior to, the specified date and time.
Syntax
system.mes.getTagCollectorPreviousValue(equipmentPath, collectorType, key, dateTime)
- 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.
Date dateTime - The date to start searching for the previous value to return.
- Returns
Object value - The value at, or just prior to, the specified date and time.
- Scope
All
Code Examples
Python |
dateTime = system.date.now() equipmentPath = '[global]\Enterprise\San Marcos\MP Rotator\MP Rotator 1' collectorType = 'Equipment Mode' key = '' print system.mes.getTagCollectorPreviousValue(equipmentPath, collectorType, key, dateTime) |
Output
Code |
3 |
Sepasoft MES Module Suite