18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Background Tasks<br />

Recipe worksheet<br />

A Recipe worksheet is used to load tag values from or save tag values to an external file during runtime. It is<br />

typically used to execute process recipes, but you can store any type of information (such as operation logs,<br />

passwords, and so on) in the external file.<br />

To create a new Recipe worksheet, do one of the following:<br />

• On the Insert tab of the ribbon, in the Task Worksheets group, click Recipe;<br />

• Right-click the Recipes folder in the Project Explorer, and then click Insert on the shortcut menu; or<br />

• Click New on the Application menu, click the File tab, and then select Recipe Worksheet.<br />

To edit an existing Recipe worksheet, double-click it in the Project Explorer.<br />

The worksheet is divided into two areas:<br />

Recipe worksheet<br />

• Header area (top section), which contains information for the whole group<br />

• Body area (bottom section), where you define each tag in the group.<br />

Use the Header parameters on this worksheet as follows:<br />

• Description field: Type a description of the worksheet, for documentation purposes.<br />

• File Name field: Type the name of the external file, using static text ( File1 ) or a indirect tag<br />

( {FileNameTag} ).<br />

• Register Number field: Type a tag to define the register number to be read or written into a DBF file. (This field<br />

is for legacy purposes only and is no longer used.)<br />

• Save As XML: Select (check) to save information in XML format, or deselect (uncheck) to save in DAT format.<br />

You can load information in a .DAT file into different tags using a second Recipe worksheet, but you must<br />

load information in an .XML file into tags with the same name as the tag from which the data originated.<br />

Note: As with HTML pages, you must be running the Web server to view XML data from the<br />

Web. Unlike the HTML pages in the runtime system, XML pages do not need to have the project<br />

running to view the XML data. (You must be running Internet Explorer version 5.0 or higher to<br />

view XML data.)<br />

• Unicode checkbox: Click (enable) to save the recipe in Unicode format (two bytes per character) or (disable)<br />

to save the recipe in ANSI format (one byte per character).<br />

Note: When saving a worksheet, you can save it using any name you choose (you are not required<br />

to use a predefined file name). A configuration file using the default extension .RCP (or .XSL if you<br />

specify Save As XML) contains the recipe configuration and the File Name field contains the data file<br />

name to be read or written.<br />

Use the Body parameters on this worksheet as follows:<br />

• Tag Name field: Type tag names to update with file contents or with values to write to a file. If the tag is an<br />

array, you must specify the first position to use.<br />

Page 308<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!