Tag Bit and Array Tag Pointing

In certain cases it may be necessary to display or set one individual bit of a Word or Dword type tag.

To do this proceed as follows:

 

  1. Open a screen and insert a object, for example a Display

  2. Assign the Display object with the Tag to be monitored

  3. Open the object's command Tooltip and insert the "1" syntax in "Input Expression Code:" field to read/write the tag's 1 bit.

  4. In project Runtime the Display will display/write only the Tag's 1 bit.

 

 

Use the object's Tooltip "Expression:" field for pointing to individual Tag bits or array elements

 

Very much of this procedure is the same used for pointing to individual array tag elements.  In this case, after having associated the array variable to the object you must insert the number of items to be pointed to in the "Expression:" field by specifying the number enclosed within square brackets.  For example to point to the first array element, being the 0 element, you must insert the "[0]" syntax.  Proceed in this way:

 

  1. Open a screen and insert an object, for example a Display object.

  2. Assign the Display object with the Tag to be monitored.

  3. Open the object's command Tooltip and insert the  "[0]" syntax in the "Input Expression Code:" field to read/write the 0 element of the Array Tag

  4. The Display will display/write the Arrary tag's 0 element in project Runtime.