Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual

Page 264

Advertising
background image

FactoryTalk EnergyMetrix Software

264

The illustration provides an example of how the Report.Groups and Report.NestedGroups
collections are populated. In the example, Sub group 3a can be addressed Report.Group(4)
or Report.NestedGroup(2).Group(0).

Select By: Groups and Meters

Select By: Groups and Meters populates the Report.Groups and Report.NestedGroups
collections (and child groups) in exactly the same way as Select By: Groups. However,
only the selected meters in each selected group are included in that groups group.Meters
collection.

Meters can be selected that are not contained in selected groups. These meters become
members of the Report.Meters collection (the Report.Meters collection is empty in Select
By: Groups mode).

Accessing Groups and Meters in the MPR Script

In practice, a For Each…Next construct is used in MPR scripting to address all selected
groups and meters. Using nested groups requires recursion to traverse all selected child
groups. See the example in the topic.

Index numbers for the Report.Groups and Meters collections are
assigned in the same order as the expanded tree appears in the
selection window, sorted from top to bottom.

Advertising