Sepasoft MES Module Suite
Description
Remove one or more downtime states associated with a line, cell group or cell. Note, depending on the downtime detection method that the line or cell group is set to, this may cause unexpected results.
Syntax
system.mes.oee.removeEquipmentStateValues(String equipmentPath, Date beginDateTime, Date endDateTime)
- Parameters
String equipmentPath - The equipment path for the line or if managing downtime events for a cell group, the equipment path for the cell group.
Date beginDateTime - The starting date for the range from with you wish to remove downtime events.
Date endDateTime- The ending date for the range from with you wish to remove downtime events.
- Returns
Nothing
- Scope
All
Code Examples
Code Snippet
Code |
# Removing all events in the last ten minutes equipment_path = 'Enterprise\Site\Area\Line 2' begin_date_time = system.date.addMinutes(system.date.now(), -10) end_date_time = system.date.now() system.mes.oee.removeEquipmentStateValues(equipment_path, begin_date_time, end_date_time) |
Sepasoft MES Module Suite