system.mes.updateSegment

Sepasoft MES Module Suite

system.mes.updateSegment(responseSegment)

This method is used to update information for a actively running segment. Information that maybe updated is limited to properties that are appropriate to be changed. For example, equipment cannot be changed because a new operation and segment must be created for them. However, lots can be changed. For example, if a raw material lot runs out, then and new lot can be used to complete out the production run.

Syntax

system.mes.updateSegment(responseSegment)

  • Parameters

MESResponseSegment responseSegment - The MES object to update.

  • Returns

Nothing

  • Scope

All

Python
defSeg = system.mes.loadMESObject('Receive Material', 'OperationsSegment')
eqPath = 'My Enterprise\California\Receiving\Unload Station 1'
respSeg = system.mes.createSegment(defSeg, eqPath)
seg.setMaterial('In Steel Type', 1000.0)
system.mes.updateSegment(respSeg)

Sepasoft MES Module Suite