Tags and the Project Database Designing a Tag Understanding the Tag Name Syntax Observe the following guidelines when naming a tag: • Your tag names must be unique — you cannot specify the same name for two different tags (or functions). If you type an existing tag name, IWS recognizes that the name exists and will not create the new tag. • You must begin each tag name with a letter . Otherwise, you can use letters, numbers, and the underscore character ( _ ) in your tag name. • You cannot use the following symbols in a tag name: • You can use a maximum of 255 characters for a tag name or a class member name.You can use uppercase and lowercase characters. Tag names are not case sensitive.
Because IWS does not differentiate between uppercase and lowercase characters, you can use both to make tag names more readable. (For example: TankLevel instead of tanklevel .) ` ~ ! @ # $ % ^ & * ( ) - = \ + \ [ ] { } ? • Tag names must be different from system tag names and math functions. Note: Use the @ character at the beginning of a tag name to indicate that the tag will be used as an indirect tag in the project. Some valid tag examples include: • Temperature • pressure1 • count • x Choosing the Tag Type IWS allows you to create the following types of tags: • Basic tags hold a single value. • Array tags are a set of tags that use the same name with unique indexes.
• Class tags are a set of compound tags that consist of user-defined data types (Boolean, Integer, Real or String) or data-type structures. • Indirect tags are pointers that provide indirect access to another tag type, including class tags. A discussion of these tag types follows. Basic Tags A basic tag receives a single value. Typically, most tags defined for a project are basic tags. Some examples of a basic tag include:
• TankID (to identify different tanks in your project) • Temperature (to identify the current temperature of an object) • Status (to identify whether an object is open or closed) Array Tags An array tag consists of a set of tags that all have the same name, but use unique array indexes (a matrix of n lines and one column) to differentiate between each tag. An array index can be a fixed value, another tag or an expression. Maximum array sizes are determined by product specifications. You can use array tags to: • Simplify configurations • Enable multiplexing in screens, recipes, and communication interfaces Page 110 InduSoft Web Studio