MESSubRecipe

Sepasoft MES Module Suite

MESSubRecipe Object

The MESSubRecipe Object is an AbstractMESRecipe object that stores information about a sub-recipe, or collection of settings within the Settings and Changeover.  MESSubRecipes never have parents, but will always maintain an Equipment reference UUID. MESSubRecipes may only have up to 1 MESItemRecipe child at a time.

With the get and set methods described below, sub-recipes can be managed via script rather than through graphical components.  This is especially helpful when recipes and sub-recipes are imported from other systems or maintained through a custom graphical interface.

Object Creation

The following function can be used to create this object.

Inherits properties, functions and events from:

Object Functions

This object provides the following functions:

 getItemRecipe()

Description

Loads the MESItemRecipe attached to this MESSubRecipe, if it exists.

Syntax

getItemRecipe()


  • Parameters

Nothing

  • Returns

MESItemRecipe itemRecipe - The singular MESItemRecipe child, or None if it has not been created yet.

 

setEquipmentRefUUID(equipmentRefUUID, changeNote)

Description

Sets the Equipment UUID to reference.

Syntax

setEquipmentRefUUID(equipmentRefUUID, changeNote)


  • Parameters

String equipmentRefUUID - The UUID of the targeted Equipment item.

String changeNote - A note to accompany this change in the change log. This argument may be omitted.

  • Returns

Nothing

Sepasoft MES Module Suite