Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual

Page 215

Advertising
background image

9

ReportsPlus

215

If no error is found, a message appears under the Validate button.

MPR Script Elements

A MPR script consists of several required and optional elements as described below.

Declarations

Declarations are required (Option Explicit checking is enabled).

Certain objects are created automatically when the MPR script is created. These include
the following:

Report object

Days collection and Day objects

Groups collection

Intervals collection and Interval objects

Meters collection

Months collection and Month objects

Weeks collection and Week objects

The editing window does not display line numbers. To help
determine the line number of an error, temporarily add a line
before the error line with an obvious syntax error, such as a
number. Click the validate button and the new line will be
displayed with its line number.

Save your script frequently. When you save a script, a validation
is performed and if errors exist the script will not be saved. To
save a script you must correct any script errors or temporarily
convert the offending script element to a remark. You can utilize
another application such as Notepad or a VBA editing window to
create and edit the MPR script and then copy and paste the
script into the MPR script field. Your user login will not time out
while the MPR script page is in Edit mode.

Advertising