Report Package User Guide 5.2 b0400bd - G
Report Package User Guide 5.2 b0400bd - G
*B0400BD* *G*
B0400BD
Rev G
December 12, 2014
Invensys, Foxboro, Foxboro Evo, and I/A Series are trademarks of Invensys Limited, its subsidiaries, and
affiliates.
All other brand names may be trademarks of their respective owners.
Tables..................................................................................................................................... ix
Preface.................................................................................................................................... xi
Audience .................................................................................................................................. xi
What You Should Know .......................................................................................................... xi
Revision Information ............................................................................................................... xi
Safety Considerations ............................................................................................................... xi
Request for Comments ............................................................................................................ xii
2. Configuration.................................................................................................................. 23
AIM*Historian or I/A Series Historian Reduction Groups ...................................................... 23
Hourly Reduction Group ................................................................................................... 23
Daily Reduction Group ...................................................................................................... 23
iii
B0400BD – Rev G Contents
iv
Contents B0400BD – Rev G
7. Troubleshooting.............................................................................................................. 67
Troubleshooting and Log File ................................................................................................. 67
v
B0400BD – Rev G Contents
vi
Figures
1-1. ODBC Data Source Administrator Dialog Box ............................................................. 4
1-2. Create New Data Source Dialog Box ............................................................................ 5
1-3. AIM*Historian ODBC Setup Dialog Box ..................................................................... 5
1-4. Run Automize as Administrator (Windows 7 Only) ...................................................... 7
1-5. Automize9 Registration form ........................................................................................ 8
1-6. Automize9 Registration Confirmation .......................................................................... 8
1-7. Engine menu ................................................................................................................. 9
1-8. Automize9 Register 9.x Service Dialog Box ................................................................... 9
1-9. Automize9 Service Module Dialog Box ....................................................................... 10
1-10. Windows Service Control Manager ............................................................................. 11
1-11. AIM*AT Version Detected Window ........................................................................... 13
1-12. I/A Series Report Package Welcome Window ............................................................. 14
1-13. Company Name Dialog Box ....................................................................................... 15
1-14. Choose Destination Folder Dialog Box ....................................................................... 16
1-15. Choose Reports Folder Dialog Box ............................................................................. 16
1-16. Add to the Start Menu Dialog Box .............................................................................. 17
1-17. Group Membership Dialog Box .................................................................................. 18
1-18. Start Installation Dialog Box ....................................................................................... 19
1-19. Installing Dialog Box .................................................................................................. 20
2-1. Report Builder Main Menu ......................................................................................... 24
2-2. Alias Configurator ....................................................................................................... 25
3-1. Report Builder Main Menu ......................................................................................... 28
3-2. Report Type Dialog Box ............................................................................................. 28
3-3. Timing for Shift Report Dialog Box ............................................................................ 29
3-4. Report Template Directory ......................................................................................... 29
3-5. Build or Modify Dialog Box ........................................................................................ 30
3-6. Report Type Dialog Box ............................................................................................. 31
3-7. Report Name Dialog Box ............................................................................................ 31
3-8. Report Builder Cell Editor Dialog Box ........................................................................ 32
3-9. Sample Database Controls .......................................................................................... 33
3-10. Reduction Database Controls ...................................................................................... 34
3-11. Timestamp Example ................................................................................................... 34
3-12. Report Builder Cell Editor Options Button ................................................................ 35
3-13. Options Configurator ................................................................................................. 36
3-14. Printers Selection Form ............................................................................................... 37
3-15. rpt_pkg Properties Dialog Box [Windows XP/2003] ................................................... 40
3-16. Access Through Share Permissions Dialog Box [Windows XP/2003] .......................... 41
3-17. rpt_pkg Properties Dialog Box [Windows 7] ............................................................... 42
3-18. Advanced Sharing Dialog Box [Windows 7] ............................................................... 43
3-19. Advanced Sharing Dialog Box [Windows 7] ............................................................... 44
3-20. Map Network Drive Dialog Box ................................................................................. 45
4-1. Report Pop-up Menu .................................................................................................. 47
4-2. The On-Demand Report dialog box is displayed. ........................................................ 47
4-3. Automize Front Panel ................................................................................................. 49
vii
B0400BD – Rev G Figures
viii
Tables
3-1. Pre-Defined Report Configuration .............................................................................. 27
4-1. Report Schedule Times ............................................................................................... 48
7-1. Possible Problems and Corrective Action .................................................................... 67
ix
B0400BD – Rev G Tables
x
Preface
This document describes all aspects of the I/A Series® Report Package including:
♦ Defining data sources and aliases
♦ Building production reports
♦ Scheduling reports
♦ Running reports.
Audience
This guide is intended for process control engineers and operators, and other qualified and autho-
rized personnel involved in using production reports and scheduling report execution using the
I/A Series Report Package.
This document is organized to reflect a typical sequence of actions in setting up a system. The
appendices provide examples of configuration files, report types, and macros.
Revision Information
For Release H, the following changes were made:
Global
♦ Updated the document to implement new corporate and product branding.
Safety Considerations
Safe use of this product depends largely upon proper installation, use, and maintenance. This
manual provides the information needed to properly install, use, and maintain the I/A Series
Report Package.
xi
B0400BD – Rev G Preface
xii
1. Installing the I/A Series Report
Package
This chapter describes how to install I/A Series Report Package.
Overview
The I/A Series Report Package is an interactive, easy-to-use tool that allows users to build produc-
tion reports and schedule the report execution. It runs on a Windows workstation using the
Microsoft® Excel environment. Configured reports are Excel files which can be formatted using
standard tools. Automize is an event-driven scheduling software that allows scheduling of reports
to run on a shift, daily, weekly, monthly or on-demand basis.
The I/A Series Report Package can generate reports that can be accessed over an Intranet using a
standard Web Browser, or automatically e-mailed to predefined recipients.
System Requirements
The I/A Series Report Package requires the following:
♦ Pentium® Processor with 64 MB RAM. (128 MB if installed on an I/A Series station)
♦ Windows XP, Windows 2000 Service Pack 2, Windows Server 2003, Windows 7, or
Windows Server 2008 R2 Standard
♦ Microsoft Excel 2000, Microsoft Excel 2002, Microsoft Excel 2003, Microsoft Excel
2007 or Microsoft Excel 2010. The latest Excel service pack available from Microsoft
has to be installed
NOTE
The Report Package is only compatible with the 32-bit versions of Excel. The 64-
bit versions are not supported.
1
B0400BD – Rev G 1. Installing the I/A Series Report Package
2
1. Installing the I/A Series Report Package B0400BD – Rev G
Configuring Excel
The I/A Series Report Package requires the following Excel Add-Ins and features to be installed
and configured for use with the I/A Series Report Package.
Graphics Filters
The commonly-used Graphics Filters are installed by default during the installation of Excel. Do
not remove this option from the "Common Tools" section during the installation.
NOTE
For Excel, the Internet Assistant VBA Add-In is not required by the I/A Series
Report Package, and at runtime, should be left unselected.
Excel 2010
1. Choose File > Options > Trust Center > Trust Center Settings > Macro Settings.
2. On the Macro Settings page, Select the Enable all macros option button.
Excel 2007
1. Choose Click Office icon (top left) > Excel Options > Trust Center Settings >
Macro Settings.
2. On the Macro Settings page, Select the Enable all macros option button.
3
B0400BD – Rev G 1. Installing the I/A Series Report Package
4
1. Installing the I/A Series Report Package B0400BD – Rev G
The Create New Data Source dialog box appears, listing available data sources.
5. Select AIM AT Historian ODBC Driver to set up the data source and click Finish.
The ODBC Setup dialog box opens.
Sample Database,
or Reduction
Database
For Linearized
Sample Data
5
B0400BD – Rev G 1. Installing the I/A Series Report Package
6. Enter a name for the new data source in the Data Source Name field.
The suggested format is the historian name + the database name.
7. Enter a description in the Description field.
8. Use the pull-down menus to select the appropriate server (the ODBC driver supports
6-character server names) and the database type.
9. Click OK.
The ODBC Data Source Administrator dialog box returns.
10. Click OK to exit the administrator.
For every Historian server you access, four types of System DSN data sources should be created:
♦ To access Reduction data
♦ To access non-linearized Sample data
♦ To access linearized Sample data
♦ To access String Sample data
To create a linearized sample data System DSN ODBC:
1. Click the Linearize Sample Data check box.
2. Set the Sample Interval to 60 seconds
3. Set the Number of Samples to 500.
Installation Components
The Automize and I/A Series Report Package software are installed using separate Setup pro-
grams. The Report Package CD-ROM contains the following components:
♦ Step1_mize.exe
♦ Step2_RptPkg_setup.exe
♦ ReleaseNotes_ReportPackage5_2.pdf
♦ Users Guide.pdf
In addition, the following media are shipped with the I/A Series Report Package installation
CD-ROM:
♦ I/A Series Information Suite AIM*AT Installation Guide (B0193YM)
Before installing, log on to the computer with Administrator privileges.
The Automize Setup program must be run before the I/A Series Report Package Setup program.
When upgrading the I/A Series Report Package from a version older than the version 5.2, you
must re-build the existing OpalisRobot Events and Tasks as new Automize Tasks and subse-
quently uninstall the OpalisRobot software. In addition, the user-built templates and reports can
be carried over and then updated as shown in Appendix D "Updating Existing Reports".
If an AIM*AT upgrade occurs after installing I/A Series Report Package, Report Package should
be uninstalled and then re-installed. Back-up files report_builder_cfg.xls, rb.ini and folders
\reports, \report_templates, \done_reports, and \html prior to uninstalling and restore them after
re-installation, overwriting the re-installed versions.
6
1. Installing the I/A Series Report Package B0400BD – Rev G
7
B0400BD – Rev G 1. Installing the I/A Series Report Package
7. You must now register Automize9. The Automize registration form is automatically
displayed at start time if the software has not been registered yet.
Open Start > Programs > Automize9 > Automize9
NOTE
The registration can be skipped at this point by clicking on "Close". This will start
a full-feature 30-day trial of Automize. The registration key might be entered later
at any time.
8
1. Installing the I/A Series Report Package B0400BD – Rev G
12. Click menu Engine > NT Service Module > Register 9.x Service Control.
9
B0400BD – Rev G 1. Installing the I/A Series Report Package
15. Click Install Service. This will add the service to the Service Control Manager. Close
the current window by clicking the "Cancel" button.
16. The Automize service must run under a specific user account, other than the default
Local System Account. The chosen account to run the Automize scheduler can be dif-
ferent from the account used to log into the computer. However, the account must
have the following attributes:
♦ Authorized for access to ODBC Driver for AIM*Historian
♦ Administrator privileges
♦ The right to log on as a Service
♦ [For Excel 2007 and 2010]
Excel Extension Hardening has to be disabled for the selected user. During the
installation of the Report Package this is automatically done for the currently
logged-in user account. If another account is chosen Extension Hardening has to
be manually disabled.
17. Open the Windows Service Control Manager, via the Control Panel (for
Windows XP/2003 select Start > Settings > Control Panel > Administrative Tools >
Services, for Windows 7 select Start > Control Panel > System and Security >
Administrative Tools > Services).
10
1. Installing the I/A Series Report Package B0400BD – Rev G
18. Double click the Automize9 service list item in order to access its properties window.
19. Set the properties for the Service, as shown in the Recommended Settings table below
and then click OK to save the settings.
20. To start the Automize service, right click the Automize9 entry in the services list and
then click Start.
(This is only necessary for the first time. In the future, the service will start automati-
cally at system reboot.)
11
B0400BD – Rev G 1. Installing the I/A Series Report Package
Excel, AIM* ODBC driver and Automize software must be installed prior to installing the
I/A Series Report Package.
! WARNING
In order for the Report Package setup program to be able to correctly determine the
location of your Microsoft Office or Microsoft Excel installation ensure the
following:
No Microsoft Office or Microsoft Excel installation folder must be present on the
hard-disk. This could be the case if the software has been previously copied to the
hard disk in order to install the software.
No Microsoft Office or Microsoft Excel installation media must be present in
CD/DVD drives or on other connected external media (like the USB disk).
12
1. Installing the I/A Series Report Package B0400BD – Rev G
5. The installation program searches the report server for the Microsoft Excel applica-
tion, the AIM*ODBC driver, and the Automize software. A result dialog appears at
the end of the search operation. If any of the applications cannot be found then an
error message will be displayed.
6. Click OK. The I/A Series Report Package Welcome window appears.
13
B0400BD – Rev G 1. Installing the I/A Series Report Package
7. Click Next.
14
1. Installing the I/A Series Report Package B0400BD – Rev G
Company Name
The Company's Name dialog box appears.
1. Enter the name of the company to display on reports published on the web.
2. Click Next.
The Choose Destination Folder dialog box appears.
Program Directory
The I/A Series Report Package is installed in the directory specified on the Choose
Destination Folder dialog box.
♦ Click Next to accept the default destination folder displayed, or click Browse to
choose another destination folder.
The default destination is C:\rpt_pkg for non-I/A workstations and D:\rpt_pkg for
I/A workstations. However, you can install the I/A Series Report Package in any direc-
tory.
15
B0400BD – Rev G 1. Installing the I/A Series Report Package
16
1. Installing the I/A Series Report Package B0400BD – Rev G
♦ Click Next to accept the default destination folders displayed, or click Browse to
choose another destination folder.
You can store HTML and executed reports in any directory, however it is recom-
mended that you keep the folders within the rpt_pkg root directory. If you elect to
store HTML reports on a remote directory while at the same time intending to take
advantage of the Web Reports Portals, the remote directory has to be shared and
mapped using the standard Microsoft Map Network Drive procedure.
♦ Click the check box of each desired option, and then click Next to continue the
installation.
If you check the Add the application to the Start Menu check box, the Select Group
Member dialog box appears.
17
B0400BD – Rev G 1. Installing the I/A Series Report Package
♦ Specify a new or existing group name into which the I/A Series Report Package option
will be added and click Next.
18
1. Installing the I/A Series Report Package B0400BD – Rev G
Start Installation
When Setup has enough information, the Start Installation dialog box appears.
♦ Click Install, to begin copying I/A Series Report Package files onto the workstation.
The Installing dialog box shown in the next figure displays the name of each file and a
progress bar as it is installed.
19
B0400BD – Rev G 1. Installing the I/A Series Report Package
Completing Installation
When all files have been copied, the installation program exits after reminding you that reports
that were created with previous versions of the I/A Series Report Package can be updated. Refer to
Appendix D "Updating Existing Reports".
NOTE
When finished installing the I/A Series Report Package on an I/A Series station,
open the Control Panel > Foxboro I/A and check the Start I/A Series at Reboot
option. Then reboot the computer with I/A Series application running.
20
1. Installing the I/A Series Report Package B0400BD – Rev G
21
B0400BD – Rev G 1. Installing the I/A Series Report Package
22
2. Configuration
This chapter explains how to configure AIM*Historian and I/A Series Historian reduction
groups and how to define aliases for sample and reduction groups.
Reports are built using values from an AIM*Historian or I/A Series Historian database. The
points used in the report must first be configured in either AIM*Historian or I/A Series
Historian. Aliases for them must then be defined in the I/A Series Report Package.
23
B0400BD – Rev G 2. Configuration
Historian Alias
Configurator
24
2. Configuration B0400BD – Rev G
Create the new alias for an AIM*Historian or I/A Series Historian sample or reduction
group by entering the following data in the Add New Alias fields:
3. In the Alias field, enter the name of the Alias to create.
4. In the Historian field, enter the name of the Historian database.
5. In the Database pull-down list box, enter or select Sample or Reduction.
6. In the Server pull-down list box, enter or select the Server name.
7. In the ODBC Data Source pull-down list box, enter or select the Data Source.
8. For creating ODBC data sources, refer to “Creating ODBC Data Sources” on page 4.
9. Click Get Tables, and then select a table from the pull-down list box.
10. Click Add to create the Alias.
TIP
The Import button can be used to import historized tags and reduction columns
into an existing alias. This is done after an expansion or a modification of the
Historian.
Delete an Alias
To delete an Alias:
♦ Select an Alias from the Alias pull-down list box and click Delete.
The configuration of the Aliases remains unchanged until it is saved. Exiting the Alias Configura-
tor without saving discards any changes made.
25
B0400BD – Rev G 2. Configuration
26
3. Building Reports
This chapter explains how to configure and build reports locally and from a remote
workstation.
Starting from the pre-defined report types and using the Report Type Configurator, you can cre-
ate new report types and subsequently format them with Excel.
To create a new report type:
1. Start the I/A Series Report Package.
The Main menu appears.
27
B0400BD – Rev G 3. Building Reports
28
3. Building Reports B0400BD – Rev G
3. Select a report type from the Select Report Type pull-down list box and click Next.
The Timing for Shift Report dialog box displays to set the start time and duration of
the new report type.
9. When the new report type is created, modify the format using Excel.
29
B0400BD – Rev G 3. Building Reports
Building Reports
The Report Builder Wizard is used to create a new report or to modify an existing report. With
the wizard you can define, add and remove AIM*Historian or I/A Series Historian tags from the
Excel worksheet.
To build a report:
1. Click Report Builder on the Report Builder Main Menu (Figure 3-1).
The Build or Modify dialog box appears
2. Click either:
♦ New Report to create a new report, or
♦ Modify Report to edit the format of an existing report. The Report Type dialog
box is displayed.
30
3. Building Reports B0400BD – Rev G
3. Select a report type from the default list and click Next.
The Report Name dialog box is displayed (Figure 3-7).
4. Enter a name for the report in the Report Name field.
NOTE
The report name must not contain any spaces (there will be an error message in that
case). Also, dashes (-) should be avoided since this prevents user macros from being
executed.
31
B0400BD – Rev G 3. Building Reports
Compound:Block.Parameter Settings
♦ Select the Compound Block Param check box to automatically insert the
♦ Compound:Block.Parameter five cells above the selected cell.
♦ Select the Operation check box to insert the Operation Name three cells above the
selected cell.
♦ Select the Description check box to automatically insert the Tag Description two cells
above the selected cell.
TIP
The Compound:Block.Parameter is always inserted in the selected cell regardless of
the Apply check box settings.
32
3. Building Reports B0400BD – Rev G
The Compound:Block.Parameter is cleared from the selected cell and the link to the
Historian is removed.
NOTE
Using Excel to clear the C:B.P cell does not remove the link to the Historian.
33
B0400BD – Rev G 3. Building Reports
To configure the cells that receive data from the AIM*Historian or I/A Series Historian reduction
database:
1. From the Reduction Column pull-down list box, select the type of Reduction opera-
tion to be performed.
2. Specify the maximum number of rows of data in the Max Rows control.
3. Click the Ignore First Value check box to specify that data reduction retrieval exclude
the value at the start of the query interval.
This is usually desirable, since that reduction would be based on samples that predate
the report period.
Another example is that a daily average time-stamped Feb.5, 7:00 A.M. represents the average of
the samples taken between Feb.4, 7:00 A.M. and Feb.5, 7:00 A.M.
If desired, you can use Microsoft Excel techniques to explicitly move the reduction timestamp
from the reduction period endtime to the reduction period start time. Refer to Appendix B
"Report Examples".
34
3. Building Reports B0400BD – Rev G
A query of reduction data returns values for both ends of the query interval. Hence the first reduc-
tion value on a report is based on sample data that precedes the report start time. An example of
this is a report that has a start time of 8:00 A.M. and includes the average of the samples taken
between 7:00 A.M. and 8:00 A.M. To avoid this effect, select Ignore First Value in the Report
Builder Cell Editor. Refer to Appendix B "Report Examples" for more information.
35
B0400BD – Rev G 3. Building Reports
2. Click the check box next to the HTML graphic icon in the upper left corner to con-
vert the report to HTML format.
If a print area has been defined on the Final Worksheet, this area is used for the
HTML conversion.
3. Click the Macro check box to enable execution of your own macro.
Refer to “Macro Option” on page 38" for more information.
4. Click the check box next to the printer graphic icon to print the report. Enter the
printer name in the Printer field or double-click inside the Printer field and choose the
printer name from the names of the configured printers (Figure 3-14). If accessing the
Report Builder from a remote PC, make sure that the printer is also configured on the
report server.
36
3. Building Reports B0400BD – Rev G
Press on the Setup button to change the printing parameters. The form that is displayed is specific
to the type of printer. Those parameters are saved within the *.rep file and are used when the
report is printed.
5. Click the Timestamp Snapshot Values check box to include the time stamp of a snap-
shot value.
NOTE
The time stamp only applies to the Snapshot type cells. Sample data is time stamped
regardless of the time stamp option selected.
6. Click the Overwrite check box to maintain the name of the done_report.
The done_report is the executed report saved to a file.
7. Select the final sheet of the report from the Final Worksheet pull-down list box.
The final sheet is used for the print of the report and HTML conversion.
8. Enter the directory to which HTML reports will be saved.
9. Double-click inside the HTML field and navigate to the desired directory path.
If the field is left blank, the report is saved in the default HTML directory which was
specified during the installation of the I/A Series Report Package.
10. Enter the directory to which XLS reports will be saved.
11. Double-click inside the XLS field and navigate to the desired directory path.
If the field is left blank, the report is saved in the default XLS directory specified dur-
ing the installation of the I/A Series Report Package.
12. Click in the check box next to the E-mail graphic icon to enable the report to be e-
mailed when the report is run.
37
B0400BD – Rev G 3. Building Reports
Macro Option
Macro codes can be executed when the report is run. Macros are enabled by clicking the Macro
check box on the Options menu ("Configuring Report Options" on page 39).
To add Macro code to a report:
1. Start Excel, open the report .rep file and open the Visual Basic Macro Editor.
2. Select Module1 and look for the comment "INSERT YOUR CODE HERE".
3. Insert your VB code.
4. Click Save and then Exit.
Refer to “User Macro Code Template” on page 77 for more information.
38
3. Building Reports B0400BD – Rev G
NOTE
Using Excel, perform a "Set Print Area" on the Final Worksheet. If you forget to
perform this "Set Print Area", the html conversion of the final worksheet on some
versions of Excel will come out blank. The Report Builder does not interfere with
the additional worksheets created by the user. Refer to “Report Examples” on
page 71.
39
B0400BD – Rev G 3. Building Reports
40
3. Building Reports B0400BD – Rev G
Figure 3-16. Access Through Share Permissions Dialog Box [Windows XP/2003]
5. Select Full Control from the Type of Access pull-down list box.
To configure the report server running Windows 7 for remote communication:
1. Right-click on the I/A Series Report Package directory and choose Properties.
The rpt_pkg Properties dialog box appears (Figure 3-17).
41
B0400BD – Rev G 3. Building Reports
42
3. Building Reports B0400BD – Rev G
4. Check the check box Share this folder and click Permissions.
5. The Permission dialog box appears (Figure 3-19).
43
B0400BD – Rev G 3. Building Reports
6. Check the Full Control check box in the Allow column and click OK until all dialog
boxes are closed.
44
3. Building Reports B0400BD – Rev G
To create a link to the I/A Series Report Package directory on the remote station:
1. Choose Tools > Map Network Drive from Windows Explorer. The Map Network
Drive dialog box is displayed.
2. In the Drive pull-down list box, choose a drive that has not been assigned.
3. In the Path pull-down list box, enter a TCP/IP address with the report name direc-
tory, for example: \\10.9.19.30\rpt_pkg.
45
B0400BD – Rev G 3. Building Reports
46
4. Executing Reports
This chapter explains how to configure and execute an On-Demand report and how to schedule
a task to automatically run reports using Automize scheduler.
Reports can be executed on a scheduled basis or On-Demand. Reports are scheduled to run in
advance by generating a time event and correlating it with a task. The task is performed when the
time specified in the time event is reached.
47
B0400BD – Rev G 4. Executing Reports
♦ To create a progress report rather than a full-period report, click the Produce a
Progress Report check box.
♦ To specify an earlier date, use the Report Execution arrow keys.
3. Click Run Report to execute the report, or Cancel to close the dialog box.The report
output is sent to its configured destinations.
TIP
Select a scheduled execution time that falls inside a collection period. Suggested
schedule times for the default reports are listed in Table 4-1.
The finished report will be saved in the appropriate subdirectory (monthly, daily, shift, weekly) of
the "reports_done" directory within the Report Package installation.
Example: C:\rpt_pkg\done_reports\daily\myReport_05232010_0000.xls
Time Synchronization
The AIM*Historian or the I/A Series Historian ODBC Library automatically adjusts the time
specified in an SQL query to match the time of the historian server. The data returned is for a
time interval based on the report server time. Therefore, when the report server and the accessed
historian servers are not part of the same control network it is essential to manage the time syn-
chronization between the servers in order to guarantee consistent reporting results.
For example, on "off platform" I/A Report Package installations an Automize task could be cre-
ated and executed daily to synchronize the clock time of the report server and the historian server.
Scheduling a Report
Choose Start > Programs > Automize9 > Automize9 or the desktop icon Automize9 to launch
the Automize scheduler.
48
4. Executing Reports B0400BD – Rev G
Task List
Tasks Properties list
49
B0400BD – Rev G 4. Executing Reports
NOTE
Before scheduling a newly created Task (e.g. daily report execution) it is recom-
mended to test the Task. To launch the execution of the Task from the Automize
right-click on the Task name listed in the Task list section and select "Run Task".
Verify in the report output directory that the report has been correctly run before
scheduling it.
If the Task was not executed as expected then the first troubleshooting step is to
right-click on the Task name listed in the Task list and select "View Tasklog".
When creating scheduled Tasks that are dependent on each other's completion make sure that you
allow enough time for the execution of each Task.
Example: Consider that one or more scheduled Tasks which run each night, the reports older than
1 day are archived daily to an archive location and finally the original reports are deleted
afterwards.
In this case you must allow each Task sufficient execution time before the next scheduled Task
starts: Run reports at 2:00 AM, archive at 2:30 AM and delete the old reports at 3:00 AM.
NOTE
It is recommended to use the template files rather than creating a new Task from
scratch in order to minimize the risk of having configuration errors.
50
4. Executing Reports B0400BD – Rev G
In order to create a new Task select the appropriate template and execute the following steps:
1. Right-click on the Task template and select Copy. In the pop-up window enter the
name of the new task (e.g. "Plant1-daily") and click OK.
2. Double click on the new task in order to open the task configuration window.
3. In the Command Line field, replace the reportfilename.rep with the file name of the
report to be executed. In order to facilitate this step the filename is presented in lower-
case letters while the rest of the command-line string is UPPERCASE. Pay attention
not to modify the remainder of the field contents.
Example:
C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE14\EXCEL.EXE /r
D:\RPT_PKG\REPORTS\SHIFT\reportfilename.rep
D:\RPT_PKG\REPORT_ENGINE.XLS
4. Adjust the timeout value that will prevent corrupt or poorly configured reports to
block system resources indefinitely (the default timeout is set to 5 minutes). For large
reports increase the timeout value sufficiently to guarantee the proper creation of the
report.
51
B0400BD – Rev G 4. Executing Reports
NOTE
Make sure to change only the report file name and preserve the remainder of the
command line string. The reportfilename has to match exactly the file name as
saved by the report builder. The files can be found in one of the Report Package
reports directories. E.g. D:\rpt_pkg\reports\shift\
5. Click Save.
6. Right click on the Task and choose New Schedule to set the schedule.
(See “Scheduling a Task” on page 56.)
7. Click Save.
52
4. Executing Reports B0400BD – Rev G
3. To archive the Excel reports change the reporttype (in lowercase letters) to the desired
report type (daily, monthly, weekly or shift) in the Directory to zip field. To archive
the HTML reports you must additionally change the parent directory
DONE_REPORT to html.
4. In the Filename field enter ".xl" for Excel or ".html" for HTML reports to be
archived.
NOTE
When the report package re-creates a report under the same name the existing
report instance is renamed to have the extension ".xlk" (Excel backup file). There-
fore for the Excel reports archiving Task above the extension used in the Filename
field is ".xl" and not ".xls".
5. In the Directory to place zip archive field specify the ZIP archive storage location
(default is the "ARCHIVE" subfolder of the "reports_done" folder). You may want to
select here an external or network drive location.
53
B0400BD – Rev G 4. Executing Reports
NOTE
If the directory in the Directory to place zip archive field does not exist or is not
accessible, then the archiving Task will fail.
6. In the Name for zip archive field the default setting $%DATE::YY-pp-dd--hh-mm-
ss%$.ZIP will create archive with filenames like 2010-12-24-12:15:00.ZIP. You may
want to add the type of the report at the beginning of the filename.
(For example, Daily-$%DATE::YY-pp-dd--hh-mm-ss%$.ZIP which would result in
Daily-2010-12-24-12:15:00.ZIP)
NOTE
You can also change the date/time separators like /, _, -, or : as well as changing the
filename to a different format (like spelled out month names).
Please refer to the online help of Automize (in the menu select Help > Help File >
Variables > System Variables).
7. At the bottom of the window, in the field at the right of the older than field, select the
desired age of the files to be archived. It is recommended to run this task on a daily or
weekly basis.
8. Click Save.
9. Right click on the archive Task and choose New Schedule to set the Schedule (see
“Scheduling a Task” on page 56). It is recommended to schedule this Task on a daily
or weekly basis.
54
4. Executing Reports B0400BD – Rev G
3. To delete the Excel reports change the reporttype (in lowercase letters) to the desired
report type (daily, monthly, weekly or shift) in the Source directory field. To delete the
HTML reports you must additionally change the parent directory DONE_REPORT
to html.
4. In the Filename field enter ".xl" for Excel or ".html" for HTML reports to be deleted.
NOTE
When the report package re-creates a report under the same name the existing
report instance is renamed to have the extension ".xlk" (Excel backup file). There-
fore for the Excel reports archiving Task above the extension used in the Filename
field is ".xl" and not ".xls".
5. At the bottom of the window, in the field at the right of the older than field, select the
desired age of the files to be deleted. It is recommended to run this task on a daily or
weekly basis.
6. Make sure that the check-box Check if source/target folder is a critical folder is
selected in order to avoid the accidental deletion of a critical system folder.
7. Click Save.
8. Right click on the deletion Task and choose New Schedule to set the schedule
(see “Scheduling a Task” on page 56). It is recommended to schedule the deletion
Task on a daily or weekly basis.
55
B0400BD – Rev G 4. Executing Reports
Scheduling a Task
1. Right-Click on the Task located in the Tasks tab and select New Schedule.
56
4. Executing Reports B0400BD – Rev G
57
B0400BD – Rev G 4. Executing Reports
58
4. Executing Reports B0400BD – Rev G
59
B0400BD – Rev G 4. Executing Reports
Each argument in the Special Demand Information text file must be listed in the specified order,
and each argument must be on a different line, with no lines empty, as described below. Lines may
not be commented out.
♦ Line 1 (mandatory argument) contains the full report path and name, with extension.
♦ Line 2 (mandatory argument) contains the Start Date.
Use the format yyyy-mm-dd. Alternatively, use the keyword DEFAULT to default to
the current date.
NOTE
This argument is interpreted as the End Date if the Duration argument is negative.
NOTE
This argument is interpreted as the End Time if the Duration argument is negative.
Use the format HH:xx to specify the minutes in the current hour as End time. If xx is
larger than the current minutes, the preceding hour is used. Note that, with this
option, the duration is considered as a negative duration.
60
4. Executing Reports B0400BD – Rev G
Use the keyword NOW to use the current hour and minute as End Time. Note that,
with this option, the duration is considered as a negative duration.
♦ Line 4 (mandatory argument) contains the Duration.
♦ Specify h:mm for shift or daily type reports.
♦ Specify a number of days for weekly or monthly type reports.
It is also possible to specify a negative duration, such as -h:mm or -number, in which
case the Start Date/Start Time arguments are effectively interpreted as the End
Date/End Time of the report.
Alternatively, use the keyword DEFAULT to default to the duration configured in the
report.
If the line 3 uses the keyword NOW or the HH:xx option then the duration is consid-
ered as a negative duration.
♦ Line 5 (mandatory argument) contains the alternate path for the HTML-formatted
report results.
Use the keyword DEFAULT to save the HTML-formatted file to the HTML location
configured in the report.
♦ Line 6 (mandatory argument) contains the alternate path for Excel-formatted report
results.
Use the keyword DEFAULT to save the Excel-formatted file to the XLS location con-
figured in the report.
♦ Line 7 (mandatory argument) contains the Progress Report option flag. Enter one of
two keywords:
♦ Progress to produce a progress report
♦ Full to produce a full report.
♦ Line 8 (optional argument) contains a prefix that can be added to the final report
name to identify the batch. The prefix must be one contiguous word with no spaces.
This option is ignored if Line 8 is left blank.
♦ Line 9 (optional argument) contains the flag used to inhibit printing.
Use the keyword NOPRINT to inhibit printing.
This option is ignored if Line 9 is left blank.
♦ Line 10 (optional argument) contains the flag used to inhibit the HTML format
output.
Use the keyword NOHTML to inhibit the HTML format output.
This option is ignored if Line 10 is left blank.
♦ Line 11 (optional argument) contains the flag used to inhibit the email sending.
Use the keyword NOEMAIL to inhibit the email sending.
This option is ignored if Line 11 is left blank.
61
B0400BD – Rev G 4. Executing Reports
62
5. Report Directory Structure and
Files
This chapter defines the directory structure where reports are stored.
Built reports are saved under the reports directory (“Executed Reports” on page 63). Report
results are stored in the done_reports directory within the corresponding report type folder.
If the HTML option has been selected, the results are converted to a Web Browser Viewable doc-
ument and saved under the html directory
63
B0400BD – Rev G 5. Report Directory Structure and Files
64
6. Web Reports
This chapter explains how to generate and customize a Report Home Page.
To customize the Reports Home Page, use a text editor to edit the Home Page and replace
Company X with the name of your company.
The Reports Home Page has five pages that can be customized:
♦ Rephome.htm
♦ Daily_head.htm
♦ Shift_head.htm
♦ Weekly_head.htm
♦ Monthly_head.htm.
65
B0400BD – Rev G 6. Web Reports
66
7. Troubleshooting
This chapter lists possible problems and recommended solutions.
Problem Action
When importing the historical Either you are not authorized for ODBC access of the histo-
tables or the historized tags, a rian, or your user account does not have the required permis-
window is displayed requesting sions.
the user to select the On the server, verify the an_init.tcp file or use an_setup to
“Invensys I/A Series Historian modify the user permissions.
Server”.
When importing the historical The API server is not running on the server, or the IP Address
tables or the historized tags, a for the server configured in the an_init.fcg locally on your PC
window displays the message: “0 is incorrect.
Communications. Make sure the API server is running on the server and verify
Problem with FoxAPI Server.” that you can ping the server.
When a report is run, data may If this happens, it means that the sample data has bad quality
be returned as zero with a ques- status. It means that the linearized sample data had bad quality
tion mark after it (0?). for its last sample during its linearization period. It means that
the reduced data did not meet the “percent valid” parameter in
the AIM*Historian reduction group configuration for its
reduction period.
67
B0400BD – Rev G 7. Troubleshooting
The historical data is not NCON in the cell: The report_engine could not connect to
imported into the report when the historian Database.
the report is run. Instead of Check the definition of your tag.
data, the following displays in Check the connection between the PC and the AW. Verify that
the cells: the API server is running on the AW.
NCON. NDSQL, NDA, ND
NDA in the cell: There was no data available for the time
period.
When importing the historical The message points to an error while accessing the Microsoft
tables or the historized tags, a DAO (Data Access Object) function. By default, this report
window displays the message: package uses DAO 3.5.1. If DAO 3.5.1 does not exist, the
“Error 429: Active X compo- pack- age uses DAO 3.60 without problems. Although some
nent cannot create object” systems may have multiple versions of DAO installed and reg-
istered, this is usually not a problem. The problem may be
caused by DAO
3.50. The DAO 3.50 library and DAO 3.51 library are both
named DAO350.dll.
If your system has DAO 3.50 installed, unregister it by typing
the following at the command prompt:
cd \Program Files\Common Files\Microsoft Shared\DAO
regsvr32 /u DAO350.dllCopy the file into the
\WINNT\SYSTEM32 directory.
When running the report, a If specified html directory where you are to save the html files
window displays the message: does not exist.
“The file you specified does not Create the directory and run the report again.
exist.”
68
Appendix A. Configuration File (.ini
file)
This appendix defines the configuration file used by the I/A Series Report Package.
The configuration file used by the I/A Series Report Package is rb.ini. The file is stored in the
default directory d:\rpt_pkg. All lines in the configuration file are mandatory and case sensitive.
[Folders]
RepPkgDoneDir=D:\rpt_pkg\Done_Reports
RepPkgHtmlDir=D:\rpt_pkg\Html
AnInitFile=C:\Program Files\aim\Common\an_init.cfg
[Others]
RepTraceLevel=3
Qoff=0
E-mailProfile="Microsoft Outlook"
FormatTimestamps=YES
[Smtp]
SmtpServer=
SmtpFromAddr=
SmsmtpServerPort=25
SmtpConnectionTimeout=10
SmtpAccountName=
SmtpAuthenticate=0
SmtpUserName=
SmtpPassword=
smtpUseSSL=0
69
B0400BD – Rev G Appendix A. Configuration File (.ini file)
[Others] section:
[Smtp] section:
70
Appendix B. Report Examples
This appendix provides examples of daily reports, weekly reports and a Final Data Worksheet.
Hourly
Reduction
Group Tag
insterted
into Cell
71
B0400BD – Rev G Appendix B. Report Examples
Hourly
Reduction
Values
Inserted
into cell
Snapshot Value
with Time
stamp (Time
stamp option
checked) Sample data inserted into the
worksheet from the Start Time of the
Report up to the Sampling Rate
specified when the report was built
The time stamp of sample data is always inserted one column left of the values regardless of the
time stamp option.
72
Appendix B. Report Examples B0400BD – Rev G
Figure B-3. Weekly Report with Reduction Data and First Value Included
This weekly report (Figure B-3) has a start day of Tuesday, February 5, 2002 with a duration of 04
days and a maximum of seven rows. This allows the report to be run on Monday, Feb. 11 after 7
A.M. to obtain daily reduction values on sample data from Monday, Feb. 4 at 7 A.M. to Monday,
Feb. 11 at 7 A.M. This report was generated without the Ignore First Value option enabled.
Figure B-4 shows a weekly report containing reduction data retrieved with the Ignore First Value
option selected.
73
B0400BD – Rev G Appendix B. Report Examples
Figure B-4. Weekly Report with Reduction Data and First Value Ignored
This weekly report has a start day of Monday, February 4, 2002 with a duration of 07 days and a
maximum of seven rows. This allows the report to be run on Monday, Feb. 11 after 7 A.M. to
obtain daily reduction values on sample data from Monday, Feb. 4 at 7 A.M. to Mon- day, Feb.
11 at 7 A.M. This report was generated with the Ignore First Value option selected.
74
Appendix B. Report Examples B0400BD – Rev G
In the example illustrated, notice the subtraction of one day from the original timestamp. This
means that the reduction of the samples taken between Monday, February 4, 2002 7:00 A.M. and
Tuesday, February 5, 2002 7:00 A.M. is presented with the "Monday, Feb. 4, 2002" timestamp,
instead of the original "Tuesday, Feb. 5, 2002" timestamp.
75
B0400BD – Rev G Appendix B. Report Examples
76
Appendix C. User Macro Code
Template
This appendix provides a template for creating macros.
Public Sub ReportPackageUserMacro(ByRef StarTime As String, ByRef
EndTime
As String)
This macro allows you to perform functions and calculations after the report has been run.
The subroutine is started automatically by the report_engine and enabled when the Macro check
box on the Option menu is checked. For more information, refer to "Macro Option" on page 41.
The report_engine saves a backup copy of the report (.xlk), and saves the report again after this
macro is run.
Alerts are disabled and errors ignored to prevent the report from stopping upon an error in the
user code.
On Error Resume Next
Application. DisplayAlerts = False
=================================================================
INSERT CODE HERE
'====================================================================
77
B0400BD – Rev G Appendix C. User Macro Code Template
78
Appendix D. Updating Existing
Reports
This appendix provides instructions on how to update reports from version 5.0 (and below) to
version 5.1 (and above).
Between version 5.1 and version 5.2 the report format has not been changed and no further
update is necessary. Thus, if you are upgrading from version 5.0 or earlier please follow the steps
in this section. If you are upgrading from version 5.1 you can skip this section.
NOTE
Before running the update, backup the folder \rpt_pkg\reports within your Report
Package installation directory.
79
B0400BD – Rev G Appendix D. Updating Existing Reports
2. Click OK.
Excel launches and displays the utility shown below.
80
Appendix D. Updating Existing Reports B0400BD – Rev G
81
B0400BD – Rev G Appendix D. Updating Existing Reports
82
Appendix D. Updating Existing Reports B0400BD – Rev G
NOTE
If a report contains links to other workbooks, you may receive the following
warning
83
B0400BD – Rev G Appendix D. Updating Existing Reports
♦ Select the All-at-Once tab to update all the files and click Update.
84
Appendix D. Updating Existing Reports B0400BD – Rev G
6. Click Update.
If you select File-by-File, the dialog boxes shown below open.
85
B0400BD – Rev G Appendix D. Updating Existing Reports
86
Appendix D. Updating Existing Reports B0400BD – Rev G
2. Click OK.
Excel launches and displays the utility shown below.
87
B0400BD – Rev G Appendix D. Updating Existing Reports
88
Appendix E. Uninstalling Automize
This appendix provides the procedure for uninstalling Automize software.
To uninstall Automize:
1. Backup the Automize data as described in “Backup / Restore of Automize Data” on
page 91.
2. Make sure that the Automize software is not running and that the Automize service is
stopped.
To stop the Automize service:
♦ Start the Automize application.
♦ Click Engine and stop the engine service.
3. Click menu Engine > NT Service Module > NT Service Module.
4. Click Remove Service. This will remove the service from the Service Control Man-
ager. Close the current window by clicking the Cancel button.
5. For Windows XP/2003 choose Start > Settings > Control Panel > Add/Remove Pro-
grams.
The Add/Remove Programs Properties dialog box appears.
On the Install/Uninstall tab, select the Automize9 software and click Add/Remove.
6. For Windows 7 choose Start > Control Panel > Uninstall a program.
The Uninstall or change a program dialog box appears.
In the Name column select the Automize9 software and then click the Uninstall.
89
B0400BD – Rev G Appendix E. Uninstalling Automize
90
Appendix F. Backup / Restore of
Automize Data
This appendix provides a procedure to backup and restore the Automize data.
This backup and restore procedure can be used when upgrading Automize to a newer version, re-
installation of the system or if the installation has to be migrated to another machine.
The Backup function is accessed in the Automize application using File > Backup settings and
logs.
91
B0400BD – Rev G Appendix F. Backup / Restore of Automize Data
1. Enter a path for the Backup Directory or select it through the folder icon next to the
field.
2. Automize will create several sub-folders and files within the specified directory. If an
existing folder is chosen then make sure that the folder is empty or alternatively select
the check-box "Cleanup target folder before copying files" to automatically delete any
content which might be in the specified folder.
Click Backup settings and logs.
3. Automize will show a status message in the text-box at the bottom of the screen once
the backup operation is complete.
4. Click Cancel to close the window
92
Appendix F. Backup / Restore of Automize Data B0400BD – Rev G
1. Enter the Backup Directory where the backup data is stored or select it through the
folder icon next to the field.
2. The check-box "Cleanup target folder before copying files" is a bug of the current ver-
sion of Automize - it should never be selected at this point.
3. Click Restore settings and logs.
4. Automize will show a status message in the text-box at the bottom of the screen once
the restore operation is complete.
5. A pop-up window will appear and inform the user that a restart of the software is
required for the restored data to be loaded. Click Yes.
Restart Automize and verify that the data has been restored and that the engine is run-
ning.
93
Invensys Systems, Inc.
10900 Equity Drive
Houston, TX 77041
United States of America
http://www.invensys.com