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.

Tags and the Project Database<br />

•<br />

Project Tags dialog: Click the Datasheet View icon in the Project Tags folder.<br />

The Project Tags datasheet contains five columns (see the following sample dialog).<br />

Project Tags dialog<br />

Use this dialog to create, modify, or delete tags or tag properties. You can right-click on a tag property and use<br />

standard Windows commands to cut (Ctrl+X), copy (Ctrl+C), or paste (Ctrl+V), any tag and its properties. You<br />

can also undo (Ctrl+Z) the last modification to a field.<br />

Tip: You can sort the data in the Project Tags sheet and/or insert/remove additional columns to/<br />

from the sheet by right-clicking on it and choosing the applicable option from the shortcut menu.<br />

EXTENDING THE PROJECT TAGS DATASHEET<br />

The Project Tags worksheet can be extended up to 65,488 rows, if necessary.<br />

The datasheet is normally limited to a maximum of 32,721 rows. (This is separate from the maximum size of<br />

the project database as a whole, as well as the runtime limit that is set when you select a target platform for a<br />

new project.)<br />

To extend the worksheet, edit your project file (project_name.app) to include the following entry:<br />

[Options]<br />

EnableExtendedTagCount=1<br />

Doing so, however, brings the following restrictions:<br />

• Project tags in rows 32,722–65,488 of the worksheet cannot be used as array indices in expressions. That<br />

is, in an expression like Abs(numArray[indexTag]), indexTag cannot be in that range of rows. (This<br />

restriction does not apply to the VBScript interface.)<br />

• In a Class worksheet, only the first 32 class members can have alarms. For all class members after the<br />

first 32, alarms will not work.<br />

Generally speaking, extending the Project Tags datasheet stretches the capabilities of IWS and should be done<br />

only when it's absolutely necessary. It is better to design your project to conserve tags.<br />

Classes Folder<br />

The Classes folder contains all of the project classes and their respective members. Classes are compound<br />

tags consisting of user-defined data-type structures or tag types (Integer, Real, Boolean, and String). Classes<br />

allow for high-level encapsulation in the project database. A class-type tag provides a set of values for its<br />

members.<br />

To define a class you must define the members and their types. Class members are variables that hold values<br />

for an object with particular characteristics. Thus, the defining a class can be very useful for projects with a<br />

repeating group of variables.<br />

<strong>InduSoft</strong> Web Studio Page 111

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

Saved successfully!

Ooh no, something went wrong!