What is a Recipe?
SECTION 10 Recipes
153
SECTION 10
Recipes
This chapter describes CX-Supervisor recipes and the procedures associated
with the creation, amendment and removal of recipes using the Recipe Editing
facility. The use of recipes during the running of a project is also described.
10-1
What is a Recipe?
A recipe is a means of preparing a sequence of steps which can be repeated
verbatim as and when required. A typical use for a recipe is to initialise some
point data values prior to the commencement of a particular operation under
the control of a CX-Supervisor project.
A CX-Supervisor recipe consists of one or more ingredients, each of which
relates to a point. Each ingredient assigns a value to a point by means of a
target value.
A suite of CX-Supervisor recipes may be created for any project. In runtime,
the recipes are a great time-saver that eliminate mistakes that may otherwise
be made were the repetitive tasks they perform left to human endeavour.
It is possible to achieve simple point initialisation using the CX-Supervisor
script language. This approach works perfectly well for relatively straight-
forward applications. However, further functionality is provided using the
recipe system, such as the ability to modify a recipe while the CX-Supervisor
project is being executed in runtime.
10-2
Recipe Components
Before proceeding any further with the description of recipes, some basic
recipe terminology must be introduced:
•
Recipe. A recipe is a set of pre-defined steps used to perform a particular
task. A CX-Supervisor project may contain none or many. Recipes are
defined in the development environment and executed, or downloaded, in
the runtime environment.
•
Ingredient. Each recipe consists of at least one ingredient. Each
ingredient must be related to an existing point.
•
Target Value. An ingredient must specify a target value for its related point.
This is the value to which the point is set in runtime when the recipe is
downloaded.
•
Validation Code. Recipe validation code is CX-Supervisor script code
which is used to check point values before downloading a recipe.
•
Download. A recipe is downloaded during runtime. This process involves
identifying the appropriate recipe and executing the validation code, if any
exists. The download is complete when each ingredient has set its point
to the target value.
10-3
Viewing Recipes in the Recipe Editor
The
Recipe Editor
allows the creation, editing, copying and deletion of recipe
definitions. To use the Recipe Editor, CX-Supervisor must currently have a
project open. If no project is currently open, select Open from the Project
menu to open a previously saved project, or select
New
from the Project menu
to create a new project.
To open the Recipe Editor dialog box, click the
button.
Содержание CX-Supervisor
Страница 1: ...CX Supervisor Software Cat No W10E EN 01 User Manual Software Release 3 1...
Страница 3: ...Copyright Notice 2...
Страница 16: ...15...
Страница 17: ...16...
Страница 27: ...Tip of the Day SECTION 1 Graphics Editor 26...
Страница 35: ...CX Supervisor Preferences SECTION 2 Pages 34...
Страница 79: ...Responding to Events SECTION 5 ActiveX Objects 78...
Страница 115: ...Printing the Graphics Library SECTION 7 Graphics Library 114...
Страница 181: ...Data Logging SECTION 11 Data Logging 180...
Страница 201: ...Examples SECTION 12 Databases 200...
Страница 243: ...Performance Monitor SECTION 16 Application Analysis Performance Monitor 242...
Страница 253: ...Using with Omron s CX Server OPC SECTION 17 Using CX Supervisor as an OPC Cli 252...
Страница 259: ...Creating a CX Supervisor Client application SECTION 18 Connecting to a remote CX 258...
Страница 263: ...Adding a Point Linked to a Parameter SECTION 19 Connecting to Omron Industrial 262...
Страница 271: ...Data Logging SECTION 20 Best Practices 270...
Страница 275: ...Configuring a Server PC running Windows NT or 2000 Appendix A Configuring a PC 274...
Страница 277: ...Appendix B Frequently Asked Questions 276...
Страница 296: ...Appendix B Frequently Asked Questions 295...
Страница 297: ...Appendix B Frequently Asked Questions 296...
Страница 298: ...Appendix B Frequently Asked Questions 297...
Страница 299: ...Appendix B Frequently Asked Questions 298...
Страница 333: ...Revision history 332...