
Chapter 8
Defining Strings for Serial Ports and Viewports
8–41
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).
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
master range passes (the part passes). Otherwise, once PART REJECTED is
displayed, it remains on screen, even though parts are not failing inspections.
The string text for the PART REJECTED message is simply this:
In order to display the message only when the master range fails, we need to
set the Event menu so that Master Range and Print on FAIL are selected:
Event Menu
Print on FAIL selected
Master Range selected
Comentarios a estos manuales