Rockwell-automation 5370-UPK CVIM USER-PAK Option Manual de usuario Pagina 117

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 142
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 116
Chapter 8
Defining Strings for Serial Ports and Viewports
841
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
Vista de pagina 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 141 142

Comentarios a estos manuales

Sin comentarios