Sepasoft MES Module Suite
system.mes.executeSegment(responseSegment)
Execute the specified response segment. This is the same as begin segment and then ending the segment immediately.
Syntax
system.mes.executeSegment(responseSegment)
- Parameters
MESResponseSegment responseSegment - The MES object to execute. This can be used to split lot, receive material, change lot status, etc.
- Returns
Nothing
- Scope
All
Python |
#Load the object defSeg = system.mes.loadMESObject('Receive Material', 'OperationsSegment') eqPath = 'My Enterprise\California\Receiving\Unload Station 1' #Create segment for the MES object respSeg = system.mes.createSegment(defSeg, eqPath) system.mes.executeSegment(respSeg) |
Code Snippet
Python |
#This code is for the execution of the specified segment seg = system.mes.createSegment('Unload Vinegar', 'Dressings Inc\California\Raw Materials\Unload Station 1', False) seg.setMaterial('Vinegar Type', 'Balsamic Vinegar', 'Dressings Inc\California\Raw Materials\Tank Farm\Vinegar Tank 1', 'TBV 11000', 100.0) seg.setPersonnel('Unload Operator', 'Smith, Sam') seg.execute() |
Code Snippet
Python |
#Set custom property value for pH custom property defined in the segment. seg.setPropertyValue('pH', 4.4) #Set custom property value for Brix custom property defined in the material reference. cp = {'Brix' : 5.5} seg.setMaterial('Vinegar', 'Balsamic Vinegar', 'Dressings Inc\California\Raw Materials\Tank Farm\Vinegar Tank 1', 'TBV 1127', 100.0, cp) seg.setPersonnel('Operator', 'Hechtman, Tom') seg.execute() |
Sepasoft MES Module Suite