Sepasoft MES Module Suite
system.mes.updateTagCollectorValues(equipmentPath, collectorType, key, values)
Update multiple values recorded by the MES tag collector. If a value does not existing for one of the timestamps, then an exception will be returned.
Syntax
system.mes.updateTagCollectorValues(equipmentPath, collectorType, key, values)
- Parameters
String equipmentPath - The path from the production model to the desired equipment.
String collectorType - The name of the tag collector type.
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.
PyDictionary values - A Python dictionary containing the date (of type Date) and value pairs to update.
- Returns
Nothing
- Scope
All
Python |
date1 = system.date.getDate(2017, 2, 17) dateTime1 = system.date.setTime(date1, 12, 55, 31) date2 = system.date.getDate(2017, 2, 17) dateTime2 = system.date.setTime(date2, 13, 16, 13) equipmentPath = '[global]\Enterprise\San Marcos\MP Rotator\Test Line 1' collectorType = 'Equipment Mode' key = '' values={dateTime1:2, dateTime2:2} system.mes.updateTagCollectorValues(equipmentPath, collectorType, key, values) |
Sepasoft MES Module Suite