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 />

Designing a Tag<br />

Understanding the Tag Name Syntax<br />

Observe the following guidelines when naming a tag:<br />

• Your tag names must be unique — you cannot specify the same name for two different tags (or functions).<br />

If you type an existing tag name, IWS recognizes that the name exists and will not create the new tag.<br />

• You must begin each tag name with a letter. Otherwise, you can use letters, numbers, and the underscore<br />

character (_) in your tag name.<br />

• You cannot use the following symbols in a tag name:<br />

` ~ ! @ # $ % ^ & * ( ) - = \ + \ [ ] { } < > <br />

• You can use a maximum of 255 characters for a tag name or a class member name.You can use uppercase<br />

and lowercase characters. Tag names are not case sensitive. Because IWS does not differentiate between<br />

uppercase and lowercase characters, you can use both to make tag names more readable. (For example:<br />

TankLevel instead of tanklevel.)<br />

• Tag names must be different from system tag names and math functions.<br />

Note: Use the @ character at the beginning of a tag name to indicate that the tag will be used as an<br />

indirect tag in the project.<br />

Some valid tag examples include:<br />

• Temperature<br />

• pressure1<br />

• count<br />

• x<br />

Choosing the Tag Type<br />

IWS allows you to create the following types of tags:<br />

• Basic tags hold a single value.<br />

• Array tags are a set of tags that use the same name with unique indexes.<br />

• Class tags are a set of compound tags that consist of user-defined data types (Boolean, Integer, Real or<br />

String) or data-type structures.<br />

• Indirect tags are pointers that provide indirect access to another tag type, including class tags.<br />

A discussion of these tag types follows.<br />

Basic Tags<br />

A basic tag receives a single value. Typically, most tags defined for a project are basic tags. Some examples of<br />

a basic tag include:<br />

• TankID (to identify different tanks in your project)<br />

• Temperature (to identify the current temperature of an object)<br />

• Status (to identify whether an object is open or closed)<br />

Array Tags<br />

An array tag consists of a set of tags that all have the same name, but use unique array indexes (a matrix of n<br />

lines and one column) to differentiate between each tag. An array indexcan be a fixed value, another tag or an<br />

expression. Maximum array sizes are determined by product specifications.<br />

You can use array tags to:<br />

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

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

Saved successfully!

Ooh no, something went wrong!