Difference between revisions of "BarlevelGraphic"

From AdvancedHMI
Jump to: navigation, search
(Created page with "== Bar Level Graphic == This control shows an analog value in the form of graphic filling to a corresponding level. The graphics can be a gray scale PNG with a transparent bac...")
 
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Bar Level Graphic ==
 
== Bar Level Graphic ==
This control shows an analog value in the form of graphic filling to a corresponding level. The graphics can be a gray scale PNG with a transparent background or the BarImage can be set to None to use a rectangle shape.
+
This control shows an analog value in the form of graphic filling to a corresponding level. The bar graphic can be a gray scale PNG with a transparent background or the BarImage can be set to None to use a rectangle shape. The default image is a jagged bar that simulates a cut out in a tank. By setting the BackgroundImage and using BarOffset and BarScale, you can create objects similar to the Tank.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 7: Line 7:
 
||ComComponent
 
||ComComponent
 
|Points to the driver instance for reading its values through
 
|Points to the driver instance for reading its values through
 +
|-
 +
|BackgroundImage
 +
|A static image in which the bar level graphic will be over layed
 +
|-
 +
|BarImage
 +
|A gray scale image, preferably PNG with transparent background that will be the shape of the bar to be filled
 
|-
 
|-
 
|BarColorOverHighLimits
 
|BarColorOverHighLimits
|The color of the bar when the value is higher than the value set in BarColor
+
|The color of the bar when the value is higher than the value set in BarColorHighLimitValue
 +
|-
 +
|BarColorHighLimitValue
 +
|The value at which the bar color will switch to the color defined by BarColorOverHighLimits
 
|-
 
|-
|ForeColorOverLimit
+
|BarColorInLimits
|The color of the text when the value is greater than ValueLimitUpper
+
|The color of the bar when Value is <= BarColorHighLimitValue AND >= BarColorLowLimitValue
 
|-
 
|-
|ForeColorUnderLimit
+
|BarColorLowLimitValue
|The color of the text when the value is less than ValueLimitLower
+
|The value at which the bar color will switch to the color defined by BarColorUnderLowLimits
 
|-
 
|-
 
|PLCAddressKeypad
 
|PLCAddressKeypad
Line 21: Line 30:
 
|-
 
|-
 
|PLCAddressValue
 
|PLCAddressValue
|The register in the PLC to read for the value to display and deteremine the text color as defined in the ForeColorXXX properties
+
|The register in the PLC to read for the value that determines the bar level
|-
 
|PLCAddressValueLimitLower
 
|Used to dynamically set ValueLimitLower from a value in the PLC
 
|-
 
|PLCAddressValueLimitUpper
 
|Used to dynamically set ValueLimitUpper from a value in the PLC
 
|-
 
|ValueLimitLower
 
|Determines at what value to switch the text color to  ForeColorUnderLimit. Also works with VisibleControl property
 
 
|-
 
|-
 
|ValueLimitUpper
 
|ValueLimitUpper
 
|Determines at what value to switch the text color to  ForeColorOverLimit. Also works with VisibleControl property
 
|Determines at what value to switch the text color to  ForeColorOverLimit. Also works with VisibleControl property
 
|-
 
|-
|VisibleControl
+
}
|Determines when the control is shown. Defaults to Always, but can make it hide in determination with the ValueLimit properties
 
|}
 

Latest revision as of 09:59, 18 April 2019

Bar Level Graphic

This control shows an analog value in the form of graphic filling to a corresponding level. The bar graphic can be a gray scale PNG with a transparent background or the BarImage can be set to None to use a rectangle shape. The default image is a jagged bar that simulates a cut out in a tank. By setting the BackgroundImage and using BarOffset and BarScale, you can create objects similar to the Tank.

}
Properties
ComComponent Points to the driver instance for reading its values through
BackgroundImage A static image in which the bar level graphic will be over layed
BarImage A gray scale image, preferably PNG with transparent background that will be the shape of the bar to be filled
BarColorOverHighLimits The color of the bar when the value is higher than the value set in BarColorHighLimitValue
BarColorHighLimitValue The value at which the bar color will switch to the color defined by BarColorOverHighLimits
BarColorInLimits The color of the bar when Value is <= BarColorHighLimitValue AND >= BarColorLowLimitValue
BarColorLowLimitValue The value at which the bar color will switch to the color defined by BarColorUnderLowLimits
PLCAddressKeypad If a valid PLC address is put in this property, during run-time a keypad will pop up when the control is clicked. The value entered into the keypad will be written to the address as defined in this property.
PLCAddressValue The register in the PLC to read for the value that determines the bar level
ValueLimitUpper Determines at what value to switch the text color to ForeColorOverLimit. Also works with VisibleControl property