system.mes.oee.updateLastEquipmentStateValue

Sepasoft MES Module Suite



Description

Change the last equipment state value for the specified equipment path.

This is for a single equipment item and is independent of the line downtime reason that factors in downtime detection methods.

Syntax

system.mes.oee.updateLastEquipmentStateValue(equipmentPath, value)


  • Parameters

String equipmentPath - The equipment path of the line, cell group or cell to change the last equipment state.

Integer value - The new equipment state as an integer. This value should match a code assigned to a state associated with the specified equipment.

  • Returns

Nothing

  • Scope

All

Code Examples

Code Snippet

Code
# Updates the last state change on Line 2 to 5
equipment_path = 'Enterprise\Site\Area\Line 2'
value = 5


system.mes.oee.updateLastEquipmentStateValue(equipmentPath, value)

Sepasoft MES Module Suite