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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 142
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 89
Chapter 8
Defining Strings for Serial Ports and Viewports
814
For example, suppose the following string text is entered, and is assigned the
color Blue using the Color Selection menu:
Gage 1: g1(4)! (where g1 is the data code for the result of gage 1).
When the string is displayed, the literal text Gage 1: would be displayed in
blue. The result of gage 1 would then be displayed, not in blue, but in one of
the three conditional colors (green, yellow, or red) depending on the status of
the result, as shown below:
Tool result is displayed in green,
yellow, or red.
Gage 1: 115
Literal Text is displayed in blue.
Extended Conditional ColorCoding
You can extend the conditional colorcoding effect in order to colorcode the
part of the string which follows the colorcode indicator in the string text.
You do this simply by placing a double ! symbol (!!) after the data code.
One use of this capability would be to colorcode literal text. For example,
suppose the following string text is entered:
G1(0)!! Gage 1 (where g1 is the data code for the result of gage 1).
In this case, when the string is displayed, the gage result itself is not
displayed, since the format code (0) sets the field width for the data to 0
places. However, the remainder of the string (the literal text Gage 1) is
displayed in one of the three conditional colors (green, yellow, or red)
depending on the status of the result.
Draw Line Codes
You can draw lines within a viewport (either Text or Tool type). You do this
by inserting the draw line code in the string text, which takes this form:
D x,y (space) dx,dy
where:
x = xcoordinate (column number) of starting point of line to be drawn
y = ycoordinate (row number) of starting point
(space) = space required between fields
dx = horizontal component of distance (lefttoright) from start point to
end point of line drawn
dy = vertical component of distance (toptobottom) from start point to
end point
The x and y values are relative to the top left corner of the viewport, the top
left corner having (x,y) coordinate values of (0,0), respectively.
Vista de pagina 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 141 142

Comentarios a estos manuales

Sin comentarios