system.mes.abortSegment

Sepasoft MES Module Suite

system.mes.abortSegment(responseSegment)

Abruptly end the specified response segment.

Syntax

system.mes.abortSegment(responseSegment)

  • Parameters

MESResponseSegment  responseSegment - The MES object to abort.

  • Returns

Nothing

  • Scope

All

Error

Warning, trace information may not be correctly recorded when this script function is used.

Code Example

Python
defSeg = system.mes.loadMESObject('Receive Material', 'OperationsSegment')
eqPath = 'My Enterprise\California\Receiving\Unload Station 1'
respSeg = system.mes.createSegment(defSeg, eqPath)
system.mes.abortSegment(respSeg)

Code Example

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.abort()
system.mes.abortOperation('Dressings Inc\California\Raw Materials\Unload Station 1')

Code Example

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