Conditional color–coding – Rockwell Automation 5370-UPK CVIM USER-PAK Option User Manual
Page 89
![background image](/manuals/580467/89/background.png)
Chapter 8
Defining Strings for Serial Ports and Viewports
8–13
Examples: Assume formula 1 result = 1234.56
This code
transmits (or displays) this field:
F1(7.2)
1234.56
F1(8.1)
_ _ 1234.5
F1(–8.1)
1234.5 _ _
F1(08.1)
001234.5
F1(–08.1)
1234.500
F1(6.3)
1234.5
F1(5.0)
_ 1234 (with .0 used, the decimal point is suppressed)
Default Formats:
If you do not specify a format for a data or index field, the default format is
used. The default formats are:
(9)
for all fields, other than index fields, with no decimal places. The
field width is 9 characters; the contents of the field are right justified.
(9.3)
for fields with decimal places. The field width is 9 characters –
including five places left of the decimal point, and three decimal places.
(2)
for index fields. That is, the field width is 2 characters; the contents
of the field are right justified.
Special case for OCR: The transmitted or displayed result field for a
window configured for OCR will, by default, contain as many places as
characters in the window result.
For consistency in appearance, it is suggested that the field width be
specified for OCR window results.
Conditional Color–coding
You can color–code any tool value based on the pass/warn/fail status of the
respective tool result status. You do this by placing the conditional color
code indicator (the ! symbol) after the particular data code.
With the ! symbol added to a data code, when the string is displayed, the
corresponding tool data is displayed in one of three colors, depending on the
tool result status – Green (if the tool passes), Yellow (if the result is in the
Warning
range), or Red (if the tool fails). The conditional color overrides
the string color assigned using the
Color Selection
menu.
Note: MATH–PAK formulas can be defined which override the ranges of
a particular tool, in which case the respective tool result status is always
“PASS.” If this is the case for the tool result indicated in the conditional
color–coding, the resulting color will always be green, for pass.