Choosing the Tag Data Type

Another consideration when designing a tag is what type of data the tag will receive. IWS recognizes the following, standard tag data types:

You can also make a tag into a compound tag by assigning it a Class. A Class is a template consisting of two or more tag definitions, each with its own data type. You can use Classes in projects that have items (e.g., tanks of liquid) with multiple attributes (e.g., fill level, temperature, pressure) to be monitored or controlled.

You can find these tag types (and their respective icons) in the Global tab of the Project Explorer.

See also: Understanding Tag Properties and Parameters

Changing How Boolean Tags Receive Numeric Values

By default, if any numeric value other than 0 (i.e., ≠0) is written to a Boolean tag, then the tag automatically assumes a value of 1. You can change this behavior, if necessary, by editing the project_name.app file to change the following setting:
[Options]
BooleanTrueAboveZero=value
If BooleanTrueAboveZero is set to the default 0, then the project will behave as described above. If BooleanTrueAboveZero is set to 1, then the project will behave as follows:
  • When you write any numeric value less than or equal to 0 (i.e., ≤0) to a Boolean tag, the tag assumes a value of 0 (false).
  • When you write any numeric value greater than 0 (i.e., >0) to a Boolean tag, the tag assumes a value of 1 (true).
CAUTION:
This is a global runtime setting. If you only want to change how certain tags are handled, then you should not change this setting.