system.recipe.getRecipeValueList

Sepasoft MES Module Suite

Description

Return recipe values for a production item and recipe combination.

Syntax

system.recipe.getRecipeValueList(itemPath, recipeName, category)


  • Parameters

String itemPath - The item path to a production line, cell, cell group or location.

String recipeName - The recipe name.

String category - Category of recipe values to return. Where 1 is recipe values created by the recipe module, 2 is recipe values created by the OEE module and 3 is recipe values created by the SPC module. Use "" to include all categories.

  • Returns

List<RecipeItemInfo> - A list of RecipeItemInfo objects (See RecipeItemInfo object in the MES documentation).

  • Scope

All

Code Examples

Code Snippet

Code
recipeName = 'PC_007-IBC-RB'
itemPath = 'Enterprise\New Site\Packaging\packagingLine1\Filler'
list = system.recipe.getRecipeValueList(itemPath, recipeName,"")
if list.size() > 0:
    print 'The recipe values for %s:' %recipeName
    for rv in list:
        print "%s = %s" % (str(rv), rv.getRecipeValue())
else:
    print 'No production items found for %s' %itemPath

Output

Code
The recipe values for PC_007-IBC-RB:
IBC Vanilla Percentage = 2.8
Max Temperature = 92
Min Temperature = 85.3
IBC Sugar Percentage = 17.5
Line Speed = 110

Sepasoft MES Module Suite