Sepasoft MES Module Suite
system.mes.loadMaterialLot
These script functions are used to load a specific material lot.
Method Options
system.mes.loadMaterialLot(lotNumber, sequenceNumber, equipmentPath, onlyAvailableLot)
Description
Get a specified material lot object.
Syntax
system.mes.loadMaterialLot(lotNumber, sequenceNumber, equipmentPath, onlyAvailableLot)
- Parameters
String lotNumber - The lot number to return the material lot object for.
Integer sequenceNumber - The lot sequence number to return the material lot object for. If it is less than zero, then the lot holding the maximum value is returned and if the same lot number is used for multiple segments, each lot with the same lot number will be assigned a different lot sequence number.
String equipmentPath - The equipmentPath to the MES object.
boolean onlyAvailableLot - If true, then only the available lot will be returned.
- Returns
A MESMaterialLot object.
- Scope
All
Code Example
Python |
#This code returns the specified material lot. system.mes.loadMaterialLot('Lot 1111', 1, True) |
system.mes.loadMaterialLot(lotNumber, sequenceNumber, onlyAvailableLot)
Description
Get a specified material lot object.
Syntax
system.mes.loadMaterialLot(lotNumber, sequenceNumber, onlyAvailableLot)
- Parameters
String lotNumber - The lot number to return the material lot object for.
Integer sequenceNumber - The lot sequence number to return the material lot object for. If it is less than zero, then the lot holding the maximum value is returned and if the same lot number is used for multiple segments, each lot with the same lot number will be assigned a different lot sequence number.
boolean onlyAvailableLot - If true, then only the available lot will be returned.
- Returns
A MESMaterialLot object.
- Scope
All
Code Example
Python |
#This code returns the specified material lot. system.mes.loadMaterialLot('Lot 1111', 1, True) |
Sepasoft MES Module Suite