Numeric Display
The Numeric Display graphic element is a control with built-in animation properties to show a numeric value. Numeric Display appears under
CommonControls
in the Toolbox
.Use the
Numeric Display
graphic element to show numeric data from a bound tag on the HMI device. For example, use a numeric display to show the current temperature of an oven.
IMPORTANT:
A numeric display’s .Value property is treated as a string when using the “+” operator, causing a concatenation to occur instead of an addition. To force an addition of .Value properties, first multiply .Value by 1.
For example, (NumericDisplay_001.Value*1) + (NumericDisplay_002.Value*1) will perform an addition of the .Value properties. However, NumericDisplay_001.Value + NumericDisplay_002.Value will perform a concatenation of the .Value properties.
You can bind the
Value
property to a numeric tag (DINT, INT, SINT, or REAL) to an expression. You can also bind the Value
property to a string tag if the string consists of only numerals. For example, the string value 456 displays as an integer and the string value 321.0 displays as a floating-point value.Use the
Rounding
field to specify how the numeric tag value appears when the amount of decimal places used by the numeric tag value exceeds the DigitsAfterDecimal
value. For example, if DigitsBeforeDecimal
is 3, DigitsAfterDecimal is 2, and Rounding
= Nearest, the value 112.345 displays as 112.35.
TIP:
- If theValueproperty is assigned to an integer tag, theDigitsAfterDecimalproperty value is ignored. For example, ifDigitsBeforeDecimalis 3 andDigitsAfterDecimalis 1, the INT tag value 123 displays as 123 instead of 123.0.
- If theValueproperty is unassigned, the numeric display fills with asterisks.
- If the value does not fit within the bounding box of the graphic element, the numeric display is filled with asterisks.
- If the integer portion of the value, including the minus sign, contains more digits than specified for the display, the numeric display shows the value in scientific notation.
- If the number of characters required to show the value in scientific notation exceeds the sum of theDigitsBeforeDecimalandDigitsAfterDecimalfields, the numeric display fills with asterisks.
- If the value contains invalid characters, the numeric display shows dashes in place of the value. An error message appears above the graphic element.
Built-in animation properties
Built-in animation properties appear under the
General
category of the Properties
window. Specify values for these properties in order to animate the graphic element or change the information the graphic element shows on the HMI device. Name | Category | Purpose | Accepted values |
Value | General | Specifies the value of the graphic element. | Bound tag |
Unique properties are properties that not all graphic elements in the
Toolbox
share.Name | Category | Purpose | Accepted values |
CornerRadius | Appearance | Specifies the curve of the corners. | 0 or a positive number |
FillColor | Appearance | Specifies the fill color. | Any selected color in the Color Picker or a Hex color value entered manually. The Hex value must be in the format #RRGGBB. R, G, and B are Hex digits from 0 through F and represent the color channel values for red, green, and blue. For example, #ffff00 produces yellow. |
TextAlignment | Appearance | Specifies the vertical and horizontal alignment of the text. | Vertical alignment:
Horizontal alignment:
|
Color | Appearance/Border | Specifies the color of the border. | Any selected color in the Color Picker or a Hex color value entered manually. The Hex value must be in the format #RRGGBB. R, G, and B are Hex digits from 0 through F and represent the color channel values for red, green, and blue. For example, #ffff00 produces yellow. |
Style | Appearance/Border | Specifies the style of the border line. |
|
Width | Appearance/Border | Specifies the width of the border line. |
|
FontName | Appearance | Specifies the font of the text. | Any selected font |
FontColor | Appearance | Specifies the color of the text. | Any selected color in the Color Picker or a Hex color value entered manually. The Hex value must be in the format #RRGGBB. R, G, and B are Hex digits from 0 through F and represent the color channel values for red, green, and blue. For example, #ffff00 produces yellow. |
FontSize | Appearance | Specifies the size of the text. | Positive numbers |
Bold | Appearance | Makes the text or value on the graphic element bold. |
|
Padding | Appearance | Specifies the distance, in points, between the content of the element and the edge of the element. | Any numeric value |
DigitsBeforeDecimal | Numeric | Specifies the number of digits before the decimal point. | 0 - 9 |
DigitsAfterDecimal | Numeric | Specifies the number of digits after the decimal point. | 0 - 9 |
LeadingZero | Numeric | Places a zero before REAL numbers that are less than 1. |
|
TrailingZeros | Numeric | Specifies that zeros fill the remaining decimal places. |
|
Rounding | Numeric | Specifies the rounding method for the decimal portion of REAL numbers. |
|
Common properties exist for all graphic elements.
Property | Category | Purpose | Accepted Values |
Access | Security | Specifies if all users have access to the control element, or if access is inherited from the screen. |
|
Angle | Position and Size | Specifies the rotation angle. Enter 180 to display the graphic element upside down. If you enter a value larger than 360, the portion of numeric value that is over 360 becomes the value. For example, enter 380 to see a value of 20. If you enter a value less than 0, the negative value is subtracted from 360. For example, enter -30 to see a value of 330. |
|
Enabled | Appearance | Specifies if the graphic element is available on the HMI device and if the graphic element accepts touch and key input. |
|
Height | Position and Size | Specifies the height in pixels. | Any positive numeric value |
Opacity | Appearance | Specifies the transparency of the graphic element. | 0 (fully transparent) - 100 (fully opaque) |
Visible | Appearance | Specifies if the graphic element is visible on the HMI device. |
|
Width | Position and Size | Specifies the width in pixels. | Any positive number |
X | Position and Size | Specifies the horizontal coordinate, in pixels, from the upper left corner of screen to the upper left corner of a graphic element or group with no rotation. If the graphic element or group is rotated, the X property value does not change. | Any positive number |
Y | Position and Size | Specifies the vertical coordinate, in pixels, from the upper left corner of screen to the upper left corner of a graphic element or group with no rotation. If the graphic element or group is rotated, the Y property value does not change. | Any positive number |
Provide Feedback