Rockwell Automation 5370-CUPK Color CVIM USER-PAK Option User Manual

Page 131

Advertising
background image

Chapter 8

Defining Strings for Serial Ports and Viewports

8 – 42

The Color CVIM module thus displays the string for each index value, until
the index value exceeds the

End

value. If the # character is included in the

repeated string, the current index value replaces the # character in the string.

In our example, to display the string 5 times, and include the numbers 1-5 in
the five strings, respectively, we set the

Start

value to 1, the

End

value to 5,

and the

Increment

to 1. The index will increment through values 1 to 5,

printing the string five times. If instead we needed to indicate the numbers
6-10, we can set the

Start

value to 6, the

End

value to 10, and set the

Increment

to 1, so the index will increment from 6-10, and so forth.

Example 5 – Using Data Codes and # (Index) Character

The second and third columns in the viewport display (the mean and
standard deviation values, respectively, for gages 1-5) were created using a
single viewport string, along with the

Repeat String

feature.

Figure 8.17 Example of using data codes and index characters in runtime displays

Example 5

Here is the string text used to create the displayed strings:

Here are the elements of the string text used:

Data codes are used to display the mean (data code

Sn.3

, where n is the

tool type and tool number indicator – see Table 8.A Data Codes in this
chapter) and the standard deviation (data code

Sn.4

) in the string. In

both cases, we use the # character in place of the n in the data codes; thus
when the string is repeatedly displayed, the current index number is
inserted, designating, in this case, both the tool type and tool number.

Advertising