Rockwell-automation 5370-CUPK Color CVIM USER-PAK Option Manual de usuario Pagina 129

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 160
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 128
Chapter 8
Defining Strings for Serial Ports and Viewports
8 40
Example 4 Using Repeat String and # (Index) Character
The first column in the viewport display (Gage 1:, Gage 2:, etc.) was created
using a single viewport string, along with the Repeat String feature.
Figure 8.15 Example of using repeated strings in custom runtime displays
Example 4
Here are the elements of the text used to create the string:
Literal text (enclosed in quotes) is used to display the word Gage and the
: (colon).
The # (index) character, when used as a standalone character (that is, not
as part of a data code), displays the current value of the index. In this
case, used with the Repeat String feature (discussed below) the #
character is used to supply the gage numbers 1-5 for the repeated Gage
string.
The N (newline) character causes subsequent string text to be displayed
directly below the previous text. In this case, used with the Repeat
String feature (discussed below) the N character is placed at the end of
the string, and is used to display the repeated string in a column, rather
than across from left to right, which is not desirable in this case.
Vista de pagina 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 159 160

Comentarios a estos manuales

Sin comentarios