Академический Документы
Профессиональный Документы
Культура Документы
Manual
IM 36J04A15-01E
Yokogawa February 28 2007
8th Edition Issue 1
ii
Contents
Highlights
The Highlights section gives details of the changes made since the previous issue of this
document.
Summary of Changes
This is the 8th Edition of the document.
Detail of Changes
The changes are as follows.
Chapter/Section/Page
Change
Chapter 4
Chapter 6
iii
iv
Contents
Table of Contents
Chapter 1
1.1
1.2
General .............................................................................................................................1-1
Chapter 2
2.1
2.2
2.3
2.4
2.5
2.6
Chapter 3
3.1
3.2
3.3
Chapter 4
4.1
4.2
4.3
4.4
4.5
4.6
4.7
4.8
4.9
Chapter 5
5.1
5.2
5.3
5.4
Chapter 6
6.1
6.2
6.3
7.1
Event Viewer....................................................................................................................7-1
7.2
7.3
Chapter 8
8.1
8.2
8.3
vi
Contents
Chapter 1
1.1
1-1
Introduction
Intended Audience
The Exaquantum Engineering Guide contains tasks that need to be completed by users
within your organisation that have Windows administrative privileges. The user(s) of this
document must also be familiar with the following topics:
Windows Domain security (Users, Groups, Permissions etc)
DCOM Settings
Microsoft Excel
Configuring Networking components.
This documentation therefore assumes that the person carrying out the procedures has
knowledge and experience in the areas mentioned above. It also assumes that you have
already completed the relevant Exaquantum course(s).
1.2
General
The Engineering Guide summarises what is considered by Yokogawa as to be the 'good or
best practice' in the operation of an Exaquantum system. It is not intended that the methods
or procedures detailed in this document represent the only approach to configuring,
monitoring and using an Exaquantum system, but rather the procedures described are
proven, practical and effective.
This Engineering Guide has been divided into, Volumes and Chapters that detail various
procedures and methods. Certain Volumes or Chapters may not be relevant to your
Exaquantum system.
Volume 1: Administration
Chapter 1: Introduction
Chapter 2: Aggregation and Reporting Features
Chapter 3: Site Work
Chapter 4: Normal System Operation
Chapter 5: OPC Gateways
Chapter 6: System Evolution
Chapter 7: Trouble Shooting
Chapter 8: Extending the System
Volume 2: Network Configuration
Volume 3: Support Tools
Volume 4: Web Authoring
1-2
Chapter 1 Introduction
Chapter 2
2-1
This section gives details about how to create reports using the Aggregation Periods.
Exaquantum data is available in live (updating values, useful for monitoring current
situations) and historical (past values, useful for an organisations reporting needs).
Caution
When creating reports it is important to understand how aggregations work, as it is very easy
to select the wrong date and therefore display the wrong data.
This section gives details and examples of hourly and daily aggregations, showing the
potential difficulties involved and how to overcome them.
When tag values are updating every second, a report that listed all received data for any
considerable length of time would have too many values to be easily interpreted by the user.
To find specific data some filtering is required, e.g. the user may only be interested in the
highest value or the average value.
To assist report generation, Exaquantum uses Aggregations. An aggregation looks at data
over a specified time (an aggregation period) and makes calculations based only on data
within that aggregation period. Typical calculations are max, min, mean and sum. These
calculations are made at the end of the specified aggregation period. Typical aggregation
periods are hour, day and shift. These aggregation periods can be used in Microsoft Excel
reports that can cover any period.
Note:
Some useful examples of Excel report templates are supplied with Exaquantum.
For more information about reports, see the Exaquantum/Explorer User's Manual
(IM 36J04A12-01E).
A report will simplify data extraction. This is best achieved by using a specified report start
date and extracting the data automatically for all the other time periods by adding an amount
of time to that date. The first value in a report may be reportdate, the second reportdate n+1,
the third reportdate n+2, and so on.
For example, a weekly report specifies a start date of day n and the report will know that
the first value for the report is that of day n, the second value that of day n+1, and so on.
2-2
2.1
Aggregation Characteristics
The following points summarise the way an aggregation works:
Aggregations perform calculations based on all data values within a specified
aggregation period.
The calculation is performed after the end of the aggregation period, once all data is
received.
To ensure data from the whole time period is included, the calculation is performed up to
one minute after the end of the aggregation period to allow for late arriving data. Most
aggregations are timestamped at the end of the aggregation period. For example: Hourly
aggregation from 01:00:01 to 02:00:00 will be timestamped 02:00:00. Minimum and
Maximum aggregations are timestamped at the time of occurrence.
Aggregations are stored using Universal Co-ordinated Time (UTC), but
Data requests are made in local time.
Times are translated automatically by Exaquantum.
An aggregation value remains current in history until superseded by the value of the
next aggregation.
For Example:
Aggregated value v1 is written to history at the end of an aggregation period and
identified by a timestamp of t1. When the next aggregation is calculated, value v2 will
be given the timestamp t2. Therefore requesting the value for the timestamp t1 will
return value v1 and a request for t2 will return v2. If a request is made between those
times, then the last value written to history before that point is returned. This is
important in the understanding of how aggregations work and is summarised in Figure
2-1 which behaviour when aggregations are calculated every hour:
Figure 2-1 Example of Aggregations Calculated Every Hour
15
Value
10
00:00
01:00
02:00
Time
2-3
Timestamp
New Value
Current Value
00:00 (t1)
10 (v1)
10
00:20
10
00:40
10
01:00 (t2)
01:20
15 (v2)
15
15
Figure 2-1 shows that a request made with a timestamp of 00:40 will return the value
written at 00:00. This behaviour is very useful when it comes to creating reports, as will
be explained later.
2-4
2.2
Hourly Aggregations
Hourly aggregations are normally used for daily or weekly reports.
It is important to understand that each hourly aggregation has a start point and an end point
but is only identified by its end point. The timestamp of a value is the end of the period.
For example, we will look at hourly aggregations during the day 20th January 2000.
The first hourly aggregation will begin at 00:00:01 and end at 01:00:00. The timestamp
attached to this aggregation will be 20/01/00 01:00:00.
The second aggregation will begin at 01:00:01 and finish at 02:00:00. It will have a
timestamp of 20/01/00 02:00:00.
This continues until 23:00:00. The final aggregation of the day is slightly different from
the others. It begins at 23:00:01 and ends at 00:00:00 but it has a timestamp of 21/01/00
00:00:00.
Note:
This effect can be misleading. Timestamps for the end of the day should be
noted carefully.
The Daily report templates supplied with Exaquantum use this structure. These
reports are example templates and must be configured to the users exact needs.
There are three factors to consider when configuring a Daily report using hourly
aggregations
Report Label
Final Hour
Offset Period.
Understanding Report Labels
Each aggregation covers a period of one hour. Each value will be identified for the report
reader by a label, normally a row or column heading, e.g. 05:00. Each label on the report is
normally a fixed time. This would normally either be starting at 06:00 and ending 23:00 or
starting at 07:00 and ending 00:00.
Either can be argued to be correct, it depends whether you wish to show the start points or
the end points of each aggregation period. Whichever labelling option is used the
aggregation timestamp will be the same. For both options the first period will have the
IM 36J04A15-01E 8th Edition Issue 1 February 28 2007-00
2-5
timestamp of 01:00. This would match the label in the second option which is perhaps why
this option is more common. It is possible to be very accurate and label your first value
00:00:01to 01:00:00 but this is not normally done.
The Final Hour (23:01 - 00:00)
The last aggregation in the day will have a timestamp of one day later than all of the others.
If relative report periods are used this will not cause a problem because the report will ask
for the report date + 24 hours and therefore the correct value will be provided.
However if absolute report periods are used, specifying 00:00:00 on the day of the report
will actually retrieve the value for the previous day.
Note:
2.3
If absolute report periods have to be used, the final hour must have a date that is one
day ahead of the report date (REPORTDATE+1).
Daily Offsets
A report does not need to start or finish at 00:00, it can start or end at any specified time.
This is common in organisations where a nightshift may finish early in the morning, e.g.
06:00.
Note:
Daylight Saving Time (DST) can cause problems if the end of the daily offset is
between 02:00 and 04:00.
It is likely that a report would cover the period up to the end of a shift rather than divide a
shift in half. In this case you will need to specify a report time as well as a report date.
There are two ways to achieve this in a Microsoft Excel workbook:
Direct Timestamp Entry
Offset Calculation.
Direct Timestamp Entry
The user is normally requested to enter a date from which the hours needed for the report are
calculated. If a day begins at 06:00, the user could be asked to enter in the full time stamp,
e.g. dd/mm/yy 06:00:00. The report would then add the data for the first hour 06:01 to 07:00
to the first row and add one hour to each row after that.
Note:
Ensure that your report is labelled correctly, starting at 07:00 for the first hour.
2-6
Create a cell that asks the user to input the date of the report.
Format this cell so that it accepts only a date (dd/mm/yy). Excel will add a default time
portion of 00:00:00.
Format this cell so that it can only contain time (hh:mm:ss) and enter 07:00:00. The cell
will show 07:00.
Format this cell so that it contains time and date (dd/mm/yy hh:mm:ss). Name this cell
REPORTDATE.
Use REPORTDATE for the first row of data, REPORTDATE+1 for the second, and so
on. Refer to the Daily report templates for more information.
Note 1: The REPORTDATE and the offset cells should remain hidden from the user. (Hint:
Use font and fill of the same colour). They should also be protected so that they
cannot be deleted. You may wish to place these cells somewhere out of the way of
the main report body.
Note 2: Using this format the user will enter the date they are interested in; the workbook
will automatically retrieve the correct values.
Daylight Saving Time
Daylight Saving Time (DST) can also affect reports using hourly aggregations and it is
important to understand how a report can be affected. The occasions when DST causes a
problem are the two days on which the local clocks change.
Exaquantum uses Co-ordinated Universal Time (UTC) to timestamp values. This time is
translated into local time so that the user sees timestamps only in their local time. For
example where local time is two hours ahead of UTC, i.e. 02:00 local time is 00:00 UTC.
2-7
On a normal day at the beginning of the year, timestamps will be attached as follows:
Local Time
UTC timestamp
00:00
22:00
01:00
23:00
02:00
00:00
03:00
01:00
04:00
02:00
This is not a problem as the times are automatically converted. A request for the value at
03:00 local time will be translated to 01:00 UTC. Each day has 24 hourly aggregations.
Clocks Going Forward
When DST begins and the clocks go forward (assumed to be one hour change at 02:00 local
time) the timestamps will be as follows:
Local Time
UTC timestamp
00:00
22:00
01:00
23:00
03:00
00:00
04:00
01:00
05:00
02:00
The local time request will be automatically translated by Exaquantum. However this day
will only have 23 hourly values, there being no value for 02:00 local time. Exaquantum
copes with this because a request for 02:00 local time will return the last value written to
history, in this case at 01:00 local time, 23:00 UTC. The daily report will still have 24
values, the values for 01:00 and 02:00 are the same.
2-8
Local Time
UTC Timestamp
00:00
21:00
01:00
22:00
02:00
23:00
02:00
00:00
03:00
01:00
The complication when DST ends is the local time of 02:00 can refer to either 23:00 UTC or
00:00 UTC. In this case there are 25 hourly aggregations for the local time period, one of
which will not be included in the report.
Possible Problems
This will affect daily totals. The sum value, in a workbook, will be too low and average
values could be too high or too low. It is also possible that a max or min value could occur
within the aggregation that is not displayed. This value would not appear on the report.
Solution
There is no simple solution to this problem. It may be acceptable to simply be aware of the
issue. However, if all data values are crucial then a special report collecting all individual
historical values for that day and manually calculating the results is the only solution. An
alternative would be to engineer a solution whereby values were requested and displayed in
UTC only. This is beyond the scope of standard Exaquantum functionality at present.
2.4
2-9
Daily Aggregations
Daily aggregations are commonly used for weekly or monthly reports.
The principle of daily aggregations is similar to that of an hourly aggregation. The
aggregation is identified by its end time but daily aggregations are almost always
timestamped one day after what may be expected. This can cause confusion when creating a
report and must be approached with care.
Example:
A daily aggregation starts at 00:00:01 and end at 00:00:00. The data values collected during
the day 20th January 2000 will be calculated at 00:00:00 on the 21st January 2000 and will
have the timestamp 21/01/2000 00:00:00. If a report requires the data values calculated for
the 20th January, the report must request the aggregation period value with a timestamp of
the 21st January.
Offsets
It is possible to apply an offset to an aggregation period. This is common for daily
aggregations where a shift may finish at 2.00 am. In this case using the Daily Aggregation
example, data values would start being collected at 02:00:01 on the 20th January and the last
value would be 02:00:00 on the 21st January. The timestamp for the aggregation would be
21/01/2000 02:00:00.
This means that it is insufficient to only specify the 21st January because Excel will default
to 00:00:00 and the aggregation period will not have finished. A report would have to use a
timestamp no earlier than 02:00:00.
The offset can be up to 23 hours. This provides further complication because of when the
period might end. It is safe to assume that a period with a 2 hour offset is concerned mainly
with the preceding days data. Similarly it is safe to assume that an offset of 23 hours will be
concerned with the current days data. However, an offset of 12 hours could mean either and
the report creator will have to know which day falls into which aggregation period. In
practise, this is uncommon. More usual is to have a day that fits with the end of a nightshift, ending no later than 08:00:00.
2-10
Value
20/1/00
Value 1
21/1/00
Value 2
22/1/00
Value 3
23/1/00
Value 4
24/1/00
Value 5
25/1/00
Value 6
26/1/00
Value 7
The difficulty arises because we have only specified half of the timestamp, the date half and
have given no time part. Thus the workbook will default to 00:00 and the value given as
Value 1 will in fact be based on data collected on the 19/1/00.
To overcome this the report creator must know the following information:
Offset used for the Aggregation Period
Date the user will enter
Data the user requires.
Points two and three may seem similar but it is important to know whether the user is aware
that aggregations are given a timestamp at the end of the aggregation period. If the user is
aware of this, and tries to adjust his input accordingly, then all corrective work within the
workbook will in fact cause incorrect values to be displayed. It is best practise to instruct the
user to enter the date for which he wants the data value and perform corrective actions
through the workbook.
These three pieces of information will allow the report creator to translate the date the user
enters, into the data the user requires.
IM 36J04A15-01E 8th Edition Issue 1 February 28 2007-00
2-11
Create a cell that asks the user to input the start date.
Format this cell so that it accepts only a date (dd/mm/yy). Excel will add a default time
portion of 00:00:00.
Format the second cell so that it can only contain time (hh:mm:ss) and enter 28:00:00.
The cell will show 04:00 but will store the extra day as well.
Format the third cell so that it contains time and date (dd/mm/yy hh:mm:ss). Name this
cell REPORTDATE.
Note:
The REPORTDATE and the offset cells should remain hidden from the user.
(Hint: Use font and fill of the same colour).
The cells should also be protected so that they cannot be deleted. You may wish to
place these cells somewhere out of the way of the main report body.
2-12
Reference Date
Day 1 (20/01/00)
REPORTDATE
Day 2 (21/01/00)
REPORTDATE+1
Day 3 (22/01/00)
REPORTDATE+2
And so on until
And so on until
Day 7 (26/01/00)
REPORTDATE+6
Note:
The drag and drop activity of adding tag values and the formulas required to do this
are not covered in this section. For more information refer to the
Exaquantum/Explorer User's Manual (IM 36J04A12-01E).
2.5
2-13
Summation Aggregation
A time-based summation calculates the area under value/time curve (the aggregated value is
units per second/minute/hour/day).
Figure 2-2 Typical Summation Aggregation
Value
00:00
01:00
02:00
Time
Short duration values carry less weight than long duration values.
A summation aggregation without a time base, is a summation of each new value in the time
range (the aggregated value is in absolute units not rate of flow).
Figure 2-3 Typical Summation Aggregation with no Time Base
Value
3
2
1
02:00
01:00
00:00
14
Example:
When a PCS aggregated value is being read (totaliser), its values increases until a
limit is reached. At this point the value is zeroed then starts to increase again. This
value is used as an input to a calculated tag. The expression in the calculated
subtracts the previous value (stored in a manual tag) then stores the input in the
manual tag for the next cycle. If the result is large and negative, add the limit value
as you have seen a roll over zeroisation.
2-14
2.6
10
50
10
40
Diff Sum
10 + 15 + 5 + 10 + 10 + 10
30
25
10
15
10
10
1:00
2:00
2-15
2-16
If the difference between the previous and current values exceeds the valid percent
difference, the previous value is saved into a temporary buffer. Upon acquisition of
the next data, the difference between the current value and the temporary buffer value
is calculated and the difference is adopted if it is less than the valid percent difference.
If data is outside the permissible range, the difference between the previous and
current values is calculated as normal. If next data is within the permissible range, its
value is taken. Refer to Figure 2-6
If data is outside the permissible range in both cases, no calculation is performed and
the temporary buffer is not updated. Refer to Figure 2-7
Calculate difference of
the value in the temporary buffer
and the current value.
Calculate difference of
the previous value and
the current value.
Figure2-5 Flow Chart of Correction Function based on the Valid Percent Difference
2-17
The following figure shows an example of a correction using the valid percent difference.
60
10
50
Diff Sum2
15 + 10 + 10
10
40
Percentage
Difference
15
25
15
Diff Sum1
10 + 15
10
10
2:00
Figure 2-6 Example 1: Correction Function based on the Valid Percent Difference
Percentage
Difference
35
15
25
20
Diff Sum1
10 + 15
15
15
10
10
Diff Sum2
10 + 5 + 15
10
5
1:00
2:00
Figure 2-7 Example 2: Correction Function based on the Valid Percent Difference
2-18
Chapter 3
3-1
Site Work
This section gives details of the hardware and software requirement before the installation of
the Exaquantum system.
It is intended that the customer should use this Section to help him provide a design
specification to the Exaquantum System Integrator before the system is commissioned.
3.1
Item Description
Finding
[A] Hardware
1
Type:
BNC/10Base2
RJ45/UTP
AUI/10Base5
Comments:
2
Type:
BNC/10Base2
RJ45/UTP
AUI/10Base5
Comments:
Office LAN:
Type:
BNC/10Base2
RJ45/UTP
AUI/10Base5
BNC/10Base2
RJ45/UTP
AUI/10Base5
Comments:
Office LAN:
Type:
BNC/10Base2
RJ45/UTP
AUI/10Base5
Comments:
Action By
Due By
3-2
Item Description
Finding
Action By
Due By
Cable Length:
Cable Length:
Cable Length:
Cable Length:
Comments:
Comments:
Comments:
Comments:
Rating:
Plug Type:
No. of power sockets:
Comments:
Rating:
Plug Type:
No. of power sockets:
Comments:
Finding
[D] Software
1
Comments:
HIS
Comments:
Comments:
3-3
Action By
Due By
3-4
3.2
Description
[B] Exaopc
1
Description
[E] Training
1
3-5
Action By/Due Date
3-6
3.3
Chapter 4
4-1
4.1
Health Checks
Various checks can be made, from time to time, to make sure that your Exaquantum System
is running healthily. These include network checks, database integrity checks and disk space
checks.
All health checks, by default, are run on the Exaquantum server but can be run on a client
computer where stated.
This section gives details of the health check procedures and the checks for potential
problems.
Frequency of Checks
The time-scales that are adopted will depend on the personnel available and the users own
requirements.
For a typical system, we recommend these health checks be run every week; they do not
need to be run daily.
Under certain circumstances, the health checks can be run less frequently, contact your local
Yokogawa representative for the recommended frequency for your Exaquantum system.
The health checks may be useful as trouble shooting tools to locate system problems.
The following health check procedures are included in this section:
Network Connection
Time Synchronisation
Memory Usage
Database
Live Data Feed
Event Viewer.
4-2
4.2
Procedure
This health check uses the Ping command that is available on Windows 2000 or Windows
2003 if the TCP\IP protocol is installed. To run this health check, open the command
prompt.
1
In the command prompt box, type Ping followed by the name of the computer you want
to connect to.
A command line will inform you that you are pinging the desired computer.
You should receive three or four lines in the form of a reply. This indicates a healthy
connection.
Repeat steps 1 and 2 for the other computers in your Exaquantum system.
Hint
You may want to create a batch file to perform this health check. The format would be very
simple, an example follows:
Ping
computer1
Ping
computer2
Ping
computer3
Ping
computer4
Ping
computer5
Pause
This batch file could be kept in a folder called Health Checks on the Exaquantum Server
and run by double clicking on its name. The progress of the health check must be
monitored.
4.3
4-3
4-4
4.4
Procedure
For the Memory Usage health check, use the Windows Task Manager.
1
Right-click on a blank section of your taskbar, from the pop-up menu select the Task
Manager option. The Task Manager utility window is displayed.
CPU Usage
The CPU usage will change constantly depending on the operations taking place. This is
acceptable as long as the CPU Usage falls to below 30% regularly (at least 10 times a
minute). The main indication of a problem would be if CPU Usage is constantly at or above
90%. This would indicate a problem with the Exaquantum System and should be
investigated immediately.
MEM Usage
The MEM Usage indicates the amount of virtual memory being used by the computer. Exact
figures will vary but there should be no significant growth from time to time. Make a note
of the figure shown and compare it with the values that were found last time. Any
significant growth (10% or more) should be investigated. You should also check the value
against the limit value shown. If you are near the limit value you will need to consider
creating more virtual memory.
4.5
4-5
Disk Allocation
There are three Exaquantum databases, each of which has a specific use. The Config
database and the HistorianAdmin database are relatively small in capacity and will not
increase in size significantly during the life of an Exaquantum system.
The third database, HistorianData, contains all historical values that are written to
Exaquantum. This database can expand rapidly and can grow to be very large. Therefore it
will be necessary to archive data to an off-line source.
For more information about archiving data, see the Exaquantum/PIMS User's Manual (IM
36J04A11-01E).
The purpose of this section is to describe how to check the size of your databases.
1
From the Start Menu, select Programs, Microsoft SQL Server 2005 then
Management Studio.
Input the settings below in the Connect to server window, and click on Connect.
Server type: Database Engine
Server name: Exaquantum Server name
Authentication: Windows Authentication
Select your Exaquantum server computer name. Click on the + sign to expand the node.
Select Databases and click on the + sign to expand the node. A list of all available
databases is displayed.
Click on the database name that you wish to view, e.g. QHistorianData.
4-6
This is the total space allocated for this database, not the total space on the
computer. The space allocated will depend on how you originally configured
your Exaquantum databases.
Disk Space
When you have established the status of your databases you must check the amount of
physical disk space remaining.
1
Right-click on the drive that the databases are held on and select Properties.
A graphic shows how much disk space is used and how much is available.
Note:
The disk space used may not be full. If a database is allocated 100 MB of disk
space then that 100 MB is reserved and therefore used even if there is no data in
the database tables.
It is possible that your HistorianData database resides on a different disk to the
other two. In this case you may wish to check both disks although in practice it
is only the HistorianData database that will increase in size significantly.
You now have a guide to the status of your databases. You should know:
How much space you have allocated for each database
How much of that allocation has been used
How much free space there is on the physical disk.
Historian Validation
This ensures the Historian databases are correctly storing data values.
For more information about the Historian Management tool, see the Exaquantum
Engineering Guide Volume 3 Support Tools (IM 36J04A15-03E). This document gives
more information about how to run checks.
4.6
4-7
4.7
Procedure
There are many possible messages that could be written to the Event Log. This section does
not attempt to list them all. Instead we encourage you to check the Event Logs for any
warning or error messages. Any that are found should be investigated immediately.
To view the Event Log, open the Event Log Viewer.
1
From the Start menu, select Programs, Administration Tools (Common) then Event
Viewer. The Event Viewer is displayed.
Use the File menu to change the log that you are viewing if necessary.
You should view the Application log and the System Log.
Investigate any warning messages (indicated by a yellow circle) and any error messages
(indicated by a red octagon).
Note:
4-8
4.8
Password Policy
General
The way current passwords are administered and the way that the Exaquantum system is
configured will influence the password policy that is adopted for your Exaquantum system.
When deciding on a password policy it is important to note:
Due to identification checks carried out by Exaquantum, all user accounts and their
current passwords must be available to both the client computers and the Exaquantum
server computer.
The Exaquantum service user (default is quantumuser) must use passwords that do not
expire.
Take care when changing the Exaquantum service user password. Changing this
password will effect DCOM settings and prevent the Exaquantum system from
functioning correctly until Exaquantums DCOM configuration tool (QDCOMCnfg.exe)
has been run on server and clients.
The Exaquantum service user account should not be used as the standard login on the
server to avoid its password becoming commonly known.
Whenever the password of the CENTUM or EXA account is changed for the HIS-OPC
against which equalisation will be run, the new password should be set on all other HISOPCs to ensure that equalisation works correctly.
Policies
Three possible password policies for users accounts are detailed here, with
recommendations for which to employ.
User changeable
Fixed
Combination policy.
User-Changeable Passwords
All user account passwords can be changed at any time by the user.
This policy provides the greatest security because passwords are changed and therefore have
less chance of being discovered. It is also most likely to match a companys existing
password policy. If the user accounts are maintained on a single Windows domain, then a
change on any workstation will be registered on the domain controller and therefore be
available to all domain computers without extra effort.
This policy is recommended for Exaquantum systems that are maintained on a single
domain.
4-9
Fixed Passwords
All user account passwords are set so that they do not expire and cannot be changed.
This policy is particularly useful when workgroups or groups of local users are involved.
This is because these configurations rely on matching copies of the user accounts rather than
sharing one instance. Therefore, if a user account password is changed on one client it must
be changed on all other clients and the Exaquantum server for identification checks to be
successful.
It is therefore recommended that any Exaquantum system that uses workgroups or groups of
local users use the fixed password policy.
Combination Policy
This is a combination of the first two policies and uses a mixture of fixed and changeable
passwords.
Example:
A system that has a domain available storing password details for a range of user
accounts using a number of client computers. The system uses Local users due to certain
elements being outside of the domain, e.g. an Exaopc server in a workgroup
configuration.
In this policy all accounts that can be maintained by the domain controller can have userchangeable passwords, but those that are local to more than one computer must be fixed.
Summary
User accounts and passwords are made available in two ways. They are either shared by
using a domain controller, or they exist as matching sets local to each computer that needs
them. These categories can be used to summarise the recommendations for password policy:
Shared user accounts can have user changeable passwords
Matching user accounts should have fixed passwords
Changes to the Exaquantum service user user account need the DCOM utility
QDCOMCnfg.exe to be run before system can function correctly.
Changing a Password
There are two ways that a password can be changed:
Interactively on any computer
Centrally using User Manager or User Manager for Domains.
4-10
4.9
System Back Up
Backing up of data is an essential requirement for any computer system. Exaquantum
system backup falls into three categories:
Database Backup
Configuration Files Backup
Entire System Backup.
Different levels of security are possible depending on an organisations requirements. This
section details backup and restore strategies that are considered sufficient for the needs of an
Exaquantum system. However, you are urged to ensure that this strategy suits your
requirements.
This overview information is supplemented by more detailed information (including
suggested strategies) later in the chapter.
Backup Categories
Database Backup
This procedure is absolutely essential.
There are three Exaquantum databases: Config and HistorianAdmin, which are fairly fixed
in size, and the HistorianData, which contains updating values and grows in size with the
life of the Exaquantum system.
Note:
If the databases are lost, there is no way of recovering any of the historical data
from Exaquantum. Configuration information would also be lost. You would in
effect be returned to a pre-installation state.
The size of the historian database makes it difficult to provide an effective backup strategy
that balances the need for reliable backups and practicality. For more information and
suggested strategies, see the section on Database Backup Strategy.
Frequency
We recommend that the databases are backed up every day.
4-11
4-12
4-13
System Databases
The system databases are created by SQL Server. Three databases, Master, Model and
MSDB, contain information about the system and the databases on it. They change little
over time but should be included in any backups to ensure consistency in the event of a
failure.
Exaquantum Recommended Backup Strategy
The recommended strategy would be to make a complete weekly backup of the three
Exaquantum databases, if possible taken at a quiet time in the week. Such a time could be
Sunday morning at 02:15.
Note:
This backup may take some time and use more than one tape, and so would need to be
supervised. For this reason it will be necessary to choose a time when personnel are
available to change the tapes, if required.
This complete weekly backup would be supplemented by a daily differential backup of the
three databases. Each daily backup would store changes made to the databases since the
complete backup. At the end of the week, you would then have one complete backup and six
differential backups.
To restore the databases, you would need to restore the complete backup and one of the
differential backups, depending on which day you wanted restored. Each differential backup
should only need one tape and can therefore does not need to be supervised. The only task
that is required is that someone has to take the tape out of the tape drive at the end of the
backup, and put a new one in before the start of the next day. To help prevent accidental
overwriting of a tape, the automated job will eject the tape at the end of the backup.
Therefore, if the next scheduled backup time arrived and the tape had not been changed, the
backup could not continue.
System Databases
The three system databases are fully backed up each time either a complete or a differential
backup is run. There is little advantage in running a differential backup on these databases,
as they are relatively small. Additionally, it is not permitted to make a differential backup of
the master database.
4-14
Exaquantum Jobs
There are five jobs shipped with Exaquantum. These are for use with the suggested Backup
Strategy. The jobs are supplied in a SQLServer script file. This needs to be run in order to
add the jobs to the system. The file is located in the Product Tools folder of your
Exaquantum Installation, and is called backup job scripts.sql. The easiest way to run this
script is to use the Query Analyser component of SQLServer:
1
Open the Query Analyser by clicking on Start, then Programs, then Microsoft SQL
Server 2005 and finally SQL Server Management Studio.
Input the settings below in the Connect to server window, and click on Connect.
Server type: Database Engine
Server name: Exaquantum Server name
Authentication: Windows Authentication
Click New Query on the Management Studio window. The SQL Server Query window
is displayed.
Select the backup job scripts.sql file in the Product Tools folder and open it.
Function
Full Exaquantum
Database Backup
Differential Exaquantum
Database Backup
Exaquantum Database
restore
4-15
Job Name
Function
Exaquantum Complete
Restore (primary)
Exaquantum Complete
Restore (final)
The two backup jobs shipped with Exaquantum are configured with a schedule setting. The
first will perform a complete backup once a week; the second will perform differential
backups for the remaining six days of the week. The other (restore) jobs are not scheduled.
The jobs must be enabled to work. As they are not shipped enabled, they must be enabled
by the end user. For more information, see Working with SQL Jobs.
In addition to these five jobs, an operator account called Local Machine is also shipped
with Exaquantum. This can be easily configured to send a message to the user when a job
completes. The procedure is described in Working with SQL Jobs.
Running Jobs
Scheduling Jobs
SQL Server jobs can be scheduled so that they occur automatically at any given time. The
scheduler is quite powerful and can cater for schedules such as every Sunday at 02.15 or the
last Wednesday of each month. The two backup jobs shipped with Exaquantum are set to
run as follows:
Complete backup of the three Exaquantum Databases:
Failure of a Job
Occasionally a job may fail to run. This could be for several reasons such as no tape in the
drive or a fault in the tape driver. SQL jobs can notify users of problems in four ways:
4-16
Once a Net Send message is acknowledged it is removed from the screen, there will
be no record of it.
You should not run a differential backup unless there is a valid complete backup.
The Working with SQL Jobs section describes how to run a job manually.
4-17
Input the settings below in the Connect to server window, and click on Connect.
Server type: Database Engine
Server name: Exaquantum Server name
Authentication: Windows Authentication
Expand the Server Name node (usually named after the local computer).
Five jobs are shipped with Exaquantum. The information displayed at this stage is explained
in Table 4-2:
Table 4-2 Job Summary Information
Column Heading
Purpose
Name
Category
Enabled
Either Yes or No. When shipped, the two backup jobs are
not enabled. They must be enabled before they will work.
Runnable
Scheduled
Status
The status of the job last time it was run. This will either be
Succeeded or Failed. The time and date of the last run are
shown in brackets.
The time and date that the job is next scheduled to run.
4-18
4-19
Notifications Tab
It is very useful to be able to send the success or failure status of a job to a user. This is set
up on the Notifications tab. This tab gives you the option to e-mail, page or Net Send the
results to an operator. Operators are set up using the Operators screen located above the Jobs
screen. Although straightforward to set up and test, you will need to know e-mail addresses
or computer names to create an operator.
Notifications can be sent either when a job fails (recommended for e-mail or pager), when it
succeeds (not recommended), or when it completes (recommended for net send and event
log). When notices of job completion are sent, this information includes success or failure of
the job.
E-mail
The e-mail option is useful when a backup operation has failed. Although you can only email one operator, this operator can be a group and so multiple notifications can be achieved.
This feature cannot be enabled in the pre-shipped versions as default settings cannot take
account of e-mail addresses. This option would therefore have to be set up on site. Sending
messages via e-mail requires the SQL mail service to be running.
For more information, refer to the SQL Server on-line documentation.
Pager
The pager option works via e-mail as above. For more information, refer to the SQL Server
on-line documentation.
Net Send
The Net Send option is useful to inform a user of success or failure. Net send will display a
pop-up message informing an operator that the job succeeded or failed. This can only be
sent to one operator. It is recommended that this message be sent to the local computer (the
Exaquantum Server).
The message is acknowledged by clicking on OK. The message is then removed from the
screen. Net send messages are not stored after acknowledgement. All Exaquantum jobs are
configured to inform the Local Machine operator account on completion.
Writing to the Event Log
By default, all jobs will write an event to the application log, showing success or failure of
the operation. This should always be enabled.
4-20
Input the settings below in the Connect to server window, and click on Connect.
Server type: Database Engine
Server name: Exaquantum Server name
Authentication: Windows Authentication
Expand the Server Name node (usually named after the local computer).
Click on Backup Device. A list of current backup devices is shown. This list will
probably be blank.
Right-click on Backup Device and select New backup device. The New Device
window is displayed.
Click on the Tape Drive Name radio button. A list of tape drives will be shown.
Normally there will only be one which will be named \\.\Tape0
Enter a name for the device in the Name field, e.g. Tape Drive.
If the details in step 7 match those on your screen, the device is set up and ready to work
with the Exaquantum backup and restore jobs.
If you have a different physical location, the jobs will not work until you have edited each
step in each job and changed the device path. Alternatively, reconfigure the tape drive to be
Tape0. This should only occur if you have more than one tape device on the Exaquantum
Server and wish to use the second device for Exaquantum Backups.
4-21
Input the settings below in the Connect to server window, and click on Connect.
Server type: Database Engine
Server name: Exaquantum Server name
Authentication: Windows Authentication
Expand the Server Name node (usually named after the local computer).
In the Net-send address field, replace Type computer name here with the name of the
Exaquantum Server computer.
Click on the Test button. You will be asked to confirm the test.
Click on OK and a net send message will appear on the Exaquantum Server computer.
10 Acknowledge the message and click on OK to close the Operator Properties window.
The operator is now configured. All Exaquantum jobs will notify the net-send address when
they complete.
Note:
You do not have to specify the Exaquantum Server as the recipient for the Net
Send. You can enter any computer that is on the Network.
The notification is in the form of a simple pop-up message that informs the recipient that the
job has finished, and whether it was a success or failure. There is also some additional
information such as job length and the last step to run (useful in case of failure).
IM 36J04A15-01E 8th Edition Issue 1 February 28 2007-00
4-22
Input the settings below in the Connect to server window, and click on Connect.
Server type: Database Engine
Server name: Exaquantum Server name
Authentication: Windows Authentication
Expand the Server Name node (usually named after the local computer).
The job will now run manually. The status should change to executing. On completion a
pop-up message should verify the success or failure of the job. The status field will not
normally change automatically.
Viewing Job History
It may be useful to view the job history from time to time. To do this, right-click on the Job
Name, and then select View Job History. You are presented with a screen that gives a
history of the job, including success or failure and notifications sent. You can choose to
view all the individual steps in a job by ticking the Show Step Details checkbox.
Configuration Files Backup
If you have mimics and reports that have been configured on your Exaquantum system, or
any additional code that has been added since installation, you must backup these files.
4-23
For more information about the backup utility, see the Backup on-line help.
Using batch files enables you to back up directories (not individual files). Wildcard
characters cannot be used in the batch files.
ntbackup Syntax
The ntbackup command line has the following format:
ntbackup operation path [/a] [/v] [/r] [/d <text>] [/b] [/hc:{on | off}]
[/t {option}] [/l <filename>] [/e] [/tape:{n}]
ntbackup Command Parameters
Parameter
Description
Operation
Path
/a
Causes backup sets to be added or appended after the last backup set on
the tape. When /a is not specified, the program overwrites previous data.
When more than one drive is specified but /a is not, the program
overwrites the contents of the tape with the information from the first
drive selected, and then appends the backup sets for the remaining drives.
/v
4-24
Description
/r
Restricts access.
/d <text>
/b
/hc:{option}
/t {option}
Specifies the backup type. Option can be one of the following: normal,
copy, incremental, differential, or daily.
/l <filename>
/e
/tape:{n}
Specifies the tape drive to which the files should be backed up. n is a
number from 0 to 9 that corresponds to the number the drive was assigned
when the tape drive was installed.
Scheduling ntbackup
This is achieved by inserting the ntbackup command into a command file, such as the one in
Figure 4-1.
Figure 4-1 Listing of an ntbackup Command File
@echo off
rem Filename:- DoBackup.cmd
rem Created:- 27 Aug 99 by LM
rem Description:- Command file to launching NTs ntbackup command line
backup facility
rem
rem
It accepts 4 parameters:-
rem
rem 1. The name of the directory to backup
rem 2. The name of the directory to which to write the backups log file
set BackupDir=%1
set LogDir=%2 \
4-25
rem Now get the date so that we can give the backup and its logfile a
rem decent name
for /f "tokens=1,2,3,4 delims=ap/ " %%f in ('date /t') do @set
date1=%%f && set date2=%%g && set date3=%%h && set date4=%%i
for /f "tokens=1,2 delims=ap:" %%f in ('time /t') do @set hour=%%f &&
set minute=%%g
set BkupDescr=%date1% %date4% %date3% %date2% %hour% %minute%
set BkupDescr=%BkupDescr: =%
set Logfilename=%LogDir% %BkupDescr% .LOG
set Logfilename=%Logfilename: =%
Then use NTs at scheduler to automatically trigger the execution of this command file (eg
every week on Sunday morning at 05:00 a.m.) as follows:
at 05:00 /every:Su DoBackup.cmd E:\MSSQL\Backup
E:\MSSQL\Log
This will back up any files on the E:\MSSQL\Backup directory (i.e. the database backups
placed here daily by the SQL Server Maintenance Plan), plus the servers registry (see the
/b option) to tape device 0 (as per the /tape:0 parameter in the command file).
Furthermore, it will create a date-time-titled logfile in the E:\MSSQL\Log directory.
Automating the Creation of Backups (Windows 2000 or Windows 2003)
Windows 2000 or Windows 2003 provides you with a wizard to guide you through the
process of creating and scheduling backup jobs. Follow the steps as the wizard guides you
through the process.
Restoring a Database
SQL server allows databases to be restored in a number of ways. This process has been
simplified by including SQL jobs. It is hoped that a restore will not be required as it would
indicate some fault in the system. For this reason there is never a need to schedule the
restore jobs. These jobs should be run manually.
It is not recommended that individual Exaquantum databases are restored. This is because
they are related; the HistorianData database relies on the HistorianAdmin database which
itself relies on the Config database. This is why the three are backed up together and should
be restored together.
4-26
Start the SQL Server in single-user mode (in order to have exclusive access to the server)
from a command prompt with the following command:
Sqlservr.exe m
Note:
Note:
If the SQL Server is already started, use the SQL Server Configuration Manager
(Start All Programs Microsoft SQL Server 2005 Configuration Tools) to
stop the SQL Server Service.
Once SQL Server has started, use the Query Window application to restore the master
database. The T-SQL RESTORE command is used to restore the master database. (For
more information about the RESTORE command, see the SQL Server on-line books.)
4-27
Once the restore has completed, the SQL Server will automatically be shut down.
Re-start the SQL Server from the SQL Service Manager. Restore the remaining system
and Exaquantum databases using the SQL Management Studio.
Wait for the pop-up message and verify the success of the restore.
Restore the Three Exaquantum Databases from the Last Complete Backup Set
The three Exaquantum databases can be restored using one of two Jobs, depending on
whether you are also restoring a differential backup. The distinction between the two Jobs
shipped with Exaquantum is explained in Table 4-3:
Table 4-3 Exaquantum Jobs Description
Job Name
Function
Exaquantum Complete
Restore (primary)
4-28
Insert the first tape of the backup set in the tape drive.
Navigate to the Jobs section of Management Studio, right-click on the appropriate job:
Exaquantum Complete Restore (final)
- or Exaquantum Complete Restore (primary).
Wait for the pop-up message and verify the success of the restore.
The complete backup set is now restored. You can now either restore a differential backup
set (if appropriate) or use the databases.
Restore the Differential Backups from the Last Differential Backup Set
If you have run the primary restore job, you will now need to complete the operation by
restoring the differential backup set.
1
Wait for the pop-up message and verify the success of the restore.
Some data loss will occur. The system cannot retrieve data sent from the OPC
gateway in the time between system shutdown and system start-up. This may
produce anomalies on reports that should be carefully monitored in the period after
restart.
4-29
For more information about the backup utility, see the Backup on-line help.
The main Exaquantum user account will need to be given local administrator rights
on the Exaquantum server computer.
4-30
4.10
4-31
General
The Service Manager is used to start or stop the Exaquantum service. It also monitors the
progress of the start or stop operation. The Service Manager starts or stops each of the major
components of the service (for example the RTDB and Historian) in the required order. It
also provides control and monitoring for start up conditions such as History Catch-up.
The Service Manager shows the overall status of the Exaquantum service. The status can be:
Stopped
Starting
Running
Stopping
Unknown: Unknown is displayed when the status of Exaquantum is unavailable. For
example, the user who is attempting to start Exaquantum does not have local
administrator privileges.
If History Catch-up at start up has been enabled (using the History Catch Up configuration
tool), the Service Manager will also show the progress of the History catch-up process. The
progress is calculated by comparing the total duration of the catch-up time against the time
that has actually been caught up; it continuously re-estimates the additional time required
before catch up is completed.
The Service Manager will also display the status of each OPC Server.
The Exaquantum server can be started and stopped manually or automatically.
Note:
To start or stop Exaquantum you must log on with a user account that has local
administrator privileges. The account does not need to be a member of the
Exaquantum User Group or the Exaquantum administration group.
Typical Scenarios
The Service Manager is used when it is necessary to start or stop the Exaquantum service.
Typical scenarios are:
Upgrades to the Exaquantum server software
Changes to the OPC Server configuration
Some changes to the Exaquantum configuration necessitate a restart of Exaquantum
before these changes are recognised. These are:
Adding an OPC server
IM 36J04A15-01E 8th Edition Issue 1 February 28 2007-00
4-32
History Catch-up
History Catch-up allows the Exaquantum system to recover data for the period between a
system shutdown and a restart. The data in the historian for a shutdown period will be
restored to form a seamless history of Exaquantum data. It does this by reading OPC data
from the OPC Server via the Historical Data Access (HDA) and Historical Alarm and Event
(HAE) interfaces.
The History catch-up process must be performed during the Exaquantum system start-up. A
full History Catch Up is expected to take around one twentieth of the shut down period.
Example:
If a 20 000 tag Exaquantum system is shutdown for eight hours, the History catch-up and
Exaquantum Start-up time will be less than 30 minutes.
Note:
The times given in the example will vary depending on the specifications of the
computers used in your Exaquantum system.
The data items that will be recovered during the History catch-up are:
Raw
Aggregated
Calculated
Alarm and Event.
4-33
Update Rate
During a catch-up period, data is restored at the specified OPC update rate of tags.
Exceptions to this rule are as follows:
Data will be periodically recorded if the OPC Servers configuration is set to periodically
collect history data.
The fastest update rate is used when there are multiple update rates specified for a tag.
This happens when the one-minute update rate is temporarily changed to 5 seconds, and
reverted to the original one minute later on. In this case restored history will be 5
seconds update rate until some period (default 48 hours) will pass.
For more detailed description of this behaviour refer to the Exaopc Manual.
Quality Codes
Quality codes are allocated as follows:
For OPC tags, a special data point with a quality code Uncertain-BeginCatch-up is
inserted at the time of commencing the catch-up with the last available value before the
shutdown. This value will be overwritten if a coincident point is read from the OPC.
If the catch-up fails in the middle of a catch-up operation, a shutdown mark of UncertainShutdown is inserted at this point.
Calculated tags have no special points inserted. Their quality is based upon the quality of
their inputs.
Aggregation items behave in the same manner as for any other shut down and start up.
The Uncertain/Shutdown marker is written at the start of the shut down period, and their
quality is based upon the quality of their input. If no data is retrieved at the beginning of
catch up, Aggregations will calculate as Uncertain based on their shutdown value until
the first catch up point is received.
History Catch-up Configuration Tool
The Exaquantum History Catch-up screen (History Catch-up configuration tool) is one of the
Exaquantum/PIMS configuration tools. It is here that the History Catch-up parameters can
be set:
Enable History Catch-up
Abort on First Failure
4-34
Alarm and Events recovered during the History catch-up do not generate events for
applications.
4-35
The administrator checks that History Catch-up is enabled and that the History Catch-up
configuration options are correctly set. In this scenario the downtime is only 30 minutes
and the administrator will want to ensure that all the history for all the downtime is
caught up. For more information, see the History Catch-up Configuration Tool.
After informing the Exaquantum users of the impending system closure, the
administrator uses the Service Manager to Stop the Exaquantum service. He then carries
out the upgrade.
When Exaquantum starts, History Catch-up is triggered automatically and data for the
entire shutdown period is retrieved from the OPC(s) Historical Data Access database
(HDA). The administrator can monitor the progress of the History catch-up through the
Service Manager.
Alarm and Event data is recovered from the OPC Historical Alarm and Event database
(HAE) after Exaquantum has started and in parallel with live A+E data collection.
It is possible that the error cannot be corrected. The administrator must then accept
that the data cannot be recovered through History catch-up. In this case, the
administrator can restart Exaquantum and control the behaviour using the
Exaquantum Service Manager control.
4-36
Changing the catch up setting in this situation can only be achieved by using the
SQL Server Management Studio to change the database before restarting
Exaquantum.
Recommendations
Check that the History Catch-up configuration is correct for the situation before stopping
Exaquantum.
Check the Event Log after a start-up and shutdown.
To start or stop Exaquantum you must log on with a user account that has local
administrator privileges. The account does not need to be a member of the
Exaquantum User Group or the Exaquantum administration group.
From the Start menu, click on Programs, Yokogawa Exaquantum PIMS then
Exaquantum Service Manager. The Service Manager window is displayed.
To start the Exaquantum/PIMS Server, click on Start. A pop-up message appears asking
Do you want to start Exaquantum?. Select Yes to start the process; STARTING is
displayed in the Status field.
When the Exaquantum/PIMS Server has started, you will hear a beep from your PCs
speaker. The Status field displays RUNNING.
4-37
To stop the Exaquantum/PIMS Server, click on Stop. A pop-up message appears asking
Do you want to stop Exaquantum?. Select Yes to stop the process; STOPPING is
displayed in the Status field.
When the Exaquantum/PIMS Server has stopped, you will hear a beep from your PCs
speaker. The Status field displays STOPPED.
To stop the Exaquantum/PIMS Server and shut down Windows, click on Shutdown. A
pop-up message appears asking Do you want to stop Exaquantum and shutdown
Windows ?. Select Yes to confirm.
When the Exaquantum/PIMS Server has stopped, you will hear a beep from your PCs
speaker and Windows shuts down.
Automatic Start
To start Exaquantum automatically at boot time the following configuration of the services
should be set:
Scenario
Service
Setting
Comments
Server Only
Exaquantum
Automatic
Exaquantum Server
Manual
Exaquantum
Automatic
Manual
Exaquantum
Automatic
Exaquantum Server
Manual
Manual
Web Server
Only
Server and
Web Server
Combined
The procedure to follow to ensure that the Exaquantum processes start automatically when
the Exaquantum machine restarts is given below.
1
In the Control Panel, select the Services option. The Services window (Figure 4-2) is
displayed.
4-38
Select Exaquantum Server and click on Startup. The Exaquantum Service Properties
window (Figure 4-3) is displayed.
Figure 4-3 Service Properties Window
4-39
/stop
/shutdown
Windows
The timeout options allow the maximum time to perform the Exaquantum Server shutdown
before abandoning the operation. For the shutdown option, if the timeout occurs while trying
to stop the Exaquantum processes, then the NT shutdown will be initiated.
Shutdown with Windows Script
When Windows is shutdown whilst Exaquantum is running, it is possible that Exaquantum
will not shutdown cleanly and data may be lost. To ensure this does not happen without the
knowledge of the administrator, a script can be configured to execute during the windows
shutdown procedure.
4-40
4-41
Open [Scripts (Startup/Shutdown)] - [Windows Settings] - [Computer Configuration ] [Local Computer Policy] and double-click "Shutdown". The "Shutdown Properties"
panel is displayed.
4-42
5. Click the "Add" button and the "Add a Script" panel will be displayed.
4-43
4-44
4-45
4-46
Open [Scripts (Startup/Shutdown)] - [Windows Settings] - [Computer Configuration ] [Local Computer Policy] and double-click "Shutdown". The "Shutdown Properties"
panel is displayed.
4-47
4-48
Set the timeout period for the "Timeout Exaquantum shutdown after" field in "PC
shutdown measures" section.
Set sufficient time for Exaquantum to shutdown. The items to consider in setting this timeout
are the number of registered tags, connected clients and the UPS availability.
It takes approximately 7-10 seconds per 5000 tags. A additional 0.5 seconds is required per
connected client.
When "Notify Clients on Server Shutdown" is not selected (in general tab), the termination
processing is reduced as clients are not notified of the server shutdown. However, this will
leads to un graceful connection loss to the server from the client and error messages may be
displayed. In this situation the client user should close the client application and await the
restart of the server.
The default is 10 minutes.
4-49
4-50
4-51
In case of Windows 2000, Open [Logon] - [System] [Administrative Templates] [Computer Configuration] - [Local Computer Policy] and double-click "Maximum wait time
for Group Policy scripts". The "Maximum wait time for Group Policy scripts" panel is
displayed. The "Group Policy" console is displayed.
4-52
select [[Enable] and set wait time in seconds area, and set Maximum wait time for Group
Policy scripts.
4-53
Maximum wait time for Group Policy scripts on Group Policy setting became Enabled.
4-54
When Exaquantum has shutdown the dialog will be closed.. The time from when the
shutdown was invoked to now, Timeout Duration, is displayed as in the image below:
When the "Terminate Now" button is clicked a confirmation message dialog is displayed. If
YES is clicked Exaquantum will be terminated. If selecting this option there is a
possiblility that data may be lost.
Chapter 5
5-1
OPC Gateways
All Exaquantum data values are accompanied by a data quality indicator made up of a 32-bit
integer. The bottom 16 bits indicate the Primary Quality, and the top 16 bits indicate the
Secondary Quality.
The Primary Quality gives the main indication of the Quality of the data, and is all that most
users need. The Secondary Quality provides additional information to the Primary Quality.
Details of the assignment of information in the 32-bit data quality indicator are given in
Table 5-1 and Table 5-2.
Table 5-1 Quality Indicators
Use
Bits
Meaning
Use by Exaquantum
Secondary
Quality
31-16
15-8
7-6
(Top 16 bits)
Primary
Quality
(Bottom 16
bits)
5-0
00 BAD
01 UNCERTAIN
64
10 (Not used)
128
11 GOOD
192
5-2
Code
Used By
Description
Bottom 16 bits
0x0000
All components
None.
0x0001
Scripted calculations
and aggregations
Bad Calculation.
0x0000 Bad
0x0002
Aggregations
Estimated Value.
Varies
0x0003
Items
0x0000 Bad
0x0004
Historian
Offline Archive
(A dummy value inserted by the
historian at the beginning of a period
of archived data that is offline, i.e.
where a history query contains a
period of archived data that is offline.)
0x0000 Bad
0x0005
Historian
Not Available
(A dummy value inserted by the
historian at the beginning of a period
for which history data is not available,
i.e. before the time that historisation
began.)
0x0000 Bad
0x0006
Items
0x0040
Uncertain
0x0007
OPC Interface
0x0000 Bad
0x0008
Time Change
0x0009
Begin Catch Up
0x0040 Uncertain
5.1
5-3
For the Exaopc OPC Server, the mapping of Function Block states to Quality codes
is configurable. This may lead to similar data from different OPC Servers or
Exaquantum systems not having identical Data Qualities.
For more information about Quality Codes for the Exaopc Server and qualities, see
the Yokogawa Document IM 36J02A11-01E.
5.2
The latest value of an aggregation result is updated each time the input value changes, not
just at the end of the aggregation period. In this case, the Secondary Quality is set to
Estimated Value (0x0002), and the Primary Quality is calculated based on the above
algorithm.
Note 1: An input item data quality is treated as follows:
Input of Good for 100% of the time = GOOD
Input of Bad for > 15% (good between 0 85%) of the time = BAD
All other inputs = UNCERTAIN.
Note 2: For the time that the Exaquantum service is not running, i.e. the Exaquantum Server
is shutdown, the input Primary Quality is taken as BAD.
5-4
5.3
Quality value
in hexadecimal
Primary
Quality
Secondary
Quality
Meaning
192
0x000000C0
Good
None
A Good Value
393280
0x00060040
Uncertain
Shutdown
65536
0x00010000
Bad
Bad Calculation
131264
0x000200C0
Good
Estimated Value
5-5
Exaquantum accepts three data qualities, good, bad and uncertain. There are 26 recognised
states for data, all of which are assigned one of the three quality codes.
It is possible to decide which quality flag should be assigned to each individual data status.
Example:
If a tag is undergoing maintenance, the quality code assigned by default is 'bad'.
You may have mimics configured to highlight tags that unexpectedly show a 'bad'
quality. To avoid having tags that are known to be off-line causing a highlight, it
may be preferred to set the Maintenance status so that it displays an uncertain data
quality.
5.4
From the Start menu, select Programs, Yokogawa Exa then Exaopc Setup. The
Exaopc Setup Window is displayed.
To change the quality code, click on the radio button next to the data state you want to
change.
Example:
To change the quality code for Maintenance State from Bad to Uncertain, click in
the right Maintenance State radio button.
5-6
Chapter 6
6.1
6-1
System Evolution
6.2
Adding Clients
For more information about adding client to the Exaquantum system refer to the
Exaquantum Engineering Guide Volume 2 Network Configuration (IM 36J04A15-02E).
6.3
Each Exaquantum database stores its configuration and data in a number of files. This
allows finer control over the distribution of Exaquantum data across several disk partitions
of the same disk or multiple disks.
If we examine the Historian Data database structure we will find that schema information is
held in the HistData.mdf file (Primary file) while data is distributed across two data files
HistData1.ndf and HistData2.ndf (Secondary files). The transaction log for this database is
held in HistDataLog.log. Together these files make up the physical storage for the Historian
Data database.
The Historian Data database is divided into these files in order to facilitate the re-distribution
of the data due to size constraints or to improve performance. If the data files become too
large for the current disk partition then it may only be necessary to move one of the data
6-2
Filenames
Type
Configuration
Config.mdf
Primary
Config1.ndf
Secondary
ConfigLog.ldf
Log
HistAdmin.mdf
Primary
HistAdmin1.ndf
Secondary
HistAdminLog.ldf
Log
HistData.mdf
Primary
HistData1.ndf
Secondary
HistData2.ndf
Secondary
HistDataLog.ldf
Log
HistorianAdmin
HistorianData
6-3
From the Start menu, select All Programs, Microsoft SQL Server 2005 then SQL
Server Management Studio. The SQL Server Management Studio window is
displayed.
Input the settings below in the Connect to server window, and click on Connect.
Server type: Database Engine
Server name: Exaquantum Server name
Authentication: Windows Authentication
Expand the entry for the database server and Databases. A list of all Exaquantum and
system databases is displayed.
In the Console menu select Properties. The Database Properties window is displayed.
This window shows the name, location and current size of each file that makes up the
database. Click files in the left area for the databases log file.
When attaching a database, the name and physical location of the primary file must
be specified. The primary file contains the information needed to find the other
files comprising the database it is necessary to specify only the location of the files
that have changed location.
For example, files originally located on the C:\MsSQL\Data subdirectory that are
now located on the D:\MsSQL\Data subdirectory.
Any files that have changed location must be specified. Otherwise, SQL Server
will try to attach the files based on the file location information stored in the
primary file. If the files have changed location, they will not be found, and the
database will not be successfully attached.
SQL provides two stored procedures to detach and then re-attach the database:
6-4
From the Start menu, select All Programs, Microsoft SQL Server 2005 then SQL
Server Management Studio. The Management Studio window is displayed.
Note:
The SQL Server name can be . (period) as we are operating on the same
server.
Input the settings below in the Connect to server window, and click on Connect.
Server type: Database Engine
Server name: Exaquantum Server name
Authentication: Windows Authentication
Click New Query on the Management Studio Window. The SQL Server Query
Window is displayed.
The SQL Server Query Window by default will connect to SQL Server and select the
master database. All commands for detaching and attaching other Exaquantum
databases can be made from the master database context.
SQL queries or stored procedures and their parameters can be entered. Once a command
is entered, pressing the tick icon checks its syntax. The window is now split into two
panes. The lower pane holds status messages and returned results.
On the SQL Server Query Window, click the green play button (or press the F5 key on
the keyboard) to execute the command.
Stop all other applications that access SQL Server and ensure that no Query Windows
within SQL Server Management Studio are accessing the database to be removed.
6-5
Identify the database and database files to be moved as described in the Planning section.
Launch the Query Window application so that detach and attach stored procedures can
be issued. Refer to the section Using SQL Server Query Window on how to start and
use this application.
Issue the sp_detach_db stored procedure in the SQL Server Query Window; in the top
pane of the SQL Server Query Window, enter the following command:
sp_detach_db @dbname=<Name of the database to detach>
Click on the blue tick symbol to check that the format is correct. The message The
command(s) completed successfully. will be displayed in the lower pane of the SQL
Server Query Window.
Click on the green play symbol (or press the F5 key on the keyboard) to execute the
detach command.
Note:
If the detach operation was successful, the following status message will be
displayed in the SQL Server Query Window status pane:
Successfully detached database <Name of the database to detach>.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
If the database name is not correct (mistyped), then in the SQL Server Query
Window status pane the following message will be displayed:
Server: Msg 15010, Level 16, State 1, Line 0
The database <Name of the database to detach> does not exist. Use
sp_helpdb to show available databases.
If another application is still accessing the database then the following error will
be displayed:
Server: Msg 3702, Level 16, State 1, Line 0
It will be necessary to shut down the application before continuing.
Cannot drop the database <Name of the database to detach> because it is
currently in use.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
10 Move the required files that were identified during the planning stage of this process to
their new locations. The files can be moved in the normal manner using Microsoft
Windows Explorer.
6-6
Chapter 7
7.1
7-1
Trouble Shooting
Event Viewer
This section covers the functions of the Event Viewer that are considered of use. However,
in the case of any system failure, we recommended that users follow the procedures detailed
in this section to make better use of the facility. For more information about the Event
Viewer, refer to the Microsoft Windows Event Viewer Online Help.
Error and information messages that are generated by Exaquantum are written to the Event
Log during the normal operation of Exaquantum and therefore, the Event Log is a primary
source of troubleshooting information. Event Logs can also be saved, and when necessary,
sent electronically to enable troubleshooting to be carried out at other support locations. A
copy of the relevant event log is always useful when analysing problems reported with
Exaquantum.
It is good practice to examine the event logs regularly verify good working order of the
Exaquantum system.
All Exaquantum modules can write to the event log as can most external applications.
There are three types of event log; System, Security and Application.
System
This records events logged by the Windows system components. For example, the failure of
a driver or other system component to load during startup is recorded in the System log.
Security
This records security events. This helps track changes to the security system and to identify
any possible breaches to security. For example, attempts to log on to the system may be
recorded in the Security log, depending on the Audit settings in User Manager. You can
view the security log only if you are an Administrator for a computer.
This log contains errors relating to security. It is rarely used when troubleshooting
Exaquantum problems as the only messages likely to appear in this log are from DCOM
errors and these are normally duplicated in the Application Log. However, in the case of
suspected DCOM errors, it can be useful to access this log.
Application
This records events logged by applications running on the computer, such as the various
components that make up Exaquantum.
The logs files are located in the folder; Winnt\system32\config and are named SysEvent,
SecEvent and AppEvent respectively. Each has the event file extension .evt.
Note:
It is the Application event log that most users of the Exaquantum system will use to
troubleshoot Exaquantum servers.
7-2
Error messages can help determine any problems with an Exaquantum system particularly in
the application log. They must be given prompt attention. For example, problems with
missing or faulty tag IDs will appear as will any problems with writing data to the historian.
Warning
Warning messages are of interest to a user but do not necessarily need immediate attention.
An example is a warning that a hard drive is getting near capacity. Although important to
address, these warnings are not normally a direct result of running Exaquantum. These
messages are more common in the system log and are not often of use for Exaquantum
troubleshooting.
Information
Information messages typically inform users that expected events took place, eg starting the
system.
7-3
Check the system log for any errors that are related to Exaquantum.
Access the application log. Identify the earliest Error Message logged.
View the events in chronological order to build up a picture of what has happened.
Identify the last service start time before the errors started.
Identify what was happening immediately before the error (s) appeared.
Identify the Exaquantum function in which the error has occurred. For example:
Was it during an archive?
Was it during an Equalisation?
Was the user trying to create manual or calculation tags?
Was the user adding an entry to one of the product tools?
Was anything else happening on the system at the time?
This approach will determine the basic information required to assess the individual errors
and their meanings.
7-4
7.2
Database Checks
There are three Exaquantum databases, each of which has a specific use. The Configuration
and the HistorianAdmin databases are relatively small in capacity and will not increase in
size significantly during the life of an Exaquantum system.
The third database, HistorianData, contains all historical values that are written to
Exaquantum. This database can expand rapidly and can grow to be very large indeed.
Therefore it will be necessary to archive data to an off-line source.
For more information about archiving data refer to the Exaquantum/PIMS User's Manual
(IM 36J04A11-01E).
The purpose of this section is to describe how to check the size of your databases.
From the Start Menu, select All Programs, Microsoft SQL Server 2005 then SQL
Server Management Studio. The Management Studio will be displayed.
In the left pane, in the node called SQL Server Group, click on the + sign to expand the
node.
Select your Exaquantum server computer name. Click on the + sign to expand the node.
Select Databases and click on the + sign to expand the node. A list of all available
databases is displayed.
Right Click on the database name that you wish to view, eg QHistorianData.
Select Properties.
The General Page shows the size and space available.
Note:
This is the total space allocated for this database during setup, not the total space
on the computer.
The space allocated will depend on how you originally configured your Exaquantum
databases.
When you have established the status of your databases you should also check the amount of
physical disk space remaining:
Right-click on the drive that the databases are held on and select Properties.
7-5
A graphic shows how much disk space is used and how much is available.
Note:
The disk space used may not be full. If a database is allocated 100 MB of disk
space then that 100 MB is reserved and therefore used even if there is no data in
the database tables.
It is possible that your HistorianData database resides on a different disk to the
other two. In this case you may wish to check both disks although in practise it
is only the HistorianData database that will increase in size significantly.
You now have a guide to the status of your databases. You should know:
How much space you have allocated for each database
How much of that allocation has been used
How much free space there is on the physical disk.
Potential Problems and their Solutions
A few of the more common problems and how to resolve them are given in this section.
HistorianAdmin and Configuration Databases
These two databases should not cause any administrative problems, as they are not subject to
significant growth in capacity. Once they are created there should be no need to check them.
HistorianData Database
This is the database that holds all updating values and it is the one that will increase in size
during operation. There are two things to monitor:
Database approaching full allocation
Physical disk containing database is nearly full.
Database approaching full allocation
During the creation of the databases you will have specified the amount of space to be
reserved for the HistorianData database. There are three ways you could have done this.
During installation, you could have specified a Small Database fixed size. This would
have allocated 45 MB (but set to auto expand).
During installation, you could have specified a Large Database. This would have
allocated 75% of the available space on the physical disk.
7-6
7.3
7-7
QDCOMConfig Tool
QDCOMConfig.exe is supplied with Exaquantum to help DCOM and Service configuration.
It is located in the following location:
\Yokogawa\Exaquantum PIMS\System
QDCOMConfig is used quietly by the Exaquantum Installation program to set up the correct
configuration. Therefore it is not normally necessary to run QDCOMConfig unless some
part of the configuration must be modified after installation.
Using QDCOMConfig
QDCOMConfig may be run on an Exaquantum Server computer or an Exaquantum Client
computer.
It cannot be run on Windows 95 or Windows 98 computers.
It must be run by users who have local Administration rights.
For further information on using QDCOMConfig and entering the required information
please refer to Accessing The Domain Quantumuser Account in IM 36J04A13-01E A
Exaquantum Installation Guide.
7-8
Chapter 8
8.1
8-1
8.2
Comments
ObjectName
ProgId
IsGlobal
IsNamed
8-2
8.3