Sepasoft MES Module Suite
system.mes.getActiveSegment
These script functions are used to get the response segment for the specified equipment path and segment name. This is most often for the purpose of updating the segment with changes in material or personnel.
system.mes.getActiveSegment(equipmentPath, segmentName)
Get the response segment for the specified equipment path and segment name.
Syntax
system.mes.getActiveSegment(equipmentPath, segmentName)
- Parameters
String equipmentPath - The path of the equipment that is running an operation and specified segment.
String segmentName - The name of the segment to return.
- Returns
The matching MESResponseSegment object.
- Scope
All
Python |
operationsResponseUUID = '7a4b2168-1d34-4944-96f5-edc0be02ce32' path = '[global]\Nuts Unlimited\Site 1\Area\Line 1' segmentName = 'Sugar-Nuts Unlimited:Site 1:Area:Line 1' seg=system.mes.getActiveSegment(operationsResponseUUID, path, segmentName) seg.end() |
system.mes.getActiveSegment(operationsResponse, equipmentPath, segmentName)
Get the response segment for the specified operation at the equipment path with the given segment name.
Syntax
system.mes.getActiveSegment(operationsResponse, equipmentPath, segmentName)
- Parameters
MESOperationsResponse operationsResponse - The operations response object that is associated with the segment to return.
String equipmentPath - The path of the equipment that is running an operation and specified segment.
String segmentName - The name of the segment to return.
- Returns
The matching MESResponseSegment object.
- Scope
All
Python |
operationsResponseUUID = '7a4b2168-1d34-4944-96f5-edc0be02ce32' path = '[global]\Nuts Unlimited\Site 1\Area\Line 1' segmentName = 'Sugar-Nuts Unlimited:Site 1:Area:Line 1' seg=system.mes.getActiveSegment(operationsResponseUUID, path, segmentName) seg.end() |
Output
Python |
ResponseSegment (8aff88ce-138e-4bd2-b35d-1a066203bf4c, Sugar-Nuts Unlimited:Site 1:Area:Line 1, 0 parents, 0 children, 0 custom properties, 7 complex properties) |
system.mes.getActiveSegment(operationsResponseUUID, equipmentPath, segmentName)
Get the response segment for the operation at the specified equipment path with the given segment name.
Syntax
system.mes.getActiveSegment(operationsResponseUUID, equipmentPath, segmentName)
- Parameters
String operationsResponseUUID - The UUID of the operations response object that is associated with the segment to return.
String equipmentPath - The path of the equipment that is running an operation and specified segment.
String segmentName - The name of the segment to return.
- Returns
The matching MESResponseSegment object.
- Scope
All
Python |
operationsResponseUUID = '7a4b2168-1d34-4944-96f5-edc0be02ce32' path = '[global]\Nuts Unlimited\Site 1\Area\Line 1' segmentName = 'Sugar-Nuts Unlimited:Site 1:Area:Line 1' seg=system.mes.getActiveSegment(operationsResponseUUID, path, segmentName) seg.end() |
Sepasoft MES Module Suite