Sepasoft MES Module Suite
system.mes.batch.recipe.getRecipeBOM(masterRecipeLink)
This script function gets the Bill of Materials (BOM) and user-parameter values from a Master recipe. It is common to include values like mix time or temperature.
Use the jsonEncode function to convert from a python dictionary to a json xml format, see code example below.
|
Scripting Function added in MES 3.81.8 RC 1 and later |
getRecipeBOM(masterRecipeLink) → Python dictionary
Syntax
getRecipeBOM(masterRecipeLink)
- Parameters
int masterRecipeLink - A required link of the master recipe to return details for.
- Returns
A Python dictionary containing the details of the master batch recipe.
- Scope
All
Example Script
Python |
recLink = system.mes.batch.recipe.getRecipeLink('Product 1111') print( system.util.jsonEncode(system.mes.batch.recipe.getRecipeBOM(recLink))) |
Example Return
Python |
|
Sepasoft MES Module Suite