Recipe Database Automation Server
- Last UpdatedJun 19, 2019
- 2 minute read
You can use the Recipe Database Automation Server (RecipeEdit.exe) to read and modify the batch control system recipe database.
The following list describes some of the activities that you can perform in a custom application using this server:
-
Add, change, and delete recipes
-
Query and change recipe header information
-
Query and change recipe equipment requirements
-
Query and change formula inputs defined for a recipe
-
Query and change formula outputs defined for a recipe
-
Define and modify the formula for a recipe
-
Define a recipe procedure
Refer to the appropriate COM-based environment documentation for specific details on installing automation servers within that environment.
To run a custom application that incorporates functions from the recipe server on a batch client, you must configure the DCOMCNFG utility as shown in the following figures to direct the application to the recipe server on the batch server.
Note: To run the Recipe Database Automation Severs on a 64-bit machine, you must configure the DCOMCNFG utility in 32-bit version. To do this, use the command mmc comexp.msc /32 in the system Run prompt.

The recipe automation server is comprised of a single object class. This class contains many properties and methods that mimic the functionality of the Recipe Editor accessed from Environment Display. To use the server effectively, it is critical that you thoroughly understand the structure and creation of recipes is critical.
The following diagram illustrates the main components of a recipe.

A recipe has four parts:
-
The header contains general information about the recipe such as the name and sizing.
-
The equipment requirements define the classes and instances of equipment that are required for the recipe.
-
The formula contains the materials and their quantities that are consumed and produced in the recipe.
-
The procedure defines the sequence of unit procedures, operations and phases to be processed in the recipe.
Access to each of these parts is possible using this automation server.
You can configure the batch management system for two recipe levels (unit procedures and phases) or three recipe levels (unit procedures, operations, and phases). The Recipe Database Automation Server provides functions to access all parts of the recipe regardless of the number of levels that you define. It is the responsibility of the programmer to account for the number of recipe levels defined and use the appropriate functions accordingly. You can use the MiscGet2Levels method available with the AVEVA Batch Management ActiveX Control to determine the number of recipe levels defined for the system.
For more information on the AVEVA Batch Management ActiveX control, see Chapter 4, AVEVA Batch Management ActiveX Control.