Property to property binding in an Add-On Graphic

This example depicts property to property binding within the definition of an Add-On Graphic. Property to property binding binds the property of one graphic element to another graphic element in the definition. Even if the graphic elements display a value in different formats, the graphic elements show the same value on the HMI device. In this example, a user-defined data property exists for the level of a mixer graphic element in the definition of an Add-On Graphic. Binding the property of the numeric display to the Level property of the mixer then shows the level graphically on the mixer, and numerically on a numeric display.
PropToPropBindingAOG
1 Add-On Graphic definition
Item
Description
1
The definition of an Add-On Graphic containing two graphic elements. In this example, there is one mixing hopper and one numeric display in the definition.
2
A user-defined data type property for the definition of the Add-On Graphic. User-defined properties include:
  • Name.
    The name of the user-defined property. In this example, the name of the user-defined property is MixerTag.
  • Data Type.
    The data type of the user-defined property. This is the data type in the controller. Browse to the controller and data type. In this example, the data type is Mixer.
  • Description.
    An optional description for the user-defined property. This description appears as a tooltip when hovering over the box in the
    Properties
    window for an instance of the Add-On Graphic.
  • Category
    . The category where the user-defined property appears in the
    Properties
    window for an instance of the Add-On Graphic.
3
The properties of MixingHopperSide_001 when that graphic element is selected in the definition. The Level property of the mixing hopper is bound to the user-defined data property and the Level member of the Mixer data type in the user-defined property. Type or browse to create the binding. Use the format PropertyName.Member. The value of the Level member shows on the mixing hopper on the HMI device.
4
The properties of NumericDisplay_001 when that graphic element is selected in the definition. The Value property of the numeric display is bound to the mixing hopper graphic element in the definition. The binding is the name of the graphic element followed by the member that has the value to show on the numeric display. The format is ElementName.Member. The value of the Level member shows on the numeric display on the HMI device.
2 Add-On Graphic instances
Item
Description
5
The
Properties
window for the Mixer_001 Add-On Graphic instance. The instance is bound to the Mixer1 controller tag. The Mixer1 tag is passed to the definition of the Add-On Graphic. The Level member applied to the graphic elements in the definition of the Add-On Graphic show the level for Mixer1 on the HMI device.
6
The
Properties
window for the Mixer_002 Add-On Graphic instance. The instance is bound to the Mixer2 controller tag. The Mixer2 tag is passed to the definition of the Add-On Graphic. The Level member applied to the graphic elements in the definition of the Add-On Graphic show the level for Mixer2 on the HMI device.
3 Add-On Graphics on HMI device
Item
Description
7
Each Add-On Graphic shows the level of the mixer.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal