Sepasoft MES Module Suite
system.mes.removeTagCollectorValues
These script functions are used to remove all values within the specified range or from a list of timestamps for the MES tag collector.
Method Options
system.mes.removeTagCollectorValues(equipmentPath, collectorType, key, dateTimeList)
Description
Remove all values within the specified range or from a list of timestamps for the MES tag collector. When a list of timestamps are provided and one of the timestamps does not exist, then an exception will be returned.
Syntax
system.mes.removeTagCollectorValues(equipmentPath, collectorType, key, dateTimeList)
- 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.
PyList dateTimeList - A Python list containing dates(of type Date) to remove from the MES tag collector.
- Returns
Nothing
- Scope
All
Code Example
Python |
#Set the start and end time date = system.date.getDate(2017, 2, 21) dateTime1 = system.date.setTime(date, 14, 45, 15) dateTime2 = system.date.setTime(date, 14, 49, 15) equipmentPath = '[global]\Enterprise\San Marcos\MP Rotator\MP Rotator 1' collectorType = 'Equipment State' key = '' system.mes.removeTagCollectorValues(equipmentPath, collectorType, key, dateTime1, dateTime2) |
system.mes.removeTagCollectorValues(equipmentPath, collectorType, key, beginDateTime, endDateTime)
Description
Remove all values within the specified range or from a list of timestamps for the MES tag collector. When a list of timestamps are provided and one of the timestamps does not exist, then an exception will be returned.
Syntax
system.mes.removeTagCollectorValues(equipmentPath, collectorType, key, beginDateTime, endDateTime)
- 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.
Date beginDateTime - The starting date of values that will be removed.
Date endDateTime - The ending date of values that will be removed.
- Returns
Nothing
- Scope
All
Code Example
Python |
#Set the start and end time date = system.date.getDate(2017, 2, 21) dateTime1 = system.date.setTime(date, 14, 45, 15) dateTime2 = system.date.setTime(date, 14, 49, 15) equipmentPath = '[global]\Enterprise\San Marcos\MP Rotator\MP Rotator 1' collectorType = 'Equipment State' key = '' system.mes.removeTagCollectorValues(equipmentPath, collectorType, key, dateTime1, dateTime2) |
Sepasoft MES Module Suite