Rockwell Automation 5370-CUPK Color CVIM USER-PAK Option User Manual
Page 133
Chapter 8
Defining Strings for Serial Ports and Viewports
8 – 44
current index number is inserted, designating the specific tool type and
number for the mean and standard deviation.
Keep in mind that we are displaying the mean and standard deviation for
gages 1-5. According to the data code table (see “Data Codes” this chapter),
the code
S9.3
will display the mean for gage 1, the code
S10.3
will
display the mean for gage 2, etc. Likewise, the code
S9.4
will display the
standard deviation for gage 1, the code
S10.4
will display the standard
deviation for gage 2, etc. Thus, to have the correct values inserted in the
respective data codes, we need to set the
Repeat String
parameters as
follows:
•
Start:
9
•
End:
13
•
Increment:
1
Thus, in this example, we display the string 5 times, and include the numbers
9-13 in the five strings, respectively, where they are used to invoke the
corresponding mean and standard deviation values for gages 1-5.
Example 6 – Conditionally Displaying a Text String
The “PART REJECTED” string in the viewport is conditionally displayed;
that is, it appears only when the master range fails (the part fails).
Figure 8.18 Example of custom runtime displays (viewports)
Example 6
In order to achieve this, we use literal text in the string code to create the
“PART REJECTED” message, then set the event
for the string, using the
Event
menu, so that the string is displayed whenever the master range fails.
In addition, since a
Text
viewport string is not automatically erased from
inspection to inspection, we need to create a second string, displayed in
Clear
text, in order to “erase” the PART REJECTED message when the