Sepasoft MES Module Suite
system.mes.getCurrentOperation(equipmentPath)
Get the current operations response that is currently running for the equipment specified by the equipmentPath parameter.
Syntax
system.mes.getCurrentOperation(equipmentPath)
- Parameters
String equipmentPath - Equipment path of the equipment to return the current operation response for.
- Returns
The current MESOperationsResponse object for the specified equipment.
- Scope
All
Python |
#This code will return the current operation oper = system.mes.getCurrentOperation('Nuts Unlimited\Folsom\Packaging\Packaging Line 1') seg = oper.getActiveSegment('Package Nuts') |
Output
Code |
OperationsResponse (b4532162-ff22-4405-b22a-8436f5c501d3, Package Nuts, 0 parents, 0 children, 0 custom properties, 1 complex properties) |
Sepasoft MES Module Suite