Referencing Parameters in Batch Recipes

Sepasoft MES Module Suite

Syntax for Referencing Parameters

You can reference any parameter within a Batch Recipe using the syntax shown below. Levels can be eliminated based on your recipe structure. Parameter references are provided to formulas with the same syntax.

Success

Syntax down to the parameter and/or sub-parameter

A single line of Python, start the expression with 'param'.

param("/Procedure/Unit Procedure/Operation:Step.Parameter.SubParameter")

Parameter reference syntax: Explanation:


A logic step

For example, "/{}" means "This Procedure", "/{}/{}" means "This Unit Procedure", and "/{}/{}/{}" means "This Operation". 

/{}

or

/<Procedure(recipe)>



Points to the top recipe level 'This Procedure' 


Example of referencing a parameter at the recipe level. The dot '.' brings up intellisense and lists all possible values: 

/{}.

/{}/{}

or

/{}/<UnitProcedure>

or

/<Procedure>/<UnitProcedure>


Points to a unit procedure element: 'This Unit Procedure'

/{}/{}/{}

or

/{}/{}/Operation

or

/Procedure/UnitProcedure/Operation


Points to an Operation element: 'This Operation'
/{}/{}/<operationname>:<phasename>.<paramname>
Points to a phase parameter


:


The colon specifies a sub-step on the logic; Such as,  "/{}/{}/{}:Mix" would be referencing a phase named "Mix" on an Operation element. 


.

A dot specifies a parameter of either a logic item or a phase. 

For example, "/{}/{}.UP_Param" references a parameter named "UP_Param" on a Unit Procedure logic item.

"/{}/{}:UP2.Complete" references the "Complete" parameter on a step named "UP2" inside a Unit Procedure logic item.

{}.Param

A parameter within the same step or phase.

For example, when editing a phase, a parameter calculation can contain "param("{}.Unit_Path")". In this case, a "/" will not be prepended to the path.

/{}.Param


Parameter named "Param" on the "current" Procedure

/{}/P2.Param


Parameter named "Param" on a "Unit Procedure" step named "P2"

/{}/{}.Param


Parameter named "Param" on the "current" "Unit Procedure" step

/{}/P2:UP2.Complete


Parameter named "Complete" on a step named "UP2" inside a Unit Procedure step named "P2"

/{}/{}:UP2.Complete


Parameter named "Complete" on a step named "UP2" inside a Unit Procedure step named "P2"

/{}/P2:UP2.Complete


Parameter named "Complete" on a step named "UP2" inside the "current" Unit Procedure step

/{}/P2/UP4.Param


Parameter named "Param" on an Operation step named "UP4" inside a Unit Procedure step named "P2"

/{}/P2/{}.Param


Parameter named "Param" on the "current" Operation step inside a Unit Procedure step named "P2"

/{}/{}/{}.Param


Parameter named "Param" on the "current" Operation step inside the "current" Unit Procedure step

/{}/P2/UP4:O2.Complete


Parameter named "Complete" on a step named "O2" inside an Operation named "UP4", which is inside a Unit Procedure named "P2"

/{}/P2/{}:O2.Complete


Parameter named "Complete" on a step named "O2" inside the "current" Operation, which is inside a Unit Procedure named "P2"

/{}/{}/{}:O2.Complete

Parameter named "Complete" on a step named "O2" inside the "current" Operation, which is inside the "current" Unit Procedure

Sepasoft MES Module Suite