Recipes

The Recipe Instantiable Model (users.%.models.recipe) is part of Iotellect Monitoring MES Core.
This model defines the recipes used to produce end products and components.
It includes two main variables: Segments and Production Cost Expression.

Variables

Segments Variable

The Segments variable (segments) of any recipe stores the sequence of processing stages or technological operations that must be performed to create the product associated with that recipe.
This sequence of operations is assumed to produce one minimum batch of the product.

Field

Type

Description

inputProducts

Data Table

Table that overrides the input products of the segment

segment

String

Segment context

outputProducts

Data Table

Table that overrides the output products of the segment

Production Cost Expression Variable

The Production Cost Expression variable (productionCostExpression) plays a key role in automatic schedule generation, as it stores the expression that defines the cost of using a recipe when producing a product. This expression must return a numeric value (representing the estimated production cost) and can be calculated based on the following parameters:

Parameter

Type

Description

{.:}

String

Recipe Context

{quantity}

Double

Quantity of the product to be produced

{measurementUnit}

String

Measurement unit of the product quantity

{storageStatus}

Data Table

Status of storage cells at the time of planned production

{rootProductionEntity}

String

Root production entity that defines the production scope

{commercialOrder}

Data Table

Commercial order data

The expression is evaluated automatically during production scheduling.

Core Functions

getProductionCost

Calculates the Production Cost Expression (productionCostExpression). By default, the function uses the table of parameters passed to it for evaluation.

Function:

getProductionCost

Permissions:

Available at the Observer permission level

Input Records:

0...unlimited

Input Format:

See parameters above

Output Records:

1

Output Format:

Double — calculated production cost

getSegments

Returns all recipe segments with their input and output products, adjusted according to the parameters passed into the function.

Function:

getSegments

Permissions:

Available at the Observer permission level

Input Records:

1

Input Format:

Field

Type

Description

rootProductionEntity

String

Root production entity

storageStatus

Data Table

List of storage units and their contents

commercialOrder

Data Table

Commercial order data

Output Records:

1

Output Format:

Field

Type

Description

inputProducts

Data Table

Input products of the segment

segment

String

Segment context

outputProducts

Data Table

Output products of the segment

Was this page helpful?