Bind properties of graphic elements to properties of other graphic elements in an Add-On Graphic
Bind the properties of different graphic elements in the definition of an Add-On Graphic. Property to property binding shows the same value on different graphic elements, showing the value in different formats. For example, show the level property for a mixer graphic element and a numeric display so the level appears graphically and numerically on the HMI device.
A controller tag must be passed to a user-defined data type property in the definition of the Add-on Graphic. For example, bind the Value property of a Numeric Display graphic element to the FillLevel property of a tank graphic element, and bind the FillLevel property of the tank to the tag that represents the fill level of the tank. The fill level displays graphically and numerically on the HMI device.
To bind properties of graphic elements in an Add-On Graphic
- In theProperty Definitiontab of the Add-On Graphic, type a name for the user-defined property in theNamebox.TIP:If theProperty Definitiontab is not open, below the screen, selectExpand
.
- Select theData Typebox and selectSelect data type
. The
opens.Data Type Browser - Select a data type:
- User-Defined.A structure data type defined inLogix Designer.
- Predefined.An atomic or structure data type defined by a controller.
- Module-Defined.A structure data type defined by a module when creating the module. Tags of these types store input, output, and configuration data for the module.The data type is used as a filter criteria for the. Only items in theData Type BrowserLogix Designerproject (.acd) file that meet the filter criteria appear when opening theTag Browser
- Select the drill-in arrow
next to a controller.
- Navigate to the desired level in the controller and select the data type.
- (optional) In theDescriptioncolumn, type a description for the property to appear when hovering over the property on thePropertieswindow.
- In theCategorycolumn, type the category where the property is to appear in thePropertieswindow for an instance of the Add-On Graphic.
- Select a graphic element in the definition of the Add-On Graphic.
- In the property to bind to the selected graphic element, browse to select the user-defined data type property, and then navigate to select the member with the value to show on an instance of the Add-On Graphic.TIP:Tips:
- Selecting a user-defined data type displays all of the members within the property and any nested properties. Expand a nested user-defined data type to display all of the members of the nested data type.
- To type the binding, use the format:PropertyName.MemberFor example, if the user-defined data type is named MixerTag and the data type in the controller has a Level member that is the value to show on the Add-On Graphic, type MixerTag.Level.
- Select another graphic element in the definition of the Add-On Graphic.
- In the same property as the first graphic element, selectBrowse
to browse to and select the name of the same member to which the first graphic element is bound. When typing the binding, use the format ElementName.PropertyName. For example, to bind to the level of a first graphic element named MixingSideHopper, browse to or type the binding MixingSideHopper.Level.
TIP:Tips:- When binding to a property, do not bind to properties within a category. For example, binding to the Color, Style, and Width under the Border category is not supported.
- To ensure accuracy of the graphic element name when binding the second graphic element, copy the name of the first graphic element from theNamebox in thePropertieswindow of the first graphic element.
- Add an instance of the Add-On Graphic to a screen.
- In thePropertieswindow for the instance, expand the category of the user-defined property and then in the user-defined property, browse to select the controller tag.On the HMI device, the Add-On Graphic shows the value of the controller tag.
Provide Feedback