Creating a New Recipe SECTION 10 Recipes
156
Enter a suitable ingredient name in the Ingredient Name: field. This name
should be unique and meaningful and identify the particular ingredient being
added to the recipe.
Enter the name of a point which is initialised by this ingredient in the Link to
Point: field. The adjacent Browse button may be used to display the Select
Required Item dialog box, which provides a list of points from which the
selection may be made. The Select Required Item dialog box also provides an
Add Point button which allows a new point to be added. See also chapter 3,
Points. The Quantity/Expression field is used to define the value which is
assigned to the point by this ingredient. This may be a fixed value, such as 50
as in the above expression, or it may be any valid CX-Supervisor script
language expression featuring one or more point names.
The Editable Value at Runtime setting determines whether the target
expression may be changed at runtime when the recipe is downloaded. Only
expressions featuring a fixed value may be edited in this way; expressions
featuring point names may not be edited at runtime.
Select the OK button to add the ingredient to the recipe, or the Cancel button
to abort this part of the operation.
10-4-3 Recipe Validation
Recipe validation is an optional safety check which may be made in runtime as
the recipe is about to be downloaded. If the validation fails, the recipe is not
downloaded.
If no validation is required, make sure the Validate Recipe Before Download
setting is set to 'OFF'.
If validation is required, check this box and then click the Validation Code
button to display the Script Editor dialog box: