![background image](http://html1.mh-extra.com/html/omron/cx-supervisor/cx-supervisor_user-manual_744211154.webp)
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.
Summary of Contents for CX-Supervisor
Page 1: ...CX Supervisor Software Cat No W10E EN 01 User Manual Software Release 3 1...
Page 3: ...Copyright Notice 2...
Page 16: ...15...
Page 17: ...16...
Page 27: ...Tip of the Day SECTION 1 Graphics Editor 26...
Page 35: ...CX Supervisor Preferences SECTION 2 Pages 34...
Page 79: ...Responding to Events SECTION 5 ActiveX Objects 78...
Page 115: ...Printing the Graphics Library SECTION 7 Graphics Library 114...
Page 181: ...Data Logging SECTION 11 Data Logging 180...
Page 201: ...Examples SECTION 12 Databases 200...
Page 243: ...Performance Monitor SECTION 16 Application Analysis Performance Monitor 242...
Page 253: ...Using with Omron s CX Server OPC SECTION 17 Using CX Supervisor as an OPC Cli 252...
Page 259: ...Creating a CX Supervisor Client application SECTION 18 Connecting to a remote CX 258...
Page 263: ...Adding a Point Linked to a Parameter SECTION 19 Connecting to Omron Industrial 262...
Page 271: ...Data Logging SECTION 20 Best Practices 270...
Page 275: ...Configuring a Server PC running Windows NT or 2000 Appendix A Configuring a PC 274...
Page 277: ...Appendix B Frequently Asked Questions 276...
Page 296: ...Appendix B Frequently Asked Questions 295...
Page 297: ...Appendix B Frequently Asked Questions 296...
Page 298: ...Appendix B Frequently Asked Questions 297...
Page 299: ...Appendix B Frequently Asked Questions 298...
Page 333: ...Revision history 332...