system.mes.endSegment

Sepasoft MES Module Suite

system.mes.endSegment(responseSegment)

End the specified response segment.

system.mes.endSegment(responseSegment)

  • Parameters

MESResponseSegment  responseSegment - The MES object to end. All final property values must be set prior to ending.

  • 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)
#Ends the segment
system.mes.endSegment(respSeg)


Python
#USE THIS METHOD IF THE SEGMENT'S (END OPERATION WHEN COMPLETE) SETTING IS TRUE. 
seg = system.mes.getActiveSegment('Dressings Inc\California\Raw Materials\Unload Station 1', 'Unload Balsamic Vinegar')
seg.end()


Python
#USE THIS METHOD IF THE SEGMENT'S (END OPERATION WHEN COMPLETE) SETTING IS FALSE. 
oper = system.mes.getCurrentOperation('Dressings Inc\California\Raw Materials\Unload Station 1')
seg = oper.getActiveSegment('Unload Balsamic Vinegar')
seg.end()
oper.end()

Sepasoft MES Module Suite