Nest recipes to create complex structures
- Last UpdatedApr 18, 2025
- 2 minute read
Multiple recipe template files can be linked to each other with InTouch QuickScripts to create complex applications. You link recipe template files by defining an ingredient name that is associated with a message tag in the Unit Name template. Then, you load the message tag with the name of a recipe.
Linking recipe template files allows you to create primary recipe template files that define machine configuration parameters used by various recipes in different recipe files. Keeping this type of information in one central file greatly reduces the time it takes to maintain and update data whenever it changes.
In the following figure, the Item Name Setup tag is defined as a message type and the units contain the Setup message tag for this item. Each recipe contains a second recipe name defined in a different recipe file that is loaded into the Setup tag when the recipe is selected.

To do so, the following script would be entered:
RecipeName="Recipe2";
RecipeLoad("c:\recipe\recfilea.csv", "Review", RecipeName);
When this script runs, the value of the Setup tag becomes Setup3A and is loaded into the Review unit. The value of the Setup tag is then used as the Recipe Name in the next recipe loading that loads the machine setup parameters into the tags defined for the PLC1 unit by running the following script:
RecipeLoad("c:\recipe\machine.csv", "PLC1", Setup);
