How a RecipePlus object works at runtime
The RecipePlus table is used to show and edit recipes at runtime. It works with the RecipePlus selector, which selects a recipe file and unit to be acted upon, and the RecipePlus buttons, which determine what operation will be performed with the selected unit. The Save and Restore operations work on the table object.
On a graphics display, create a RecipePlus table, a RecipePlus selector, a RecipePlus button for the Save operation, and another RecipePlus button for the Restore operation.
To see a recipe file in the table, select the recipe file to display and press the Restore button. Once the recipe is shown in the table, you can edit the ingredients. To save the changes, press the
Save
button. To show another recipe, select it in the selector and press Restore.Restore a recipe
When a recipe file is selected in the selector and a button with the Restore operation assigned to it is pressed, this is what happens:
- The selected recipe file and the associated recipe unit (tag set and data set) are opened in the RecipePlus table object.
- The recipe ingredients appear in theIngredientcolumn.
- The tag values in the tag set appear in theCurrentcolumn.
- The values in the data set appear in theRecipecolumn.
- If the value in the Current column is different than the value in theRecipecolumn, an X appears in theComparecolumn.
- The tag names in the tag set appear in theTag Namecolumn.
- The status bar at the bottom of the table displays the recipe file name, the recipe unit name, the number of visible ingredients and the total number of ingredients.
Edit an ingredient
- Unless the View only property is checked in theRecipetab, operators can make changes to the data value of a recipe ingredient.
- To change the value in theRecipecolumn, select the ingredient row in the table and pressEnter.
- If the ingredient type is Numeric, an on-screen keypad appears. Type the new value into the scratchpad and press theEnterkey to write the new value to the table.
- If the ingredient type is String, an on-screen keyboard appears. Type the new string and pressEnterto write the new string to the table.
Save a recipe
When a recipe unit is selected in the selector and a button with the Save operation assigned to it is pressed, this is what happens:
- all the changes made in the Recipe column are saved back to the data set of the current recipe unit.
- the recipe file is updated on the storage card on the terminal and (if in the HMI project) in the runtime application *.mer file.
Use buttons with the RecipePlus table and selector
The following key buttons work with the table and selector objects:
- Move Up
- Move Down
- Page Up
- Page Down
- Home
- End
The following terminal keypad or external keyboard keys work with the table and selector objects:
- Cursor Up
- Cursor Down
- Page Up
- Page Down
- Home
- End
Provide Feedback