Example

The recipe management example shows the use of the recipe management at runtime. It thereby extends the functions available in the Actions and Conditions Editor by the use of the Framework API. The example serves as the point of entry to the recipe management and can be extended as desired. In parallel with the example project, observe the chapter "Management in the engineering".

The example consists of a TwinCAT HMI project and a TwinCAT project with example symbols in the PLC. The example contains a total of three symbols, which are used by two different recipe types. Symbol 1 and Symbol 2 are the symbols from the PLC and Symbol 3 is an offline symbol. The offline symbol illustrates that symbols from other sources (OPC UA, use-specific server extension, etc.) can also be used as the ADS extension.

The example can be downloaded here.

User interface

The example has a user interface in the client that can execute various functions of the recipe management at runtime. These are described in more detail below.

Example 1:

1. Recipe selection: All available recipe types are displayed in the combo box. If there is a recipe inside a folder, the relative path to the recipe is displayed. The combo box is used to select the recipe that is used as the basis for the other buttons and fields in this example.

2. Teach and activate recipe: The recipe currently selected in the combo box can be edited in this area.

3. Upload and download recipe: This area enables recipes to be downloaded and uploaded. The file browser of the respective browser that enables the selection of the storage location or the selection of the recipe thereby opens.

Example 2:

The upload and download functions are not available in the LiveView in Visual Studio.

4. Display and edit recipe: This area enables the display and editing of the recipe members (symbols) of the currently selected recipe.

5. Online recipe values: The current online values of the three symbols Value 1, Value 2 and Value 3 are displayed in this area.