Académique Documents
Professionnel Documents
Culture Documents
REV B
I/A Series®
Report Package User’s Guide
May 21, 2002
Preliminary
May 24, 2002
Foxboro, AIM*API, AIM*AT, AIM*DataLink, AIM*Historian, FoxAPI, FoxView and I/A Series are
trademarks of Invensys Systems, Inc.
Invensys is a trademark of Invensys plc.
Active X, Microsoft, Win32, Windows, Windows NT and Visual Basic are registered trademarks of Microsoft
Corporation.
NetScape is a trademark of NetScape Communications Corporation.
OpalisRobot3 is a trademark of Opalis Software, Incorporated.
Pentium is a trademark of Intel Corporation.
Solaris is a trademark of Sun Microsystems, Incorporated.
WinZip is a trademark of Nico Mak Computing, Incorporated.
All other brand names may be trademarks of their respective companies.
Preliminary
should read and understand the following information concerning copyrighted software.
1. The license provisions in the software license for your system govern your obligations
and usage rights to the software described in this documentation. If any portion of
Tables..................................................................................................................................... ix
Preface.................................................................................................................................... xi
Audience .................................................................................................................................. xi
What You Should Know .......................................................................................................... xi
Revision Information ............................................................................................................... xi
Safety Considerations .............................................................................................................. xii
Request for Comments ............................................................................................................ xii
Preliminary
1. Installing the I/A Series Report Package ............................................................................ 1
Overview ................................................................................................................................... 1
System Requirements ........................................................................................................... 1
iii
B0400BD – Rev B Contents
2. Configuration.................................................................................................................. 27
AIM*Historian or I/A Series Historian Reduction Groups ...................................................... 27
Hourly Reduction Group .............................................................................................. 27
Daily Reduction Group ................................................................................................. 27
Configuring Sample and Reduction Group Aliases .................................................................. 28
Delete an Alias ............................................................................................................... 29
Preliminary
Removing a Report Tag ..................................................................................................... 37
Saving the Report ............................................................................................................... 37
Sample Database Controls .................................................................................................. 37
iv
Contents B0400BD – Rev B
8. Troubleshooting.............................................................................................................. 75
Troubleshooting and Log File ................................................................................................. 75
Preliminary
Daily Report Examples ............................................................................................................ 79
Weekly Report Examples ........................................................................................................ 81
v
B0400BD – Rev B Contents
Preliminary
May 24, 2002
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. WinZip Self-Extractor Dialog Box ................................................................................ 7
1-5. Choose Setup Language Dialog Box .............................................................................. 7
1-6. Setup Window .............................................................................................................. 8
1-7. Installing OpalisRobot3 Welcome Window .................................................................. 8
1-8. Software License Agreement .......................................................................................... 9
1-9. Setup Type Dialog Box ............................................................................................... 10
1-10. Choose Destination Location Dialog Box ................................................................... 11
1-11. Select Program Folder Dialog Box ............................................................................... 11
1-12. User Information Dialog Box ...................................................................................... 12
1-13. Enter User name Dialog Box ....................................................................................... 13
1-14. Start Copying Files Dialog Box ................................................................................... 13
Preliminary
1-15. Setup Window ............................................................................................................ 14
1-16. Question Dialog Box ................................................................................................... 14
vii
B0400BD – Rev B Figures
Preliminary
4-17. Select Folder and Timeout Dialog Box ........................................................................ 59
4-18. Event and Task for a Special Demand Report Trigger ................................................. 60
5-1. Executed Reports ........................................................................................................ 61
viii
Tables
3-1. Pre-Defined Report Configuration .............................................................................. 31
4-1. Report Schedule Times ............................................................................................... 46
8-1. Possible Problems and Corrective Action .................................................................... 75
Preliminary
May 24, 2002
ix
Preliminary
May 24, 2002
Tables
B0400BD – Rev B
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
Preliminary
appendices provide examples of configuration files, report types, and macros.
Revision Information
For version 5.1 of the I/A Series Report Package, the following changes were made:
Chapter 2 “Configuration”
Edited text (minor).
xi
B0400BD – Rev B Preface
Preliminary
I/A Series Report Package version 5.1.
Safety Considerations
xii
1. Installing the I/A Series Report
Package
This chapter details the I/A Series Report Package installation tasks.
Overview
The I/A Series Report Package is an interactive, easy-to-use tool that allows users to build
production reports and schedule the report execution. It runs on a Windows NT® or later
workstation using the Microsoft® Excel environment. Configured reports are Excel files which
can be formatted using standard tools. OpalisRobot3™ is 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.
Preliminary
System Requirements
1
B0400BD – Rev B 1. Installing the I/A Series Report Package
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.
NOTE
For Excel 2000, the Internet Assistant VBA Add-In is not required by the I/A Series
Report Package, and at runtime, should be left unselected.
Preliminary
♦ Graphics Filter.
The Add-Ins and features are not installed with the default Excel installation and must be
installed as individual components.
2
1. Installing the I/A Series Report Package B0400BD – Rev B
Preliminary
♦ Perform a Find on ORKTools.exe
♦ Download the file ORKTools.exe. and the related installation instructions.
ORKTools.exe comprises a number of core tools, notable the following core tools of
3
B0400BD – Rev B 1. Installing the I/A Series Report Package
Preliminary
DSN page displayed (Figure 1-1).
4
1. Installing the I/A Series Report Package B0400BD – Rev B
Preliminary
Figure 1-2. Create New Data Source Dialog Box
5. Select AIM AT Historian ODBC Driver to set up the data source and click Finish.
Sample Database, or
Reduction Database
For Snapshot
Data Access
5
B0400BD – Rev B 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.
Do not check the Return Sample and MDE values as strings check box.
9. Click OK.
The ODBC Data Source Administrator dialog box returns.
10. Click OK to exit the administrator.
For every Historian you access, three types of System DSN data sources are created:
♦ To access Reduction data
♦ To access non-linearized Sample data
♦ To access linearized Sample data for retrieving Snapshot data.
For Sample data:
1. Click the Linearize Sample Data check box.
Preliminary
2. Set the Sample Interval to 60 seconds
3. Set the Number of Samples to 500.
6
1. Installing the I/A Series Report Package B0400BD – Rev B
Preliminary
Figure 1-4. WinZip Self-Extractor Dialog Box
7
B0400BD – Rev B 1. Installing the I/A Series Report Package
When the progress bar reaches 100%, the Welcome dialog box appears (Figure 1-7).
Preliminary
May 24, 2002
8
1. Installing the I/A Series Report Package B0400BD – Rev B
As the Setup Wizard progresses, it displays a series of dialog boxes with one or more of these
buttons:
Back Returns to the previous dialog box so you can review and change
selections.
Next Applies your selections as displayed and moves to the next dialog box.
Yes Indicates your agreement with the software license and moves to the next
dialog box.
Finish Completes the installation session and exits the Setup program.
To continue with the installation:
1. Click Next.
The program displays a Software License Agreement for you to read and
acknowledge (Figure 1-8).
Preliminary
May 24, 2002
9
B0400BD – Rev B 1. Installing the I/A Series Report Package
Preliminary
May 24, 2002
Figure 1-9. Setup Type Dialog Box
1. Select the OpalisRobot3 Client and Service option button, if it is not already selected.
2. Click Next.
The Choose Destination Location dialog box appears for you to designate a
destination folder for the client directory structure (Figure 1-10).
10
1. Installing the I/A Series Report Package B0400BD – Rev B
Preliminary
Figure 1-10. Choose Destination Location Dialog Box
4. Click Next to accept the default selection and continue with the installation, or enter a
new folder name and click Next.
11
B0400BD – Rev B 1. Installing the I/A Series Report Package
Preliminary
May 24, 2002
Figure 1-12. User Information Dialog Box
1. Locate the Report Package Authorization codes that you received by fax or email.
Refer to AIM*AT Suite Installation Guide (B0193YM) for information on authorizing
products. The guide also provides instructions and forms for obtaining the authoriza-
tion codes from Invensys Systems, Inc.
2. Enter the OpalisRobot serial number in the Serial field.
3. Enter the OpalisRobot product key number in the Key field.
NOTE
If a serial number or product key is not entered, an evaluation edition of
OpalisRobot3 is installed. The evaluation edition expires 30 days after installation.
4. Click Next.
12
1. Installing the I/A Series Report Package B0400BD – Rev B
1. In the Username field, enter the account under which tasks will run.
Preliminary
2. Enter a valid password in the Password field.
3. Enter the password again in the Confirm field.
4. Click OK to continue with the installation.
13
B0400BD – Rev B 1. Installing the I/A Series Report Package
Preliminary
May 24, 2002
Figure 1-15. Setup Window
14
1. Installing the I/A Series Report Package B0400BD – Rev B
Preliminary
Changing the OpalisRobot3 User Account
To change the user account under which OpalisRobot3 runs tasks on a Windows NT 4.0 system:
15
B0400BD – Rev B 1. Installing the I/A Series Report Package
Preliminary
ODBC Access
4. Click OK.
Logging On as a Service
The user account must have the rights to log on as a service.
To configure user rights:
1. Choose Start > Programs > Administrative Tools > User Manager to launch the
Windows NT User Manager.
2. Choose Policies > User Rights.
The User Rights Policy dialog box appears (Figure 1-19).
16
1. Installing the I/A Series Report Package B0400BD – Rev B
3. Click the Show Advanced User Rights check box and select Log on as a service from
the pull-down list.
Preliminary
4. Click Add.
The Add Users and Groups dialog box is displayed (Figure 1-20).
17
B0400BD – Rev B 1. Installing the I/A Series Report Package
Excel, ODBC and OpalisRobot3 software must be installed prior to installing the I/A Series
Report Package.
To load the I/A Series Report Package Setup program:
1. Exit other Windows programs before running the Setup program.
2. Insert the Report Package Install CD-ROM in the CD-ROM drive of your system.
3. Choose Start > Run > Browse to display the Browse window.
4. Select Step2_RptPkg_setup.exe on the CD-ROM drive and click OK.
The I/A Series Report Package Welcome window appears (Figure 1-21).
Preliminary
May 24, 2002
5. Click Next.
Setup searches for Excel and OpalisRobot3 components. If either software component
is not located, an error dialog box appears and Setup terminates.
18
1. Installing the I/A Series Report Package B0400BD – Rev B
Company Name
The Company’s Name dialog box appears (Figure 1-22).
Preliminary
May 24, 2002
Figure 1-22. Company Name Dialog Box
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 (Figure 1-23).
19
B0400BD – Rev B 1. Installing the I/A Series Report Package
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.
You can install the I/A Series Report Package in any directory.
Preliminary
May 24, 2002
Figure 1-23. Choose Destination Folder Dialog Box
20
1. Installing the I/A Series Report Package B0400BD – Rev B
Preliminary
May 24, 2002
Figure 1-24. Choose Reports Folder Dialog Box
♦ 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
recommended 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.
21
B0400BD – Rev B 1. Installing the I/A Series Report Package
Preliminary
May 24, 2002
Figure 1-25. Add to the Start Menu Dialog Box
♦ Click the check box of each desired option, 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.
22
1. Installing the I/A Series Report Package B0400BD – Rev B
Preliminary
Figure 1-26. Group Membership Dialog Box
23
B0400BD – Rev B 1. Installing the I/A Series Report Package
Start Installation
When Setup has enough information, the Start Installation dialog box appears (Figure 1-27).
Preliminary
May 24, 2002
Figure 1-27. Start Installation Dialog Box
♦ Click Install !! to begin copying I/A Series Report Package version 5.1 files onto the
workstation.
The Installing dialog box shown in Figure 1-28 displays the name of each file and a
progress bar as it is installed.
24
1. Installing the I/A Series Report Package B0400BD – Rev B
Preliminary
Figure 1-28. Installing Dialog Box
25
B0400BD – Rev B 1. Installing the I/A Series Report Package
Preliminary
a. Insert the Registration diskette.
b. Open the Windows NT Explorer and copy the aimreg.dat file from drive A: to the
26
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.
Preliminary
age. For more information, refer to the I/A Series Information Suite AIM*Historian User’s Guide
(B0193YL).
27
B0400BD – Rev B 2. Configuration
Preliminary
Historian Alias
28
2. Configuration B0400BD – Rev B
Preliminary
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.
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
Configurator without saving discards any changes made.
29
B0400BD – Rev B 2. Configuration
Preliminary
May 24, 2002
30
3. Building Reports
This chapter explains how to configure and build reports locally and from a remote
workstation.
Preliminary
Weekly Day: Sunday 7 days
Monthly Day: 1 1 month
31
B0400BD – Rev B 3. Building Reports
Report Type
Configurator
Preliminary
May 24, 2002
Figure 3-1. Report Builder Main Menu
32
3. Building Reports B0400BD – Rev B
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 (Figure 3-3).
Preliminary
Figure 3-3. Timing for Shift Report Dialog Box
9. When the new report type is created, modify the format using Excel.
33
B0400BD – Rev B 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 (Figure 3-5).
Preliminary
May 24, 2002
Figure 3-5. Build or Modify Dialog Box
2. Click either:
♦ to create a new report, or
New Report
♦ Modify Report to edit the format of an existing report.
The Report Type dialog box is displayed (Figure 3-6).
34
3. Building Reports B0400BD – Rev B
3. Select a report type from the default list and click Next.
Preliminary
The Report Name dialog box is displayed (Figure 3-7).
4. Enter a name for the report in the Report Name field.
35
B0400BD – Rev B 3. Building Reports
Preliminary
Use the Cell Editor to add a new AIM*Historian or I/A Series Historian tag to the worksheet:
1. Select a tag displayed in the Tag(s) or Description list boxes.
Compound:Block.Parameter Settings
♦ Click the Compound Block Param check box to automatically insert the
Compound, Block and Parameter five cells above the selected cell.
♦ Click the Operation check box to insert the Operation Name three cells above the
selected cell.
♦ Click 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.
36
3. Building Reports B0400BD – Rev B
NOTE
Using Excel to clear the C:B.P cell does not remove the link to the Historian.
Preliminary
2. Click Exit to Main Menu to exit the editor.
Sample Database
Controls
Figure 3-9. Sample Database Controls
37
B0400BD – Rev B 3. Building Reports
Preliminary
To configure the cells that receive data from the AIM*Historian or I/A Series Historian reduction
database:
Another example is that a daily average timestamped 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.
38
3. Building Reports B0400BD – Rev B
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”.
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.
Preliminary
May 24, 2002
Options
Figure 3-12. Report Builder Cell Editor Options Button
39
B0400BD – Rev B 3. Building Reports
Format of
Final Report HTML Path
Excel Path
E-mail
Settings
Reserved Report is
for Future E-mailed
Use to this list
Preliminary
May 24, 2002
Figure 3-13. Options Configurator
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 41 for more information.
4. Click the check box next to the printer graphic icon to print the report.
5. Enter the printer name to print from in the Printer field.
6. Click the Timestamp Snapshot Values check box to include the time stamp of a
snapshot value.
NOTE
The time stamp only applies to the snapshot type cells. Sample data is time stamped
regardless of the time stamp option selected.
7. Click the Overwrite check box to maintain the name of the done_report.
The done_report is the executed report saved to a file.
8. 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.
9. Enter the directory to which HTML reports will be saved.
40
3. Building Reports B0400BD – Rev B
10. 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.
11. Enter the directory to which XLS reports will be saved.
12. 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.
13. 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.
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”.
Preliminary
3. Insert your VB code.
4. Click Save and then Exit.
41
B0400BD – Rev B 3. Building Reports
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 Appendix B “Report
Examples”.
Preliminary
Building Reports from a Remote PC
42
3. Building Reports B0400BD – Rev B
Preliminary
Click this button to open
the “Access through
Share Permissions”
43
B0400BD – Rev B 3. Building Reports
Type of Access
must be set
to Full Control.
Preliminary
5. Select Full Control from the Type of Access pull-down list box.
To create a link to the I/A Series Report Package directory on the remote station:
1. Specify a drive
that has not
been assigned. 4. Click OK to
create the alias.
2. Enter a A window
TCP/IP address is displayed.
with the report
At the prompt,
name directory.
enter the login
For example:
name of the
\\10.9.19.130\rpt_pkg
report server
and password.
3. Check this option to
recreate an alias
each time you reboot
the station.
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
directory, for example: \\10.9.19.30\rpt_pkg.
44
4. Executing Reports
This chapter explains how to execute an On-Demand report and how to schedule a report to
run automatically.
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.
Preliminary
Figure 4-1. Report Pop-up Menu May 24, 2002
45
B0400BD – Rev B 4. Executing Reports
Preliminary
May 24, 2002
Figure 4-2. On-Demand Report Dialog Box
♦ To create a progress report rather than a full-period report, click the Produce a
check box.
Progress Report
♦ 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.
46
4. Executing Reports B0400BD – Rev B
TIP
You can also right-click on the desired report and select Scheduler. OpalisRobot3
software launches.
3. From the OpalisRobot3 pull-down menu, choose Service > Connect to.
The Connect to dialog box appears (Figure 4-3).
4. From the pull-down list box, select the OpalisRobot3 Server (the local machine to be
used for scheduling reports), and click Connect.
Preliminary
May 24, 2002
Figure 4-3. Connect to Dialog Box
OpalisRobot3 allows you to create specific Events, such as Time Events, and specific
Tasks, such as the invocation of a Report execution. OpalisRobot3 also allows you to
connect Events to Tasks.
The I/A Series Report Package provides an OpalisRobot3 scheduling wizard. Through
this report-oriented wizard you can configure most report schedules. The wizard auto-
matically generates the required Events and Tasks which you can then view, copy or
modify.
To generate a Time Event and Task:
1. From the OpalisRobot3 pull-down menu, choose Object > New.
The New Object dialog box is displayed (Figure 4-4).
47
B0400BD – Rev B 4. Executing Reports
Preliminary
2. Double-click the Wizard icon.
The Select a Wizard dialog box appears (Figure 4-5).
48
4. Executing Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure 4-6. Selecting the Report Execution Frequency Dialog Box
4. Select the frequency at which to schedule the report and click Next.
5. Specify the report to be scheduled (Figure 4-7).
49
B0400BD – Rev B 4. Executing Reports
6. Click the Browse [...] button and navigate to the directory path of the report to be
scheduled.
7. Specify whether or not to run a progress report and click Next.
8. Specify the time of day to run the report (Figure 4-8).
Preliminary
May 24, 2002
Figure 4-8. Selecting the Time of Day for Report Execution Dialog Box
9. Click Finish.
NOTE
The time of day you specify to run the report should be after the Start Time and
Duration of the report. If it is within that time and not scheduled as a progress
report, it produces the report for the previous report period. For example, a Daily
report may run 7:00 A.M. to 7:00 A.M. but it was scheduled to run at 6:30 A.M. It
then produces the report for two days ago. It is also good practice to allow a few
minutes to compensate for computer clock differences.
On completion, the scheduled task can be reviewed from the Task & Events window (Figure 4-9).
There are two components created, an Event (at 7:05 A.M. every day), and a linked Task
(C:\rpt_pkg\reports\daily\daily_production.rep). You can also review the Event and Task proper-
ties at any time by right-clicking on the Event or Task icon and selecting Modify. In Figure 4-9,
the Task and Events were first displayed via the Task & Events window and then the properties of
the Task were displayed via the Task Properties dialog box.
50
4. Executing Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure 4-9. Task Properties Dialog Box
If you intend to execute multiple reports at around the same time, use the Scheduled Report
Execution Task Wizard. For successive reports, select the Report Execution Task Wizard.
Note the following:
♦ The Scheduled Report Execution Task procedure generates an Event and a Task.
♦ The Report Execution Task procedure generates a Task which must subsequently be
connected to another Task or to an Event.
51
B0400BD – Rev B 4. Executing Reports
To generate a Task that you connect to another Task or event, use the Report Execution Task
procedure:
1. From the OpalisRobot3 pull-down menu, choose Object > New.
The New Object dialog box appears (Figure 4-4).
2. Double-click the Wizard icon.
The Wizard Selection dialog box appears (Figure 4-10).
Preliminary
May 24, 2002
Figure 4-10. Selecting a Report Execution Task Dialog Box
52
4. Executing Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure 4-11. Selecting a Report Dialog Box
5. Click the Browse [...] button and navigate to the directory path of the report to be
scheduled.
6. Specify whether or not to run a progress report and click Next.
7. From the Task & Events window, use the mouse to connect the newly-created Task to
an existing Task or to an Event (Figure 4-12).
Figure 4-12. Correlation between a Time Event, a Task, and an Additional Task
When you release the mouse button, the correlation between the Time/Date Event
and the Task is in place.
8. Choose Service > Apply Changes to apply the new scheduled tasks known to the
schedule service.
53
B0400BD – Rev B 4. Executing Reports
Preliminary
May 24, 2002
54
4. Executing Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure 4-14. Service Options Dialog Box
3. Enter the number of days to keep the scheduler logs (for example: 30).
Log files older than the specified number of days are deleted.
55
B0400BD – Rev B 4. Executing Reports
The text file can have any name. Two examples are shown in Figure 4-15.
Preliminary
May 24, 2002
Figure 4-15. Special Demand Text File Formats
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 contains the full report path and name, with extension.
♦ Line 2 contains the Start Date.
Use the format yyyy-mm-dd. Alternatively, use the keyword Default to default to the
current date.
This argument is interpreted as the End Date if the Duration argument is negative.
♦ Line 3 contains the Start Time.
Use the format h:mm:ss. Alternatively, use the keyword Default to default to the start
time configured in the report.
This parameter is not used for a weekly or a monthly type report but is still required in
the file.
This argument is interpreted as the End Time if the Duration argument is negative.
56
4. Executing Reports B0400BD – Rev B
Preliminary
♦ Line 8 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
57
B0400BD – Rev B 4. Executing Reports
Preliminary
May 24, 2002
Figure 4-16. Select a Wizard Dialog Box
58
4. Executing Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure 4-17. Select Folder and Timeout Dialog Box
8. Click the Browse […] button and navigate to the folder you want to monitor, such as
\rpt_pkg\reps_to_run\.
9. Select the maximum time, in minutes, to allow before the report timeout and click
Finish.
The Event and Task shown in Figure 4-18 are automatically triggered.
59
B0400BD – Rev B 4. Executing Reports
Preliminary
May 24, 2002
Figure 4-18. Event and Task for a Special Demand Report Trigger
Time Synchronization
The AIM*Historian or I/A Series Historian ODBC Library automatically adjusts the time speci-
fied in an SQL query to match the time of the I/A Series Station. The data returned is for a time
interval based on the PC time. For example, if the time on the PC is 14:10, and the time on the
I/A Series Station is 14:00, and you ask for data between 01:00 and 12:00, data is sent for the
interval between 01:10 and 12:10.
60
5. Report Directory Structure
and Files
This chapter defines the directory structure where reports are stored.
Built reports are saved under the reports directory (Figure 5-1). Report results are stored in the
done_reports directory within the corresponding report type folder.
Preliminary
May 24, 2002
If the HTML option has been selected, the results are converted to a Web Browser Viewable
document and saved under the html directory.
61
B0400BD – Rev B 5. Report Directory Structure and Files
Preliminary
May 24, 2002
62
6. Web Reports
This chapter explains how to generate and customize a Report Home Page.
Preliminary
May 24, 2002
63
B0400BD – Rev B 6. Web Reports
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.
Preliminary
If the Home page was already opened:
♦ Choose View > Refresh from the Internet Browser to display the updated report.
64
7. Purging Reports
This chapter explains how to configure OpalisRobot3 to automatically delete old reports after a
specified period of time.
Preliminary
5. From the OpalisRobot3 pull-down menu, choose Object > New to generate a time
event.
65
B0400BD – Rev B 7. Purging Reports
Preliminary
May 24, 2002
Figure 7-2. Event Properties Dialog Box
7. Enter a name for the event in the Name field, such as Management, and select
Date/Time from the Type pull-down list box.
8. Click one of the option buttons to configure the frequency of the event, and
specify the time of day to perform the clean up.
9. Select the Options tab.
66
7. Purging Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure 7-3. Event Properties Options Tab
67
B0400BD – Rev B 7. Purging Reports
10. Select Send a message to the Event Log from the When event is triggered pull-down
list box and click OK.
The Event Properties dialog box closes, and the Task & Events window appears
(Figure 7-4).
NOTE
Special scheduling options are also available under the Activity tab. For more infor-
mation, open OpalisRobot3 then choose Help > Index > OpalisRobot3.
Preliminary
May 24, 2002
Figure 7-4. New Event Properties Folder
11. In the Properties tab, click the new event to see its settings.
68
7. Purging Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure 7-5. Task properties Dialog Box
3. Name the task in the Name field, such as DeleteOldXLS, and select File management
from the Type pull-down list box.
4. In the Origin folder field, specify the destination path of the report.
69
B0400BD – Rev B 7. Purging Reports
5. Click the Filter option and click the 0 button to the right of it.
The File filters dialog box displays (Figure 7-6).
Preliminary
Figure 7-6. File Filters Dialog Box
70
7. Purging Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure 7-7. Task Properties Advanced Tab
9. Select the Is more than option in the File age pull-down list box.
10. In the Value (days) field, enter the number of days to store the report.
71
B0400BD – Rev B 7. Purging Reports
Preliminary
May 24, 2002
Figure 7-8. Task properties Options Tab Page
12. Select Send a message to the Event Log from both the pull-down list boxes If task
succeeds and If task fails and click OK.
The new task appears under the Tasks & Events window (Figure 7-9).
72
7. Purging Reports B0400BD – Rev B
13. Click the Task icon to display the properties of the task on the Properties page.
14. Click the white connection pole on the event to correlate the new event with the new
task.
15. Connect the line to the white connection pole on the left of the task (Figure 7-9).
The correlation between the event and the task is set.
16. From the OpalisRobot3 pull-down menu, choose Service > Apply Changes to make
the new scheduled tasks known to the schedule service.
The clean up Event/Task is now completed. Repeat the procedure for each directory that must be
cleaned up and attach the new task to a connection pole of another task.
Preliminary
May 24, 2002
73
B0400BD – Rev B 7. Purging Reports
Preliminary
May 24, 2002
74
8. Troubleshooting
This chapter lists possible problems and recommended solutions.
Problem Action
Preliminary
When importing the historical Either you are not authorized for ODBC access of the historian,
tables or the historized tags, a or your user account does not have the required permissions.
window is displayed requesting On the server, verify the an_init.tcp file or use an_setup to mod-
75
B0400BD – Rev B 8. Troubleshooting
Problem Action
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 pack-
“Error 429: Active X compo- age uses DAO 3.60 without problems. Although some systems
nent cannot create object” may have multiple versions of DAO installed and registered, 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.dll
Preliminary
installed.
If the program persists:
Copy the file into the \WINNT\SYSTEM32 directory.
76
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
Preliminary
[Others]
RepPkgHtmlDir The directory where the web version of the report results are saved.
RepTraceLevel Determines how much information is logged in the log file. To enable log-
ging of the database (AIM*Historian or I/A Series Historian) database
queries, set RepTraceLevel to 3.
Qoff The query offset (in hours) for the queries made to the AIM*Historian or
I/A Series Historian database.
77
B0400BD – Rev B Appendix A. Configuration File (.ini file)
FormatTimestamps
The flag that allows the cells that contain a time stamp to be formatted.
♦ FormatTimestamps=YES: The format of all the time stamp fields
in reports is dictated by the I/A Series Report Package. If the
defaults are not to the user’s preference, then refer to the
FormatTimestamps=NO option.
♦ FormatTimestamps=NO : The format of a time stamp field abides
by the format of its corresponding cell in the .rep file. The user
can open the .rep file with Excel and adjust the cell formats to his
own preference.
Preliminary
May 24, 2002
78
Appendix B. Report Examples
This appendix provides examples of daily reports, weekly reports and a Final Data Worksheet.
Preliminary
May 24, 2002
Hourly
Reduction
Group Tag
inserted
into Cell
79
B0400BD – Rev B Appendix B. Report Examples
Hourly
Reduction
Preliminary
Values
Inserted
Into Cell
The time stamp of sample data is always inserted one column left of the values regardless of the
time stamp option.
80
Appendix B. Report Examples B0400BD – Rev B
Preliminary
Figure B-3. Weekly Report with Reduction Data and First Value Included May 24, 2002
81
B0400BD – Rev B Appendix B. Report Examples
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.
Preliminary
May 24, 2002
Figure B-4. Weekly Report with Reduction Data and First Value Ignored
This weekly report (Figure B-4) 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.
82
Appendix B. Report Examples B0400BD – Rev B
Preliminary
May 24, 2002
Figure B-5. Final Data Worksheet
In the example illustrated in Figure B-5, notice the subtraction of one day from the
original timestamp. This means that the reduction of the samples taken between Monday, Febru-
ary 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.
83
B0400BD – Rev B Appendix B. Report Examples
Preliminary
May 24, 2002
84
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
Preliminary
user code.
On Error Resume Next
'=================================================================
INSERT CODE HERE
'====================================================================
'>
'>
'>
'>
'>
'====================================================================
'====================================================================
End Sub
85
B0400BD – Rev B Appendix C. User Macro Code Template
Preliminary
May 24, 2002
86
Appendix D. Updating Existing
Reports
This appendix provides instructions on how to update reports from version 5.0 and earlier to
version 5.1 and update and use reports built with the WIN32® Report Package.
NOTE
Before running the update, backup the folder \rpt_pkg\reports.
Preliminary
on samples that predate the report period. The update procedure below appropriately adjusts the
internal configuration formats in relation to this new functionality and allows you to select the
option on a cell-by-cell basis (Figure D-7).
87
B0400BD – Rev B Appendix D. Updating Existing Reports
Preliminary
2. Click OK.
Excel launches and displays the utility shown in Figure D-2.
88
Appendix D. Updating Existing Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure D-3. Select the Reports to Update Window
89
B0400BD – Rev B Appendix D. Updating Existing Reports
Preliminary
May 24, 2002
Figure D-4. Select the Reports to Update Window
90
Appendix D. Updating Existing Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure D-5. Select All Reports to Update
91
B0400BD – Rev B Appendix D. Updating Existing Reports
Preliminary
May 24, 2002
Figure D-6. Reduction Groups to Update Window
6. Click Update.
If you select File-by-File, the dialog boxes shown in Figure D-7 and Figure D-8 open.
92
Appendix D. Updating Existing Reports B0400BD – Rev B
Preliminary
May 24, 2002
Figure D-9. Hide Config Worksheet Tab
93
B0400BD – Rev B Appendix D. Updating Existing Reports
Preliminary
May 24, 2002
Figure D-10. Update Reports to Version 5.0 Utility Run Window
94
Appendix D. Updating Existing Reports B0400BD – Rev B
2. Click OK.
Excel launches and displays the utility shown in Figure D-11.
Preliminary
May 24, 2002
Figure D-11. Update Reports and Template Window
95
B0400BD – Rev B Appendix D. Updating Existing Reports
Preliminary
May 24, 2002
96
Appendix E. Windows 2000
Navigation
This appendix discusses the Windows 2000 navigation specifics.
Chapter 1 “Installing the I/A Series Report Package” of this manual details the creation of ODBC
data sources and setup of the Opalis service, and contains information specific to a Windows NT
4.0 environment.
On Windows 2000, to navigate to:
♦ The ODBC Data Source configuration, choose
Control Panel > Administrative Tools > Data Sources ODBC .
♦ The services configuration, choose
Control Panel > Administrative Tools > Services > select service, right click
Preliminary
Properties and select the Logon tab.
♦ The User configuration, choose
Control Panel > Administrative Tools > Computer Management > Local Users
97
B0400BD – Rev B Appendix E. Windows 2000 Navigation
Preliminary
May 24, 2002
98
Appendix F. Uninstalling
OpalisRobot3.5f
This appendix provides the procedure for uninstalling OpalisRobot3.5f software.
Version 5.0 of the I/A Series Report Package included OpalisRobot3.5f software. Version 5.1 of
the I/A Series Report Package includes OpalisRobot3.6a.
NOTE
If you are upgrading to the I/A Series Report Package 5.1, you must replace
OpalisRobot3.5f with OpalisRobot3.6a.
Uninstall OpalisRobot3.5f
Preliminary
To uninstall OpalisRobot3.5f:
1. Backup the *.dv3 files from the folder C:\Program Files\Opalis\OpalisRobot3.
NOTE
If you are not using any other Opalis product, it is safe to delete the entire Opalis
folder key entry.
99
B0400BD – Rev B Appendix F. Uninstalling OpalisRobot3.5f
Preliminary
May 24, 2002
100
Index
A
Adding a report tag 36
Alias
Creating 28
Deleting 29
Authorization, Report Package and AIM ODBC Driver 26
Automatically purging reports 65
B
Building reports 34
Remotely building 42
Preliminary
Compound Block.Parameter settings 36
Configuration
Alias 28
D
Daily reduction group 27
Database
Reduction 38
Sample 37
Deleting aliases 29
Directory structure 61
E
Event Objects 48
Executing Reports 45
F
File and Worksheet Concepts 41
File structure 61
Files
Configuration (.ini) 77
Log 75
101
B0400BD – Rev B Index
FoxView environment 64
H
Historian Alias Configurator 28
Hourly reduction group 27
I
I/A Series Report Package, definition of 1
L
Log file 75
M
Macro 85
Option 41
Macro Code Template 85
Preliminary
N
O
ODBC
Creating data sources 4
Installing the driver for AIM*Historian 4
On-demand reports 45
P
Progress Report 46
Purging reports 65
R
Reduction database controls 38
Reduction Groups 27
Remote PC
Functionality and Limitations 42
System Requirements 42
Remotely building reports 42
Removing report tags 37
Report
Adding a tag 36
Directory structure 61
Executing 45
102
Index B0400BD – Rev B
New type 31
On-demand 45
Options 39
Purging 65
Removing a tag 37
Saving 37
Scheduling 47
Tags 36
Updating 87
Report Home Page 63
Auto-update 63
Update 63
Report Package, definition of 1
Requirements
System 1
Revision information xi
Preliminary
Safety considerations xii
Sample Database Controls 37
Saving Reports 37
T
Task
Scheduling 54
Trigger 54
Time synchronization 60
Trigger
Task 54
Troubleshooting 75
U
Updating Reports
From Version 4.2 to 5.0 87
From Version 5.0 to 5.1 87
User Account
Attributes 12
Logging on as a service 16
103
B0400BD – Rev B Index
W
Web
Browser 64
Reports, generation of 63
Web Report Home Page
Update 64
Windows 2000 Navigation Specifics 97
Preliminary
May 24, 2002
33 Commercial Street
Foxboro, Massachusetts 02035-2099
United States of America
www.foxboro.com
Inside U.S.: 1-866-PHON-IPS (1-866-746-6477)
Outside U.S.: 1-508-549-2424 or contact your local Foxboro representative.
Facsimile: 1-508-549-4999
Printed in U.S.A. 0502