system.mes.oee.getMaterialAvailableEquipment

Sepasoft MES Module Suite

Description

Return MES object links for the equipment that can run the specified material and search pattern.

Syntax

system.mes.oee.getMaterialAvailableEquipment(materialLink, searchPattern)


  • Parameters

MESObjectLink materialLink - The MES object link to the material definition to return results for.

String searchPattern - Equipment path filter pattern to limit the results by. It can contain the * and ? wild card characters.  

  • Returns

MESList<MESObjectLink> - A MESList containing a MESObjectLink object for each equipment object in the results.

  • Scope

All

Code Examples

Code Snippet

Code
##Get the Equipment available for the Material specified
##by the supplied MESObjectLink, in this case for material 'PC_0001' 
link = system.mes.getMESObjectLinkByName('MaterialDef', 'PC_0001')
print link
list = system.mes.oee.getMaterialAvailableEquipment(link, 'Enterprise\Site\*')
for i in range(list.size()):
	obj = list.get(i)
	print obj 

Output

Code
PC_0001
Palletizer
Infeed
...

Sepasoft MES Module Suite