Sepasoft MES Module Suite
Description
Revert all previously updated (overridden) line or cell group downtime event reasons back to the original value for the specified date range.
This will also revert the blame back to the original equipment item(s), if any were previously changed.
Syntax
system.mes.oee.revertEquipmentStateValue(equipmentPath, reasonEquipmentPath, fromStateTimeStamp, toStateTimeStamp)
- 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.
String reasonEquipmentPath - The equipment path for the original equipment that caused the downtime event.
Date fromStateTimeStamp- The starting timestamp to begin reverting updated downtime events.
Date toStateTimeStamp- The ending timestamp to end reverting updated downtime events.
- Returns
Nothing
- Scope
All
Code Examples
Code Snippet
Code |
# The Equipment State was changed from blaming Sealer to blame the Filler for a period of time, which was incorrect. # This scripting function will revert that change back to blaming Sealer for that period of time equipment_path = 'Enterprise\Site\Area\Line 2' old_equipment_path = 'Enterprise\Site\Area\Line 2\Sealer' system.mes.oee.revertEquipmentStateValue(equipment_path, old_equipment_path, from_time_stamp, to_time_stamp) |
Sepasoft MES Module Suite