Sepasoft MES Module Suite
system.mes.loadMaterialLotLink
These script functions are used to load the link to a specific material lot.
Method Options
system.mes.loadMaterialLotLink(lotNumber, sequenceNumber, equipmentPath, onlyAvailableLot)
Description
Get a link to the specified material lot object.
Syntax
system.mes.loadMaterialLotLink(lotNumber, sequenceNumber, equipmentPath, onlyAvailableLot)
- Parameters
String lotNumber - The lot number to return the link for.
Integer sequenceNumber - The lot sequence number to return the link 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 MES Object Link object representing the material lot.
- Scope
All
Code Example
Python |
#This code returns the link to the specified material lot. system.mes.loadMaterialLotLink('Lot 1111', 1, True) |
system.mes.loadMaterialLotLink(lotNumber, sequenceNumber, onlyAvailableLot)
Description
Get a link to the specified material lot object.
Syntax
system.mes.loadMaterialLotLink(lotNumber, sequenceNumber, onlyAvailableLot)
- Parameters
String lotNumber - The lot number to return the link for.
Integer sequenceNumber - The lot sequence number to return the link 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 MES Object Link object representing the material lot.
- Scope
All
Code Example
Python |
#This code returns the link to the specified material lot. system.mes.loadMaterialLotLink('Lot 1111', 1, True) |
Sepasoft MES Module Suite