The Recipe Values dialog box allows for the following settings to be applied:
- Recipe Value name and description
- Tag path to the tag that will hold the recipe value
- Add a 'Request Value' script
- Value Scaling
- Variance Logging
- Define a Sort Order
The required name is used to reference the recipe value. The name must be unique and must not exist in any of the child production items of the production item that the recipe value is being added to. The reason for this is that recipe values are propagated down to all of the children, and if the name is the same, a conflict will occur. Also, some characters are not allowed in recipe value names.
The recipe value description is used to further describe the recipe value. It appears in the recipe editor component, analysis, reports, and etc.
This is the path to the Ignition tag that is associated with this recipe value. If a recipe value is added but no tag is assigned, it will not appear in the recipe editor, and values will not be used when recipes are selected.
Request Value Script
Script can be added to calculate or obtain a value to return for a recipe value anytime a recipe is selected for a production item. This provides flexibility to do just about anything in place of returning the value stored in the Settings & Changeover system. See Request Value Script section for more information.
The script is passed on Evaluate Variance Script object that allows accessing the current tag information and also allows setting the log variance flag. In the script above, a tag called SomeOtherTag is read and compared to the current value of the tag associated with the recipe value where this script was defined. If the current value is greater than the value of the SomeOtherTag, then the setLogVariance method is called with True meaning the recipe value is in a variance state.
See Enable Variance Monitoring section for details about configuring recipe values.
Variances are logged to the database and can be viewed in the Recipe Variance Viewer component, analysis and reports. The Recipe Variance Time Stamp, Recipe Set Point Value and Recipe Value To data points can be used in analysis to detect when a setpoint is in variance. Each line, cell, cell group and location production items has one or more associated setpoints.
The order in which Recipe Values appear in the Recipe editor can be modified by setting the Sort Order value. This is an integer value with higher values appearing first in the Recipe Editor. The default value is 1.