CitectHistorian V4.2 R1 Vol1
CitectHistorian V4.2 R1 Vol1
CitectHistorian V4.2 R1 Vol1
CitectHistorian Configuration
Training Manual
Version 4.2
Volume 1
61 2 9496 7300
61 2 9496 7399
DISCLAIMER
Schneider Electric (Australia) Pty Ltd makes no representations or warranties with respect to this manual and, to the maximum extent
permitted by law, expressly limits its liability for breach of any warranty that may be implied to the replacement of this manual with another.
Furthermore, Schneider Electric (Australia) Pty Ltd reserves the right to revise this publication at any time without incurring an obligation to
notify any person of the revision.
Schneider Electric (Australia) Pty Ltd
ABN 4200 4969 304
CitectHistorian Configuration Training Manual
INTRODUCTION AND LEGAL NOTICE
Your purchase of this official CitectHistorian Configuration Training Manual entitles you to undertake the CitectHistorian Configuration
training course. The number allocated to you on purchase of this manual is your key to complete the course evaluation.
Satisfactory completion of this evaluation is mandatory for you to obtain a certificate of completion of the training course.
The contents of this manual are proprietary to Schneider Electric (Australia) Pty Ltd and all rights, including copyright, are reserved by
Schneider Electric (Australia) Pty Ltd. You must not copy any part of the manual in hard or electronic form or make any adaptation or other
commercial use of it without Schneider Electric''s prior written consent.
Schneider Electric (Australia) Pty Ltd will not accept any liability for action taken in reliance on this training manual.
COPYRIGHT
(c) Schneider Electric (Australia) Pty Ltd 2006-2009. All rights reserved. This material is copyright under Australian and international laws.
Except as permitted under the relevant law, no part of this work may be reproduced by any process without the prior written consent of
Schneider Electric (Australia) Pty Ltd. Any authorised reproduction must acknowledge Schneider Electric (Australia) Pty Ltd as owner of
copyright in work.
TRADEMARKS
Schneider Electric (Australia) Pty Ltd has made every effort to supply trademark information about company names, products and services
mentioned in this manual. Trademarks shown below were derived from various sources.
CitectSCADA, CitectHMI, CitectFacilities, CitectHistorian and Ampla are registered trademarks of Schneider Electric (Australia) Pty Ltd
Windows, Windows NT, Windows 2000, Windows XP, Windows Vista, MSSQL Server and Excel are trademarks of Microsoft Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Novell and NetWare are registered trademarks of Novell Inc.
dBASE is a trademark of Borland Inc.
General Notice:
Some product names used in this manual are used for identification purposes only and may be trademarks of their respective companies.
About Us
Members of Educational Services' team of Instructional Designers have tertiary qualifications in Education, Educational Course Development
and are also experienced trainers in their own right; some are also published authors. Currently, the team is supporting a range of over 70
courses in multiple languages and multiple software environments.
Authors
Alynda Brown, David Heath, Peter West
Contributors
David Mackay, Con Karantziounis, Craig Donnelly
ii
Version 4.2
December 2009
Contents
CHAPTER 1:
Manual Release 1
iii
CHAPTER 6:
EVENTS................................................................................................... 9-1
iv
Version 4.2
December 2009
CHAPTER 12:
Manual Release 1
CHAPTER 19:
Overview ....................................................................................................................E-1
System Requirements .................................................................................................E-2
Additional Windows Components .............................................................................E-4
Install CitectHistorian...............................................................................................E-13
Configure CitectHistorian ........................................................................................E-22
SQL Server Settings .................................................................................................E-26
vi
Version 4.2
December 2009
Chapter 1:
Introduction to CitectHistorian
Overview
Introduction
____________________
Your Instructor will be spending the next three days with you, and will guide you
through this training course. Your Instructor is an experienced CitectHistorian user
so please feel free to ask questions.
Defining the
Scope of this
Training Manual
1-2
Version 4.2
December 2009
Course Overview
Course
Objectives
Course Material
Please take a few moments to have a look through your Training Pack. In addition
to this manual, you will find the following items:
Compendium
Mouse Pad
Pen
Notepad
Memory Stick
The current version of CitectHistorian on CD or DVD Rom
Course Assets
For this course, in addition to the standard CitectHistorian software, you will need
the following files.
Aladdin.ctz
SQLdatabase.bak
Alarmbell.gif
ActiveX.txt
PDF_Report.pdf
The Instructor will advise on the location of these files as they are required.
CitectHistorian Configuration
Manual Release 1
1-3
The training course will take three days to complete. The following program
outlines the topics that will be covered on each day:
Day
1
Topics
Data Sources
CitectHistorian at a Glance
Historian
Historian Status Indicator
Publish Information
Backfill Manager
Manage Projects
Tasks
Events
The Excel Client
CitectHistorian Web Client
Integrity Checker
Historian Interpolation
Process Analyst
Reports Deployment Manager
Sample Reports
Energy Reports
Case Study
Course Summary
Add'l
Info
CitectHistorian Installation
CitectHistorian in a Domain
Microsoft Reporting Services
Please be aware.
This course covers the configuration and use of
CitectHistorian. It will not cover:
Support
1-4
If you require support during training or would like additional information about
any concepts or products in the course, please ask your Instructor.
Version 4.2
December 2009
These are the skills you will achieve by the end of each chapter. An overview
providing a brief synopsis of the topic begins each section. Often, examples are
given to illustrate the conceptual overview.
Exercises
After a concept is explained you will be given exercises that practise the skills you
just learned. These exercises begin by explaining the general concept of each
exercise and then step-by-step procedures are listed to guide you through each
procedure.
Example Paste a genie from a library in the Include project onto a test page called Utility.
1
Run the Milk_Upgrade project then trigger and view some alarms.
i.
User Input
Whenever you are required to type information into a field or dialog box it will be
written in this font
Example KETTLE_TEMP/25
CitectHistorian Configuration
Manual Release 1
1-5
This heading will provide you with useful or helpful information that will make
configuring your project easier
Example -
Note
A note will refer to a feature which may not be obvious at first glance but
something that you should always keep in mind
Example -
Note:
Any events named GLOBAL are enabled automatically when events are enabled.
Text separated by the double arrow symbol indicates that you are to select a
menu
Horizontal and
Vertical Tabs
Text written this way indicates the Horizontal then the (Vertical) tab you are to
select.
1-6
Version 4.2
December 2009
Text written in this way indicates further references about the current topic.
For further information about Templates, see CitectHistorian Help - Using Page
Templates.
Further Training
This heading describes topics that are covered in more advanced courses.
Example -
Caution!
If you restore to the Current project, then the currently selected project in the
Citect Explorer will be overwritten.
CitectHistorian Configuration
Manual Release 1
1-7
Chapter 2:
Data Sources
Overview
Introduction
CitectHistorian takes information from various data sources and prepares it for use
by client applications. This chapter describes the data sources that will be used
during this training course.
The Aladdin Project has been created specifically to generate data for the
CitectHistorian Training Course. This project is set in a fictitious mountain resort
where guided tours are held through a cave system. The project consists of three
parts.
Aladdins Caves A simulation of a Building Management System
Soft Drink Plant A Plant that requires a Recipe Management System
Water Filtration Plant A system that requires monitoring and storage of large
amounts of data
The purpose of the project is to demonstrate how CitectHistorian is able to take data
from many disparate data sources and to then report information from all sources in
a concise manner. CitectHistorian is able to perform different types of tasks and it
may be applied to many different scenarios. This project reproduces different
scenarios in order to demonstrate a variety of applications.
Further Training:
2-2
Version 4.2
December 2009
CitectHistorian Configuration
Manual Release 1
2-3
2-4
In addition to localised data displays on the Building Management page, there are
three status pages for data monitoring of Cave Temperature, Carbon Dioxide levels
and Wind Speeds.
Version 4.2
December 2009
This fictitious cave system also has pure natural spring water. Hidden away from
the view of the general public there is a small cottage industry creating flavoured
spring water. This process requires a recipe management system.
The SCADA system:
Monitors the silo levels of all ingredients
Monitors the status of the bottling conveyor
Controls the recipe values
CitectHistorian Configuration
Manual Release 1
2-5
2-6
Version 4.2
December 2009
Your Instructor will provide the Aladdin project backup file. Restore
the project if it is not already installed on your computer.
CitectHistorian Configuration
There are three pages in the Aladdin project which display the
primary operation of the Aladdin caves system.
Page
Use
Cave_System
Building Management
Flavouring
Recipe Management
Filter
Plant Monitoring
Manual Release 1
2-7
2-8
Cave Name
Main Entrance
Main
Christopher's Lair
Chris
Opera Theatre
Opera
Central Core
Central
Pixie's Retreat
Pix
Depths of Tartarus
Tar
Circe's Temple
Circe
Version 4.2
December 2009
1. Temperature (cave-name_Temp)
2. Air flow (cave-name_Air)
3. Person count (cave-name_Count)
4. Door status (cave-name_Door)
CitectHistorian Configuration
Manual Release 1
2-9
2-10
Flavour name
Tag prefix
Sugar
Sugar
Salts
Salts
Lemon
Lemon
Lime
Lime
Orange
Orange
Raspberry
Rasp
Kiwi
Kiwi
Pineapple
Pine
Water
Water
Version 4.2
December 2009
i.
CitectHistorian Configuration
Manual Release 1
2-11
ii.
2-12
Page
Use
Cave_Temp
Gas_Emission
Wind_Speed
in
the
ii.
iii.
Observe the list of variable tags that pertain to the objects seen on
the graphics pages.
iv.
Similarly, note the Trend tags and on the Alarm menu, the various
Alarm tags.
Version 4.2
December 2009
Note:
Theses steps are only required for CitectSCADA V7.1 to work with the tightened
security restrictions - external connections are blocked by default; these instructions
open the data connection.
i.
Open the CitectSCADA Project Editor and select the menu item Tools
In the Parameter Reference field at the lower right, type ctapi and
click the Go button.
iii.
CitectHistorian Configuration
Manual Release 1
2-13
v.
vi.
[CtAPI]Remote
and
Repeat
for
the
parameters
[CtAPI]AllowLegacyServices, also setting both to have a value of 1.
vii.
2-14
Version 4.2
December 2009
ii.
CitectHistorian Configuration
Manual Release 1
2-15
2-16
iii.
Select Server and Control Client as the role of the computer. Click
Next to continue.
iv.
Version 4.2
December 2009
Continue to click Next until the Events Setup screen appears. Make
sure the Events are enabled. The Events are used in this project to
generate the data that will be collected using CitectHistorian.
vi.
Within the Startup Functions Setup window select the Client and
Servers item. Check that the function Startup() is listed under the
column heading Startup Function.
CitectHistorian Configuration
Manual Release 1
2-17
viii.
Type StartUp() into the Modify Startup Function dialog box and
select OK.
Note:
The StartUp() function will set the initial values of all the tags and run the events
that automate the project.
ix.
2-18
Version 4.2
December 2009
The last screen to check is the General Options Setup. Make sure
that the Startup Page: is !Cave_Startup. Proceed to the end of the
wizard by clicking the Next button and click the Finish button to
complete the setup.
xi.
CitectHistorian Configuration
Manual Release 1
2-19
Once the project has started, the Home Page will be displayed.
ii.
iii.
Open each of these pages and note the data being displayed, the
data values changing as the automation scripts control the tags and
the fact that most values can also be manually changed.
2-20
Version 4.2
December 2009
The second data source is the SQL Database. This database contains preconfigured
tables that will be used to transfer data between the database and the SCADA
system.
This database can be used to emulate the typical ERP system found in most larger
organisations. The database will be used as a destination for extracted data and as a
source of data for transient analysis.
CitectHistorian Configuration
Manual Release 1
2-21
2-22
ii.
iii.
Version 4.2
December 2009
Name the new database SQL Database. Select the option From
Device as the Source. Click the ellipsis button to select the device.
v.
When the Specify Backup dialog opens click the Add button.
CitectHistorian Configuration
Manual Release 1
2-23
Select the file SQLDatabase. This is a database that has been preprepared and contains tables that will be used in later chapters. Your
Instructor will provide the location of the file.
vii.
viii.
ix.
2-24
Click OK.
Version 4.2
December 2009
CitectHistorian Configuration
Manual Release 1
2-25
Summary
Summary
Questions
2-26
Version 4.2
December 2009
Chapter 3:
CitectHistorian at a Glance
Overview
Introduction
What is CitectHistorian?
Transfer
Information
Data Display
3-2
Version 4.2
December 2009
The Historian is a simple Data Store specifically designed to deal with long term
storage of data from a large number of SCADA tags and alarms, creating an easilyaccessible, single point of reference for data analysis. Theoretically, data can be
logged for any period of time, as long as the work is within the constraints of the
available hard disk space on the CitectHistorian Server. The Historian makes use of
SQL Server 2005.
Data Transfer
CitectHistorian Configuration
Manual Release 1
3-3
Data from all of the available data sources can be published to the CitectHistorian
clients, including Excel, Microsoft Reporting Services and the Web Client, for realtime ad-hoc reporting and analysis.
3-4
Version 4.2
December 2009
CitectHistorian System
CitectHistorian
Components
Excel Client
SCADA connector
-
CitectSCADA
OPC
Other Connectors
-
Oracle
MS-SQL
CitectHistorian Configuration
Manual Release 1
3-5
3-6
Version 4.2
December 2009
The first time the CitectHistorian Server Manager opens the Add
Historian Server Wizard will start. Click Next.
iii.
CitectHistorian Configuration
Manual Release 1
3-7
3-8
iv.
v.
Version 4.2
December 2009
vii.
CitectHistorian Configuration
Manual Release 1
3-9
3-10
Version 4.2
December 2009
Once a CitectHistorian Server has been added to the tree, the list of Data Sources
it exposes can be built. A Data Source is an object that CitectHistorian may access
either to send or retrieve data. All connections must be defined as a Data Source
before CitectHistorian can use them. Connectors are currently available for:
SCADA systems (e.g. CitectSCADA)
OPC
Microsoft SQL databases
Oracle databases
CitectHistorian
Configuration
Environment
CitectHistorian Configuration
Manual Release 1
3-11
ii.
Property
Value
Name
Aladdin
Type
Control System
name or IP Address
Name of student's PC
(this may also be localhost for computers
running both CitectHistorian and
CitectSCADA)
User name
Engineer
Password
citect
Note:
The term Control System is used to refer to a CitectSCADA plant management
system. All other systems must be connected as an OPC connection; this is
discussed later in the course.
Note:
If CitectSCADA Alarms are to be accessed then CitectHistorian must be connected
to a CitectSCADA Alarm Server.
3-12
Version 4.2
December 2009
Note:
The SCADA User must have a password configured. If the User has a blank
password they will not be able to connect using CitectHistorian. Also, if the
SCADA system is CitectSCADA Version 7.1, the CTapi security must have been
properly configured, else the connection will fail.
iii.
iv.
Note:
The Aladdin project must be running in order for the connection test to be
successful.
CitectHistorian Configuration
Manual Release 1
3-13
vi.
A second dialog box will appear asking to run the Integrity Checker
Tool. This tool will be examined at length in Integrity Checker
(page 13-1). Select No.
vii.
3-14
Version 4.2
December 2009
Check the name of the SQL Server. The simplest way to do this is
to open the CitectHistorian Status Indicator. Double click on the
Status Indicator icon
in the System Tray.
displayed in the Database Server field.
ii.
iii.
CitectHistorian Configuration
Manual Release 1
3-15
3-16
iv.
v.
vi.
vii.
Version 4.2
December 2009
Click OK.
Just as it did with the CitectSCADA data source,
CitectHistorian will import the Data Source Schema of the SQL Data
Source.
ix.
Open the new data source. The tables have been ordered into a
folder structure imported directly from the source database.
CitectHistorian Configuration
Manual Release 1
3-17
Publish Data
Data is Available
to Clients
3-18
Once the CitectHistorian Server has connected to the required data sources, the
items that will be available to the client applications need to be made visible. This
process is referred to as Publishing Data. CitectHistorian is able to publish all
items from the data sources or only the items selected. The simplest way to add
data items is to drag and drop the whole data source into the Published Information
node.
Version 4.2
December 2009
Drag the Aladdin folder from Data Sources into the Published
Information folder.
ii.
Open the Published Information node. The items from the original
data source have been copied in their original folder configuration.
Note:
In the displayed hierarchy, AladdinsCaves refers to the ClusterName of the
CitectSCADA project.
See Also:
For further information about Publishing Data, see CitectHistorian Help Publishing Data Publishing Data.
CitectHistorian Configuration
Manual Release 1
3-19
Create a User
Users and
Permissions
3-20
The last step necessary to allow users to gain access to the data sources is to create
a User and to assign Permissions to the user. CitectHistorian security allows each
User to have specific data assigned as accessible and to determine the constraints of
each user's access (i.e. READ, WRITE, VIEW, etc.). These constraints are known
as Permissions.
Version 4.2
December 2009
ii.
Type in the Name and Password of the new User (here Name and
Password are both John). Click OK.
CitectHistorian Configuration
Manual Release 1
3-21
Assign the User permission to view the Published Items. This will
allow the User to gain access to the data items from Client
applications.
i.
Right click
ii.
3-22
Version 4.2
December 2009
When the Confirm Changes dialog appears apply the changes to all
sub-items and attributes. Click OK to apply the changes.
CitectHistorian Configuration
Manual Release 1
3-23
3-24
ii.
Version 4.2
December 2009
Databases CitectHistorian
ii.
CitectHistorian Configuration
Manual Release 1
3-25
ii.
If you are using Office XP or Office 2003 and are still using the
default macro security settings, you will get a security warning that
looks like this. Select OK.
Note:
Equivalent information for Microsoft Office 2007 is contained in the
CitectHistorian Help.
iii.
3-26
Version 4.2
December 2009
Open the Trusted Publishers tab. Enable the Visual Basic Project
option. Click OK.
ii.
When the Excel Client opens you will see that the new
CitectHistorian toolbar is disabled.
iii.
iv.
v.
Click the Refresh button to populate the server list then select your
Computer Name. If nothing appears, type in the Computer Name.
Select the CitectHistorian database and then enter the User Name
and Password of the User that was defined in the CitectHistorian
Configuration Manager. Click OK to continue.
CitectHistorian Configuration
Manual Release 1
3-27
Note:
The database name in the previous screen ("Historian") refers to an in-built name
derived from the name of the product rather than specifically being a Historian.
Note:
This action may trigger a Windows installation message. Simply wait for it to
complete.
ii.
3-28
Version 4.2
December 2009
iii.
Select the Digital Alarms folder then click the right-pointing arrow to
move them into the Selected Data pane. Change the Duration to 15
mins. Click Next > to continue.
iv.
v.
When the report is generated it will display the alarm records for the
last 15 minutes.
CitectHistorian Configuration
Manual Release 1
3-29
The final Data Source type to be included is OPC (as there is no Oracle server
available in the training environment, this option will not be investigated).
CitectHistorian can connect to any OPC DA server compliant with OPC DA 2.05a
or with OPC DA3.
Note:
If you connect to Schneider Electric's OPC Factory Server (OFS) as a data source,
you can only import the schema for one connected OPC device. This means you
must configure a separate Historian data source for each device connected to OFS,
and set the browse root at the device level.
In the following exercises a demonstration version of the Cogent OPC server will
be used as a temporary data source.
OPC-HDA
3-30
Version 4.2
December 2009
Locate the OPC Datahub installation package; the trainer will advise
where it is.
ii.
iii.
CitectHistorian Configuration
Manual Release 1
3-31
3-32
iv.
v.
Accept the default of anyone using the computer. Click Next > to
continue.
Version 4.2
December 2009
vii.
viii.
Click Finish to complete the process. The installer will have created
three icons on the desktop.
Click Install to
CitectHistorian Configuration
Manual Release 1
3-33
ii.
iii.
Launch a data simulation task. From the Windows Start menu, select
Programs Cogent Simulated Data DataSim. Again, there
iv.
3-34
Version 4.2
December 2009
vi.
Select Properties..
CitectHistorian Configuration
Manual Release 1
3-35
3-36
vii.
viii.
The Cogent web server can interfere with the web components of the
Historian environment and must be disabled. Ensure that the check
box Act as web server (in the upper-left corner) is cleared.
Version 4.2
December 2009
Click the View Data button (to the lower-left of the screen) to see
the tag values being generated by the DataSim simulation module.
x.
Select any value in the list of tags and observe that manual values
may be provided.
xi.
Don't change anything. Close the Data Browser and the Properties
window.
CitectHistorian Configuration
Manual Release 1
3-37
ii.
Right click the Data Sources object. Select New Data Source...
iii.
iv.
3-38
Name
Cogent
Type
OPC
Click the Add button, configure the OPC dialog box as follows:
Host Name
Training
OPC AppID
Cogent.OPCDataHub.1
Test Connection
Successful
Version 4.2
December 2009
Click OK.
vi.
vii.
CitectHistorian Configuration
Manual Release 1
3-39
ii.
OPC tags cannot be viewed in the same fashion as SCADA tags. The
system has not yet been configured to be able to display the data in
a client, the OPC connection will be re-visited when conditions are
ready.
3-40
Version 4.2
December 2009
Summary
Summary
Questions
CitectHistorian Configuration
Manual Release 1
3-41
Chapter 4:
Historian
Overview
Introduction
The Historian is a simple Data Store specifically designed to provide long term
storage of tags and alarm data from a number of SCADA sources, creating an
easily-accessible, single point of reference for data analysis. Theoretically, data can
be logged for any period of time, as long as it works within the constraints of the
available hard disk space on the CitectHistorian Server.
The Historian is a Microsoft SQL Server 2005 database with schema optimised for
writing Tag/Alarm data, and interfaces for retrieving the data. The Historian Data
Manager allows users to import/export data. When used with a broader archiving
strategy to CD or network, export creates a sustainable method of permanent
storage for plant data.
What is Historian?
Data Repository
Historian is a SQL 2005 database designed to store and gain access to large
amounts of data over long periods of time. Trend files by their nature consume
large amounts of disk space. This makes it difficult to store and consequently to
retrieve contiguous data over large periods of time. A system that has many trends
may create large amounts of network traffic unnecessarily by polling for data that
changes infrequently. By contrast, Historian works by exception. A sample of data
is stored only when there has been a change in the tag value.
Trend Values
A trend value is sampled over
a regular time period or
whenever an event occurs.
This will happen regardless of
whether there has been a
change in the Tag value.
Historian
Historian records a sample of
data only when a significant
change in the Tag value has
occurred. In this example the
source data is polled every
100ms and the data is only
recorded if it differs by at least
0.01
See Also:
For further information about Historian Data Fields, see CitectHistorian Help
Topics - Index Historian Data Fields.
4-2
Version 4.2
December 2009
Database Schema
Numeric Data
The size of data samples taken by Historian are based on the tag type. The table
below shows the information that is stored with every Numeric sample.
Item
Digital Data
Size (bytes)
Data quality
The table below shows the information that is stored with every Digital sample.
Item
String Data
Size (bytes)
Data quality
The table below shows the information that is stored with every String sample.
Item
Size (bytes)
Alarm Data
8
variable
Data quality
The table below shows the information that is stored with every Alarm sample.
Item
Size (bytes)
Data quality
CitectHistorian Configuration
Manual Release 1
4-3
4-4
Version 4.2
December 2009
or
Open the CitectHistorian Configuration Manager. Right click the Historian node
and select Properties from the menu. Click the Historian Data Manager... button.
CitectHistorian Configuration
Manual Release 1
4-5
ii.
4-6
Version 4.2
December 2009
iv.
v.
Click OK to continue.
vi.
After the connection has been made the Historian Data Manager will
display the name of the server.
CitectHistorian Configuration
Manual Release 1
4-7
Historian Database
SQL Database
The Historian data is stored in an SQL database. Once the Historian has connected
to the SQL Server the next task is to create the database itself.
Table
Configuration
By default the Historian database consists of two files, where <Name> represents
the name of the database.
Advanced Table
Configuration
4-8
File
Description
<Name>_Log
<Name>_Data
If the Advanced Table Configuration option is chosen the _Data file is split and
the numeric data is placed into a separate file, allowing faster seek times.
File
Description
Numeric
Version 4.2
December 2009
Each of the database files has properties that may be configured by the user to suit
the individual application
Property
Action
Name
How to Create a
New Historian
Database
Initial Size
the starting size of the file. The default is 3Mb for data files, 1Mb for the
log file.
Maximum
Size
a cap on the file size. The minimum value you can use is that set for Initial
Size, the maximum is 2,097,152MB
Grow By
the growth rate for the database. This sets the percentage of the maximum
that the database will grow by when it runs low on space. The default is 10
percent
Mode
File
the location of the file in relation to the SQL Server. The button to the
right of the table cell allows you to select a location.
or
Click the Create Historian Database
CitectHistorian Configuration
button.
Manual Release 1
4-9
4-10
ii.
When the New Database dialog opens, type Historian as the name
of the new database into the Name field. The name can be up to 123
characters in length and must be unique on the connected SQL
Server.
Version 4.2
button.
December 2009
The Collation field selects the collation mode that the server will use
for the Historian database. This determines how SQL Server 2005
sorts and compares characters stored in non-Unicode data types. Set
this to <Server Default> (located at the top of the drop-down list).
iv.
Click Create.
v.
vi.
vii.
CitectHistorian Configuration
Manual Release 1
4-11
Historian Configuration
Properties
See Also:
For further information about Historian Configuration, see CitectHistorian Help Setting up a Historian Server.
4-12
Version 4.2
December 2009
ii.
Right click the Historian node and select Properties from the menu.
iii.
Select the server name from the list or enter the computer name and
instance name manually (generally, this list displays every visible
SQL server except your own).
CitectHistorian Configuration
Manual Release 1
4-13
v.
Select the database. Select Historian from the drop down list. Click
OK.
4-14
Version 4.2
December 2009
The second tab configures the Data Source properties in Historian. Each Data
Source may be configured separately.
Historian Tags and Alarms are directly linked back to their plant-based data sources
and are typically given matching names.
Time-Stamped data is connected to Trend Tags and thus comes complete with
timing information.
This information is used to define the generic parameters of the data connection.
CitectHistorian Configuration
Manual Release 1
4-15
By default SCADA data sources are polled at 1 second intervals. The minimum
poll rate is 100 ms. Every time the data is polled, Historian checks the values of all
tags logged from that data source. If there has been a change then the new value is
recorded.
Polling large numbers of tags may slow down system performance. One of the
advantages of this system is that multiple data sources may be defined from the
same SCADA project. This means that the poll rate for tags that are less time
critical may be configured separately.
See Also:
Scanning too quickly may have an adverse affect on the SCADA system. For
further information regarding Historian Scan Rates, see CitectHistorian Help
Topics - Index Historian Data Sources scan rate.
Timeout
Connection Timeout
The period of time the Historian will wait for a heartbeat response from a SCADA
data source before declaring that data source as offline. The default is 10 seconds.
Request Timeout
The period of time the Historian will wait for a data request response from a
SCADA data source before declaring that data source as offline, and marking the
request as failed in the event log. The default is 10 seconds and the maximum value
is 10 minutes (600 seconds).
4-16
Version 4.2
December 2009
Whenever the primary SCADA data source is offline, if a redundant SCADA data
source has been configured, the Historian Data Service will attempt to poll the
redundant server. If no redundant server has been configured, or if the redundant
server is unavailable or unresponsive, the connection is marked as inactive in the
event log.
Acquire Rate
The Acquire Rate calls a CtAPI alarm log query for the specified period at that rate.
By default this is 5 minutes. This means that Historian will request 5 minutes of
data every 5 minutes.
Limit Alarm
Requests
Large amounts of data may slow system performance. If large numbers of alarms
occur the system will limit the number of alarms requested. By default that number
is 1000. When that block has been transferred, Historian will then transfer the next
block.
CitectHistorian Configuration
Manual Release 1
4-17
How to
Configure
Historian Tags
Tags are configured in Historian the same way as they are prepared in the Published
Information folder - by dragging them from the Data Source into the Historian
folder.
Note:
Like the Published Information folder, tags may not be dragged into the root of the
Historian node, they must be placed in a directory.
Note:
Dragging the whole folder into Historian will take less time than dragging
individual tags (even if grouped), because the back-end procedures can perform a
bulk insert, instead of individual inserts.
4-18
Version 4.2
December 2009
Tags logged in the Historian do not sit in the root of the Historian
folder but in their own subfolder. This exercise will demonstrate
the correct method of locating tags to be logged in the Historian.
i.
ii.
Right click Historian and select New Folder from the menu.
iii.
Name the new folder Aladdin Data Source and click OK.
iv.
Drag the Tags folder from the data source into the Aladdin Data
Source folder in Historian.
v.
AladdinsCaves.Bit_1
AladdinsCaves.DescPLC
AladdinsCaves.FileOffset
AladdinsCaves.NamePLC
AladdinsCaves.Random_Number
AladdinsCaves.WorkOrderPLC
Note:
Depending on the number of tags to be Historised, it would be more likely to
identify the specific tags required and move them into the Historian in small
groups.
CitectHistorian Configuration
Manual Release 1
4-19
Note:
The
parameters
[ALARMLOG]DefaultSearchDays
and
[ALARMLOG]Format should be checked to ensure that they have not been
configured in a way that will impact the functionality of the Historian.
4-20
Version 4.2
December 2009
ii.
iii.
If the AlarmLog section does not exist in the citect.ini file, enter
these values in the Parameter Details then click Add.
Field
Value
Section
AlarmLog
Parameter
Numfiles
Value
Note:
This number is chosen arbitrarily. The number of files chosen will depend on how
large the files will become and how many days of data need to be stored.
iv.
Close the Computer Setup Editor and save all changes to the
Citect.ini file.
v.
i.
CitectHistorian Configuration
Manual Release 1
4-21
4-22
The properties of Historian items may be viewed in the same way as the items in
other folders. Right click the item then select Properties from the menu.
Version 4.2
December 2009
the Logging Enabled box is ticked and the Historian Service is running then the
tags will be logged into the Historian. The Alarm items only have the Logging
Enabled box, whereas the Tag items have more options that are configurable.
CitectHistorian Configuration
Manual Release 1
4-23
Select this option to store tag data in the Historian database as it is logged. The
acquired tag data will be based on periodic polling of the SCADA system, with one
'real-time' value retrieved for each tag every time polling occurs.
This mode correctly implies that the Historian has direct and timely access to the
source data.
Data Acquisition - Historical
Select this option to store tag data in the Historian database using historical timestamped values. This option is required to retain the time-stamping associated with
data that is cached before it is passed to a SCADA system. In this mode, data is
acquired from the SCADA trend system based on the last read sample time for a
time-stamped tag.
This method of data acquisition is useful for data that is time-stamped and cached
before it is passed to a control system. For example, a device may be connected to a
control system for only an hour each day due to a periodic modem connection
(typically a RTU or similar device). As Historical acquisition reads back to the last
detected value change when polling occurs, a day's worth of data can be
successfully integrated into the Historian database despite the delay in it's
availability.
Note:
To acquire data for a tag in historical mode, the tag must be bound to a trend tag to
allow time-stamped data to be retrieved from the source.
4-24
Version 4.2
December 2009
Note:
When the data is derived from an OPC source, the deadband is always expressed in
a raw percentage format (not converted to an Engineering Unit range).
CitectHistorian Configuration
Manual Release 1
4-25
Backfill, based on the bind to trend feature allows data to be inserted after the fact
when either:
The Historian Service has stopped
The connection to the Primary (and Standby Data Sources if they exist) has
been interrupted
The connection to the Historian database has been interrupted
Once the Historian can access the Data Source again, tags with trends bound to
them will request data for the missing period, and backfill. Other tags will not be
backfilled and will have a gap in their data. Backfilling operates in half-hour
chunks to both reduce the load on the SCADA source, and to provide a process
whereby if the backfill is interrupted, it will only restart from the last successful
period, not from the beginning of the entire backfill period.
The backfill function keeps track of multiple gaps, and works through them to
ensure that all gaps are captured and filled. For example, if a backfill operation is in
progress, and the network to the SCADA fails, two gaps will exist in the data, and
upon resumption, the backfill operation will fill in both of them. It does this by
keeping track of gaps in a database table in the CitectHistorian configuration
database called tb_BackfillHistory.
Backfill is covered in depth in Backfill Manager (page 6-1).
If a trend exists with the same name as the tag it will automatically be bound to that
tag in Historian. However if a trend of the same name does not exist a trend may
be configured from this tab.
See Also:
4-26
Version 4.2
December 2009
Select the Tags folder in Historian and open the Properties of the
ii.
CitectHistorian Configuration
Manual Release 1
4-27
4-28
Version 4.2
December 2009
CitectHistorian Configuration
Manual Release 1
4-29
ii.
iii.
Note:
The Automatic start box may optionally be ticked.
Note:
The use of the Historian Status Indicator to start and stop the Data Service is
covered in more detail in Service Management (page 4-44).
4-30
Version 4.2
December 2009
ii.
Within the Connect to Server dialog box, click the Connect button.
Once connected, the Management Studio window will open.
CitectHistorian Configuration
Manual Release 1
4-31
Expand
the
tree
Databases Historian Tables
dbo.NumericSamples Columns to observe the table structure for
Numeric values.
4-32
Version 4.2
December 2009
ii.
iii.
CitectHistorian Configuration
Manual Release 1
button.
4-33
4-34
iv.
The SQL Manager will create a new pane and display the data.
v.
vi.
Wait for a minute or so and re-execute the query (this can be done
by simply re-clicking the Execute button). Observe that additional
data is now stored.
Version 4.2
December 2009
CitectHistorian Configuration
Manual Release 1
4-35
ii.
Right click the dbo.DigitalSamples table in the tree view and select
iii.
iv.
4-36
Version 4.2
December 2009
CitectHistorian
Historian
ReportServer$CITECTHISTORIAN
ReportServer$CITECTHISTORIANTempDB
CitectHistorian Configuration
Manual Release 1
4-37
4-38
ii.
iii.
Version 4.2
December 2009
For each of the three relevant databases (listed below), expand the
tree structure and view the tables and the data contained therein.
CitectHistorian
Historian
ReportServer$CITECTHISTORIAN
v.
vi.
CitectHistorian Configuration
Manual Release 1
4-39
The screen will then show the data contained in that table.
4-40
Version 4.2
December 2009
Licencing
Licencing
Information
CitectHistorian Configuration
Manual Release 1
4-41
Licencing (cont.)
License-free
Modes of
Operation
CitectHistorian can run in one of two distinct modes when no hardware licence key
is present:
Demo mode
Historian Mini mode
Demo mode enables a system to run for a period of one hour with few limitations.
It is intended to be used for product evaluation. The demo mode time limitation is
enforced via the Historian Data Service and the Event Service, which cease to
operate after one hour. When this occurs, you will be informed via a message in the
Windows notification area. At this point, you may either restart for another demo
period, or insert a hardware key for continuous operation.
Backfilling is disabled while running in demo mode so data stored to the Historian
database is restricted to the evaluation period.
4-42
Version 4.2
December 2009
Licencing (cont.)
Activating a
Licence
Clicking on the blue message will load the Historian Status Indication with the
General tab selected, showing the current licencing information.
CitectHistorian Configuration
Manual Release 1
4-43
Service Management
Data Service
This button will Start the Data Service, or Continue its operation if it is currently
in a paused state.
Pause
If the Data Service is in a running state, this button will temporarily stop the
delivery of data to the Historian database without implementing a full shutdown
of the service. Use the Start/Continue button to return the service to a full
running state.
Stop
Automatic
Start
Check this box to automatically start the Data Service whenever the host
computer's operating system launches.
Status
The Status field describes the current operational state of the Data Service.
The first part of the description is based on the current licensing conditions (see
Licencing (page 4-41)). It will state one of the following:
4-44
Version 4.2
December 2009
CitectHistorian Configuration
Manual Release 1
4-45
If a new Data Source is added to the CitectHistorian Server and the data configured
is to be logged in Historian, the Historian Service will need to be restarted before
the Historian can log data from that source. A restart allows the Historian Service
to revisit the list of connected data sources and identify any additions.
4-46
Version 4.2
December 2009
This button will Start the Data Service, or Continue its operation if it is
currently in a paused state.
Pause
If the Event Service is in a running state, this button will temporarily stop events
being triggered without implementing a full shut of the service. Use the
Start/Continue button to return the service to a full running state.
Stop
Automatic
Start
Check this box to automatically start the Data Service whenever the host
computer's operating system launches. This verifies the service automatically
becomes active again following a restart of the host computer.
Status
The Status field describes the current operational state of the Event Service.
The first part of the description is based on the current licensing conditions (see
Licencing (page 4-41)). It will state one of the following:
CitectHistorian Configuration
Manual Release 1
4-47
4-48
Version 4.2
December 2009
CitectHistorian Configuration
Manual Release 1
4-49
In accordance with the various licencing modes described in the section Licencing
(page 4-41), the Historian Status Indicator icon in the System Tray (bottom right of
the screen) can take on a number of appearances.
Fail to Start
By default, the Data Service and Event Service are allocated a maximum of 30
seconds to complete their startup sequence (by Windows).
If the service takes longer than the allocated time, an error message will be passed
back saying that the service "failed to start."
If this occurs, the following registry patch should be applied:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"ServicesPipeTimeout"=dword:000493e0
Note:
Please be very familiar with the use of RegEdit before attempting this update as
mistakes in the Registry can potentially render Windows inoperable.
4-50
Version 4.2
December 2009
ii.
Double click the Historian Status Indicator icon (this will appear as
or
depending on whether any of the services are
either
running) in the System Tray.
iii.
iv.
CitectHistorian Configuration
Manual Release 1
4-51
4-52
v.
Physically remove the key from the PC and wait a few moments for
the "Licence Changed" message in the lower right of the screen.
vi.
vii.
Re-insert the hardware key and note the Licence Changed message
and the re-display of the correct licensing information.
Version 4.2
December 2009
ii.
iii.
iv.
v.
Stop and then Start the service to observe the shutdown / restart
process in operation.
vi.
Select the Event tab and repeat the previous few steps.
Note:
Pausing the Event Service may be used as a tool to temporarily stop the processing
of Events on a short-term basis - perhaps when unusual plant conditions would
normally trigger events, but those events are not currently relevant.
CitectHistorian Configuration
Manual Release 1
4-53
Summary
Summary
Questions
4-54
Version 4.2
December 2009
Chapter 5:
Publish Information
Overview
Introduction
CitectHistorian takes information from various data sources and prepares itor use
by client applications. This chapter describes how to take the data made available
from the connected data sources and prepare it to be made available to other
applications.
Once CitectHistorian Server has been connected to the required data sources, the
items that the client applications will use need to be made available. This process is
referred to as Publishing Data. CitectHistorian is able to publish all items from the
data source or only the items that have been selected.
As demonstrated in Publish Data (page 3-18) the simplest way to add data items is
to drag and drop the whole data source into Published Information.
5-2
Version 4.2
December 2009
However, data items may also be published into folders that have more meaning
from a management point of view. Folders and sub-folders may be created to
organise the data in a manner that is more logical for specific users using client
applications.
Select Folders or
Individual Items
When selecting data items it may be necessary to only drag and drop complete
folders. It is also possible to select individual items from within each folder to
customise the information that is made available to different users.
The advantage of this system is that the data that is made available to different
users or groups of users is managed at the folder level rather than assigning security
to each item.
Secure Access to
Folders
Once Folders and items have been constructed, a permission structure may be
assigned to permit the fine-grained control of access. This will permit full access,
read-only access and denial of access at any level. Security will be covered in more
detail in the section Security (page 5-10) later in thishapter.
CitectHistorian Configuration
Manual Release 1
5-3
Right click Published Information and select New Folder from the
menu.
ii.
iii.
Engineers.
Add items from the Data Sources to the Published Items folders.
i.
ii.
Information.
iii.
5-4
Drag the SQL Database data source into the Engineers folder in
Published Information.
Version 4.2
December 2009
ii.
Open the Aladdin Data Source and select the Tags folder beneath
AladdinsCave. Select Action Filter from the menu.
iii.
Use the Filter field to select all tags that end in _Temp.
iv.
Select all of the Tags that end in _Temp and drag them into the
Cave Temps folder.
v.
Copy the groups of tags listed in the table below from the Data
Sources folder into the corresponding sub folders in the Guides
folder.
Tags
Folder
*_CO2
CO2 Levels
*_Count
People Count
*_Air
Wind Speed
CitectHistorian Configuration
Manual Release 1
5-5
In order to present data to the client, all of the data paths in this diagram must be
explicitly defined.
At this stage, the connections from the plant-based data sources to the Historian
Server are all defined, as is the connection from the Historian Data Service to the
Historian database.
What has not yet been defined is the connection from the Historian database to the
Published items service. This is the next task.
Note:
While a connection from the data sources directly to the clients can only display
current data, connections from the Historian database are more complex and permit
the definition of time ranges and other data filters.
5-6
Version 4.2
December 2009
Hist.
Note:
Currently, implementation rules prohibit this folder from being called 'Historian.'
ii.
Drag the Aladdin Data Source folder in Historian to this new folder
in Published Information.
The Published Information hierarchy
should look like this:
CitectHistorian Configuration
Manual Release 1
5-7
Drag the DataSim folder (under the Cogent Data Source) to the
Historian folder.
For a brief period, the system will display a dialog box showing the
establishment of the links to the Data Source tags. This will close
automatically.
ii.
Drag the newly created DataSim folder (in the Historian folder) to
the Published Information folder.
Again, for a brief period, the system will display a dialog box showing
the establishment of the links to the Historian tags. This will close
automatically.
iii.
5-8
Version 4.2
December 2009
ii.
Connect to the Historian. (This was covered previously in Exercise View Data in the Excel Client (page 3-26))
iii.
Expand the contents of the DataSim folder, confirm that all tags are
visible.
iv.
Highlight DataSim and click the right-facing arrow to add all tags to
the Selected Data list.
v.
vi.
Click Next.
vii.
Optionally give the presentation a name and ensure that the Data
CitectHistorian Configuration
Manual Release 1
5-9
Security
Groups and
Users
When the security system is configured users will only be able to gain access to the
data that they have been given permission to view. Each time a user connects to the
CitectHistorian Server, the Server will use their Login Name and Password to
determine which data they can view and to what extent they can modify or add to
that data. If a user does not have a profile they will not be able to gain access to
anything on the Server.
The configuration of CitectHistorian security is similar to the security in Windows.
A User profile may be created for each person who will have access to the system
and those Users can be organised into Groups. This adds the convenience of being
able to assign a Group of Users access to a particular item (or folder of items)
without the need to assign permissions to each individual User.
5-10
Version 4.2
December 2009
Security (cont.)
Add Users to
Groups
When the Groups have been created you may then add the Users to the Groups.
If a User is added to the system later, they may be added to a Group or to multiple
Groups.
CitectHistorian Configuration
Manual Release 1
5-11
5-12
Create at least six different Users in the same way as Exercise Create a New User (page 3-21). It is suggested that the following
names be used.
Engineers
Guides
Anne
Ruth
Bert
Stan
Carl
Tina
Right click Groups and select New Group... from the menu. Create
two new groups named Engineers and Guides.
ii.
Version 4.2
December 2009
In the Group Properties click the Add button. This will display the
User list. Add half of the Users to the Group. Use the CTRL key to
select more than one User at a time. Click OK once the users are
selected.
iv.
When the Users have been added to the Group the names will be
displayed in the Group Properties.
v.
vi.
Add the rest of the newly created Users to the Guides group.
CitectHistorian Configuration
Manual Release 1
5-13
5-14
Assign Users to the Published Items so that the Users will have
access to view the data items from Client applications.
i.
ii.
Open the Permissions tab and Add the Engineers group to the
Folder Properties.
iii.
Version 4.2
December 2009
v.
vi.
Add the Engineers group to the Guides folder but leave the
Permissions set to Full Access.
vii.
viii.
Add the Engineers group to the Hist folder and leave the
Permissions set to Full Access.
Remove
Open the AladdinsCave folder in Data Sources and drag the Tags
and Digital Alarms folders into the Guides folder.
ii.
CitectHistorian Configuration
Manual Release 1
5-15
5-16
Use the Excel Client to view the data that has now been made
available to the client applications.
i.
ii.
iii.
Open the Data Selection screen and notice that the data is
presented in the way that has been organised for the Guides group
in the Server Manager. Select the tags in the Cave Temps folder
and click Next.
iv.
When the Data Presentation screen opens change the Name: to Cave
Temperatures.
v.
Finish the data selection and view the data in the spreadsheet. The
Excel Client displays the current cave temperatures as read only
data.
vi.
Version 4.2
December 2009
ii.
This time when the Data Selection screen opens the data that has
been configured for the Engineers is available. Select the Digital
Alarm Tags. Since this is historical data there are parameters
available that give the user some choices. Leave the EndDateTime
and change the Duration to 1 Hour.
iii.
iv.
CitectHistorian Configuration
Manual Release 1
5-17
Aliases
User Friendly
Names
One of the main purposes of the CitectHistorian suite of programs is the ability to
extract information from available Data Sources without re-engineering the original
system. In a SCADA system such as CitectSCADA, the names of the Data Items
such as Variable Tags, Alarms and Trends follow a logical format for Plant
Operators and Engineers.
For Example
VALVE_2_CMD
BIT_8
PUMP_1_M
However, these names can be meaningless to people who work outside the system
such as some Managers and non-technical staff. The CitectHistorian Configuration
Manager will allow the renaming of Data Items for use in Client applications
without changing the original runtime system. The new name is called an Alias.
5-18
Version 4.2
December 2009
Exercise - Aliases
1
ii.
By default, the objects in the Digital Alarms folder (and all other
folders) represent the tag names defined in the CitectSCADA project.
These may convey meaning for those people closely associated with
the project but are generally incomprehensible to other users of the
information. Double click AladdinsCaves.Aer_P.
CitectHistorian Configuration
Manual Release 1
5-19
The name of the Attribute does not need to be the same as the alarm
tag. When it has been changed, the new name will be used in all
client applications without affecting the original data source item.
In the screen shot on the previous page, it is clear that the
'Expression' contains the actual data source and the default name is
the same (obviously the alarm name). The screen shot below
demonstrates that the name may be changed as required.
5-20
Version 4.2
December 2009
CitectHistorian Configuration
Alias
Aer_P
Aer_V
CentralDoor
Chlorin_V
ChrisDoor
CirceDoor
Homogen_P
Homogen_V
MainDoor
Nutrient_V
OperaDoor
pH_P
pH Pump OFF
pH_V
pH Valve OFF
Sed_V
Sludge_V
TarDoor
Treat_P
Truck_S
Waste_V
Manual Release 1
5-21
Log in to the Excel Client as one of the Users in the Guides group.
ii.
iii.
Compare the Alarm names to the report generated using the digital
alarms from the Engineers folder during Exercise - Client Security
Views (page 5-16). This time the Alarm names are displayed using
the aliases that were configured for the Guides.
5-22
Version 4.2
December 2009
Summary
Summary
Questions
CitectHistorian Configuration
Manual Release 1
5-23
Chapter 6:
Backfill Manager
Overview
Introduction
The Backfill Manager is used to add historical values stored in the SCADA Trend
Server to the Historian database in the situation where connection to the SCADA
environment has been lost.
This might be due to the connection only being periodically available or the
Historian Server being only intermittently on-line.
Backfill Manager
What is a
Backfill?
6-2
Version 4.2
December 2009
Pre-Populate the
Historian
The Backfill technology can also be used to populate the Historian with data
derived from SCADA Trend tags which pre-dates the installation of the Historian
software.
Clearly this would be a one-off task which allows any currently trended data to be
added to the Historian.
CitectHistorian Configuration
Manual Release 1
6-3
The Backfill Manager is a tool that displays all the current and pending backfill
activity on the CitectHistorian Server. It is primarily a list showing details of the
SCADA trend data scheduled for transfer to the Historian.
Note:
The Backfill Manager will only display a snapshot of the current backfill activity at
the time of opening. The information it displays does not update dynamically.
6-4
Version 4.2
December 2009
This displays the name of the Historian server. It indicates that the scheduled
backfill activity will only be implemented for the CitectHistorian Server the
Backfill Manager is running on.
Data Source
This column displays the Data Source from which the backfill data will be
retrieved. If you are in the process of adding a new backfill task, a drop-down list
will be available from this column allowing you to select from the data sources
connected to the CitectHistorian Server.
From
This column shows the time and date that represents the start of the period for data
backfilling.
To
This column shows the time and date representing the end of the period data for the
backfill. If the To column is blank, it means the data source is currently offline. As
soon as the CitectHistorian Server can re-establish communication with the data
source, the To column will display the time of reconnection and the backfill task
will be able to progress.
See Also:
For further information about adding your own backfill tasks, see CitectHistorian
Help Topics Manually triggering backfilling.
Completed To
The Completed To field provides an estimate of how far a backfill task has
progressed by displaying the timestamp for the last value loaded into Historian.
You can roughly assess how close the task is to completion by comparing the time
and date displayed to that in To column.
Status
The Status column uses coloured dots to represent the current status of a scheduled
backfilling task. A green dot indicates that the backfill is currently active; a yellow
dot indicates that it is pending.
Add
Use this button to manually Add a backfill task to the list of those scheduled. If this
button is not active, it means there are currently no tags loaded into the Historian
folder.
Delete
This button will clear a scheduled backfill task that is currently being configured. It
will NOT delete one of the automated backfill tasks, or a manually configured task
that has been implemented with the OK button.
CitectHistorian Configuration
Manual Release 1
6-5
6-6
ii.
iii.
Version 4.2
December 2009
v.
vi.
Select one of the tasks by clicking the record. Click OK to start the
backfill. The Delete button becomes inactive. This is because
automated backfill tasks, or any manually configured task launched
with the OK button, cannot be deleted.
vii.
Click the OK
CitectHistorian Configuration
Manual Release 1
6-7
Note:
The training computers may or may not be configured to have this data available.
the Instructor will advise whether to proceed with this exercise.
ii.
iii.
Note:
After selecting the date from the calendar tool, the From and To fields must be
double clicked to be able to modify the time component.
6-8
Version 4.2
December 2009
iv.
2
ii.
iii.
Continue closing and opening the Backfill Manager until the status is
marked as completed.
CitectHistorian Configuration
Manual Release 1
6-9
6-10
Navigate to the tags folder under the Historian and double click the
tag Aladdin'sCaves.Chris_Temp.
ii.
iii.
Version 4.2
December 2009
ii.
CitectHistorian Configuration
as
dd
from
Manual Release 1
6-11
6-12
ii.
iii.
Execute the query from Step 2 on the previous page a few more
times to demonstrate that no samples are currently being collected.
Version 4.2
December 2009
v.
CitectHistorian Configuration
Manual Release 1
6-13
Execute the query again and confirm that samples have been stored
in the table for the period during which the Historian & Data service
was stopped.
Prior to finishing the training for day 1, stop the Historian Data
Service.
ii.
Note:
The SCADA Aladdin project must continue running all night for this to fully
succeed. This means that it must be a licensed installation of CitectSCADA. If it is
not, the project will terminate 10 hours after it was commenced (probably around
7:30pm that evening). If the SCADA does terminate, backfill data will only be
available for the period up until it stopped and will only be obtained after the
SCADA is restarted.
6-14
Version 4.2
December 2009
Summary
Summary Backfill Manager
CitectHistorian Configuration
Manual Release 1
6-15
Publish data
Historian configuration
Configure tags
Configure Alarms
Organise data
6-16
Version 4.2
December 2009
Chapter 7:
Project Management
Overview
Introduction
CitectHistorian allows you to backup and restore the configuration database for a
CitectHistorian Server. This is useful if you want to store your configuration
settings on a regular basis to ensure that a copy is always kept in a safe place.
Having a stored configuration also ensures that you can restore your system if it has
become damaged. You can also use a backup file to duplicate the configuration of a
CitectHistorian Server onto a new machine.
The .CBF files are simply a re-named .ZIP archive and may be loaded in WinZip or
any similar tool.
7-2
Version 4.2
December 2009
Citect is not in a position to accurately gauge the needs of every organisation, but
the following points should serve as a general guide upon which to base your
organisations backup strategy.
CitectSCADA is able to control and monitor the operation of your plant and in
addition store a short-term record of values via the Trend system.
CitectHistorian is intended to be a long-term store for historical data that will
(in all likelihood) be the only location in which that data is stored.
SQL Server 2005 (upon which CitectHistorian is built) contains mechanisms to
assist with the automation of the backup process to either separate disk volumes
or to tape.
The general observation with regard to backups is that the time between
backups should be the length of time for which you are prepared to lose data.
Modern SQL environments permit shadowing of data to restrict the impact of
file corruption, but this technique will not address the catastrophic loss of the
server or the hard disks contained therein.
It would be considered normal to run overnight backups to tape while having
an incremental shadowing task throughout the day.
There is little point in making regular backups when there is no knowledge of
the validity of the contents of the tape to which the data is copied. It is essential
that a trial restore is undertaken at the time of setting up the backup system to
confirm that the data is fully usable. Subsequent (but infrequent) trials should
be performed to confirm valid backups into the future.
Similarly to the previous point, it is equally crucial that successful backup tapes
are stored off-site in a suitably secured facility (there are many companies
world-wide that offer such a service).
These comments specifically relate to backup and protection of the stored data and
do not consider the separate issue of Change Management (and potential roll-back).
CitectHistorian Configuration
Manual Release 1
7-3
7-4
Open the Backup and Restore Utility. From the Windows Start
menu, select Programs Citect CitectHistorian Management
Tools Configuration Backup And Restore.
ii.
iii.
Version 4.2
December 2009
v.
vi.
CitectHistorian Configuration
Manual Release 1
7-5
ii.
7-6
Version 4.2
December 2009
Open the Backup and Restore Utility and select the Restore tab.
ii.
iii.
CitectHistorian Configuration
Manual Release 1
7-7
7-8
iv.
v.
vi.
Version 4.2
December 2009
viii.
Note:
The restore function may modify the passwords for existing users defined in the
system. If it is found that existing users can no longer log in via the Excel client,
the current users must be removed from both the Historian and SQL security
systems and re-created. Information on deleting users from the SQL environment
is provided in Delete the Project (page 7-22).
CitectHistorian Configuration
Manual Release 1
7-9
Open the Historian Data Manager. From the Windows Start menu,
select Programs Citect CitectHistorian Management Tools
7-10
Version 4.2
December 2009
iii.
iv.
CitectHistorian Configuration
Manual Release 1
7-11
7-12
v.
vi.
Click OK.
Version 4.2
December 2009
viii.
A "bar graph" progress meter will appear on the bottom of the dialog
box. Once done, a message will appear.
ix.
Click OK.
x.
CitectHistorian Configuration
Manual Release 1
7-13
Active Project
Allows Users to
Switch between
Projects
On a development PC, it quite reasonable to have many projects installed and either
(potentially) operational or under continued development. In either case, only one
project can actually be operating on the PC at any one time. This is referred to as
the Active Project.
The Server icon of the current Active Project is overlayed with a green tick.
The Active Project sets the CitectHistorian Server name in the Event and Historian
Services. It is necessary to stop these services before changing the Active Server.
Also if an existing CitectHistorian database is going to be restored under a new
name it is still necessary to link the CitectHistorian Server with a new name using
the Register CitectHistorian Server Wizard.
See Also:
For further information about Active project, see CitectHistorian Help - backing
up and restoring a project Restoring a project configuration.
7-14
Version 4.2
December 2009
Return to the Backup and Restore Utility. Open the Restore tab.
ii.
Select the backup file that you created in the previous exercise.
iii.
CitectHistorian Configuration
Manual Release 1
7-15
7-16
When the restore is complete click OK and then Close to exit the
Backup and Restore Utility.
ii.
Right click Historian Servers and select New Server from the
menu. This will open the Register Historian Server Wizard and
allow you to connect your newly created database to the
CitectHistorian Server.
iii.
iv.
Click Next.
Version 4.2
December 2009
vi.
At this screen use the dropdown list to select your newly created
database or type in a new name.
vii.
Click Next.
CitectHistorian Configuration
Manual Release 1
7-17
7-18
viii.
ix.
Version 4.2
December 2009
ii.
Note:
Notice that the Database is CitectHistorian. As this service is accessing the
CitectHistorian database it is necessary to stop the Data Service before the Active
Project can be changed. The Event Services must also be stopped, but this has not
yet been started, it will be considered in Events (page 9-1).
CitectHistorian Configuration
Manual Release 1
7-19
7-20
iii.
iv.
Right click the newly restored database and select Set as Active
Project.
v.
Version 4.2
December 2009
vii.
viii.
ix.
CitectHistorian Configuration
Manual Release 1
7-21
Remove a Project
Delete the Project
Should there be a need to delete the entire project and it's data, the following steps
must be taken.
This is NOT an Exercise, do not follow these steps during the course.
7-22
CitectHistorian
Historian
ReportServer$CITECTHISTORIANtempDB
Version 4.2
December 2009
CitectHistorian Configuration
Manual Release 1
7-23
7-24
Version 4.2
December 2009
Summary
Summary
Questions
CitectHistorian Configuration
Manual Release 1
7-25
Chapter 8:
Tasks
Overview
Introduction
Tasks are used to trigger actions, transfer data or email information. A Task may
be triggered manually or set to trigger automatically using Events, which will be
covered in Events (page 9-1).
8-2
Version 4.2
December 2009
Task Properties
General Tab
See Also:
For further information about Tasks, see CitectHistorian Help - Working with tasks
Creating a task.
CitectHistorian Configuration
Manual Release 1
8-3
8-4
Version 4.2
December 2009
The Action Tab configures the Task itself. The information in this tab will change
depending on the type of Task that is being configured. This is because each Task
type generates a very different outcome, and therefore requires unique settings and
instructions to fulfill its purpose.
CitectHistorian Configuration
Manual Release 1
8-5
8-6
The Variables tab features a table where Visual Basic script (VBScript)
expressions or SQL data queries that will be applied to the Task are listed.
Variables are used to modify the activity defined for a Task using customised
VBScript or SQL statements. The Variable Properties dialog is used to compose
the VBScript or SQL statements that will be applied to a Task. This tab varies for
each Task type. Some Task types such as Upload Alarms, Trends and Historian
have predefined variables. Other Task types such as ActiveX and Download Tags
can accept user defined variables.
Version 4.2
December 2009
There are several types of activities that can be implemented to transfer data using
Tasks. These include:
Transfers from SCADA data sources to connected databases
Transfers from Historian to connected databases
Sending tag values to a SCADA data source from a database
All of these will be examined in the next few exercises.
CitectHistorian Configuration
Manual Release 1
8-7
Note:
If the installation contains a lot of tasks, these may be organised into task folders.
However, this will not be done in these exercises.
ii.
8-8
The Task configuration will open at the General tab. Name the Task
Alarm Upload and select the Upload Alarms type.
Version 4.2
December 2009
Open the Action tab. Notice that the Source pane has listed only
the SCADA Data Sources and that the columns already contain the
list of Alarm data (properties) on the source SCADA server. A value
for each of these properties in the source Columns list will be
transferred across to the mapped field in the destination database
when the Task is triggered. It is possible to Add and Remove items
from this list by using the buttons below the list, and reorder the list
by clicking the up and down arrows to the right of the list.
Note:
When configuring a Task to upload alarm data, the selected columns must include
the Tag and OnDateTime properties, otherwise the Task will fail.
CitectHistorian Configuration
Manual Release 1
8-9
8-10
ii.
Click the Preview button. This will display the Source Data Preview
window which shows the arrangement of the data in a table, based
on the columns that have been selected. The preview functionality is
useful for checking that the source columns have been configured as
intended. Click OK to return to the Action tab.
iii.
The Destination pane lists the Database Data Sources. Select the
Alarm table from the list.
Version 4.2
December 2009
v.
There are two ways to map the columns correctly. Either select
columns individually in the correct order or select all columns and
then reorder them using the up and down arrows on the Action tab.
vi.
Position the Column Selection dialog box such that the list of source
columns in the New task dialog is visible. In the Column Selection
dialog, select each column name in the order they appear in the
source list and click the right-facing arrow to add to the Selected list.
vii.
Note:
The fields in both columns MUST match exactly as the system will create a 1-to-1
mapping between the two lists in the order they are encountered. The names are
not required to be identical, but the contents and datatypes must match. the up and
down arrows may be used to adjust the order.
CitectHistorian Configuration
Manual Release 1
8-11
8-12
Open the Variables tab. SCADA Alarm Upload Tasks have VBScript
applied to them by default. The default limits the request for alarm
data to the last two hours. The variable EndDateTime uses the
VBScript expression "Now()" to set the end of the request period to
the current time. The StartDateTime uses the expression DateAdd()
to set the start of the request period to two hours prior.
Version 4.2
December 2009
ii.
Change the
iii.
Click OK on each of the open dialogs to save the settings of the new
Task.
ii.
CitectHistorian Configuration
Manual Release 1
Click OK.
8-13
View the Alarm data that has been transferred to the SQL
Database.
i.
ii.
Locate the SQL Database. Right click the Alarm table and select
Open Table from the menu.
iii.
If the Task has been successful all alarm data from the last hour will
be visible.
8-14
Version 4.2
December 2009
ii.
iii.
The Source pane has the SCADA data sources listed the same as the
Upload Alarms Task. Click the Source Tags button. This will open
the Tag Selection window.
iv.
Use the Filter field to display all _Temp tags in the Available Tags
window.
v.
Move all of the tags across into the Selected Tags pane.
vi.
CitectHistorian Configuration
Manual Release 1
8-15
To preview the data in the Tabular style, click the Preview button.
8-16
Version 4.2
December 2009
Return to the Action tab and change the Column Style to Crosstab
(transpose). Preview the data.
The Crosstab style returns the data one record at a time for each
tag per date/time stamp. Therefore, the columns used include
Date/Time and a separate column for each Tag. The Crosstab style
is the most efficient, easy and fastest to query, however it requires
more maintenance and takes longer to configure.
iii.
CitectHistorian Configuration
Click OK to close the Source Data Preview and change the Column
Style back to Tabular.
Manual Release 1
8-17
8-18
ii.
Version 4.2
December 2009
ii.
Note:
With a SamplePeriod of 2 seconds and a randomiser in the SCADA project of
between 5 and 11 seconds, many of the samples stored in the SQL_Database will
have to be estimated.
CitectHistorian uses an estimation method called
"interpolation."
This is discussed extensively in the chapter Historian
Interpolation (page 14-1).
CitectHistorian Configuration
Manual Release 1
8-19
8-20
ii.
iii.
Open the Tag Selection dialog by clicking the Source Tags button
and select all of the _co2 tags.
iv.
v.
vi.
ii.
Version 4.2
December 2009
ii.
iii.
CitectHistorian Configuration
Manual Release 1
8-21
8-22
Create a new Task called Historian Tag Upload and select Upload
Historian Tag Data in the Type: field.
Open the Action tab. Select the Tags option in the Historian Folder
field.
ii.
Click the Source Tags button to open the Tag Selection dialog.
Select all of the _Air tags.
iii.
Select the Historian table from the SQL Database. Map the columns
to the corresponding columns on the source side.
Version 4.2
December 2009
ii.
iii.
Open the Historian table using SQL Server Management Studio and
view the data.
CitectHistorian Configuration
Manual Release 1
8-23
Create a new Task called Tag Upload Crosstab and select Upload
Tag Data in the Type: field.
Click the Add button to open the Add Column dialog and enter
*central into the Filter: field.
In this Task each tag must be configured separately.
Entering a
8-24
iii.
iv.
Version 4.2
December 2009
v.
vi.
i.
ii.
CitectHistorian Configuration
Manual Release 1
8-25
Create a new Task called Tag Upload Tabular and select Upload Tag
Data in the Type: field.
Open the Action tab and click the Add button in the Source pane.
This time, add the columns to the Source pane using the Constant or
8-26
Version 4.2
December 2009
iii.
iv.
Create a third column (using the Tag Data option) for TagValue.
Select all tags that start with Chris (use a filter *Chris*).
v.
vi.
i.
ii.
CitectHistorian Configuration
Manual Release 1
8-27
Create a new Task called Tag Download and select Download Tag
8-28
Open the Action tab and use the dropdown arrow to select
Tag_Download in the Table: field in the Source pane.
ii.
Click the Add button. From the Column Selection window assign all
available fields as columns, except for the field ID.
iii.
Version 4.2
December 2009
v.
Preview the data source table. This time only the first row of data is
returned.
vi.
CitectHistorian Configuration
Manual Release 1
8-29
ActiveX Tasks
Customise Tasks
The Tasks that have been configured so far have dealt with the transfer of data
between SCADA and Databases. The remaining types of Tasks are:
Sending e-mails
Executing ActiveX script
Executing DTS packages
ActiveX, DTS Package and Email tasks do not relate directly to the transfer of data
between SCADA and Databases but provide the power and flexibility to tap into
existing corporate resources or customise Tasks.
Note:
The DTS Package Task runs packages that were developed using SQL Server
2000 tools. SQL Server 2005 does not install the DTS package designer although
this package is available through the Microsoft website for backwards
compatibility.
DTS Package Tasks are not covered in this course.
In MS-SQL 2005 and 2008, Microsoft has introduced the replacement: SQL Server
Integration Services (SSIS). SSIS packages are also not addressed in this course.
8-30
Version 4.2
December 2009
Click OK to
Note:
This code will use the function CreateObject() to create a file called testfile.txt
and append the current date and time using the function Now().
ii.
Execute the Task manually. Check the C:\ directory for a file named
testfile.txt. It should have one entry showing the date and time that
the Task was executed.
Set up a Task that uses ActiveX Script to log the current value of
the Aer_Tank_Level tag into a text file called water.txt.
i.
Create a new Task named Insert Water Tag Value into File.
The
CitectHistorian Configuration
Manual Release 1
8-31
Open the
Variables tab and Add a new variable. Fill out the property sheet of
the variable using these values:
Name
Water
Data Source
Aladdin
Query Statement
See Also:
This example demonstrates how to read Integer values from CitectSCADA. For
information on how to read String Variables from CitectSCADA for use in
ActiveX script refer to CitectHistorian KB Article P1103.
8-32
Version 4.2
December 2009
iii.
Click OK to continue.
iv.
water.txt.
CitectHistorian Configuration
Manual Release 1
8-33
Email Tasks
Send Email
Tasks
CitectHistorian permits the creation of a task to send a simple email message to any
address on the web.
The email cannot directly contain tag values, although it is a relatively simple task
to create an output file with the ActiveX task which can then be included in the
email as an attachment.
8-34
Version 4.2
December 2009
Note:
A set of Gmail email addresses have been created for use in this exercise. They are
[email protected] through to [email protected].
The
instructor will allocate an address for the use of each student. The password for
each account is citectcitect.
i.
Create a new Task called Send Email and select Send Email in the
Type: field.
2
ii.
CitectHistorian Configuration
Manual Release 1
8-35
ii.
iii.
iv.
v.
vi.
vii.
Note:
If a mail server is not configured for the computer to use, this Task will not do
anything useful.
8-36
Version 4.2
December 2009
The use of such folders has no impact on the functionality of the Tasks.
CitectHistorian Configuration
Manual Release 1
8-37
8-38
Right click the Tasks folder and select New Task folder ...
ii.
Version 4.2
December 2009
Click OK.
iv.
CitectHistorian Configuration
Manual Release 1
8-39
Use the following table to create folders and populate them with
Tasks.
Folder Name
Contents
Alarm Tasks
Alarm Upload
Trend Tasks
Historian Tasks
Email Tasks
Send Email
8-40
Version 4.2
December 2009
Summary
Summary
Questions
CitectHistorian Configuration
Manual Release 1
8-41
Chapter 9:
Events
Overview
Introduction
What is an Event?
The Event
Service
The Event Manager runs as a separate service and is managed via the Event Service
tab in the CitectHistorian Status Indicator.
The primary task of the Event Service is to regularly check a list of a available jobs
to determine if they have satisfied their trigger conditions.
Trigger conditions may be time-based (perhaps every minute), data-based (perhaps
when a specific tag attains a pre-determined value) or chained to other events.
9-2
Version 4.2
December 2009
Note:
Events should NOT be used for reaction time critical SCADA control as there are
delays between the conditions becoming true, the Event firing and the Task being
executed.
Event Types
There are five different types of Events in CitectHistorian. These are the three
SCADA types, the Clock and the Task Engine.
CitectSCADA
Event
Clock Event
Time based
CitectHistorian Configuration
Manual Release 1
9-3
9-4
ii.
Right click Events and select New Event from the menu.
iii.
Name the new Event 10 Second Timer. Make the Source Type
Clock and set the Event to occur every 10 seconds. Leave the
Event to be synchronised at midnight. Click OK to save the settings.
Version 4.2
December 2009
Double click the Date/Time Log Task to open the Task proerties.
Open the Triggering tab, select the 10 Second Timer Event and click
the right-facing button, thereby enabling it. Click OK to continue.
CitectHistorian Configuration
Manual Release 1
9-5
9-6
Version 4.2
December 2009
Service
ii.
Select the Event Service tab. Start the Event Service by clicking the
Start
button.
Note:
Every time you configure a new Event the Event Service will need to be restarted
for the Event to execute.
iii.
Now that the Event Service is running the 10 Second Timer event
will cause the Date/Time Log Task to run every 10 seconds. Open
the file testfile.txt that was created by the Task in Exercise ActiveX Tasks (page 8-31). Check that the date and time are being
logged every 10 seconds.
CitectHistorian Configuration
Manual Release 1
9-7
Note:
Whenever ANY CitectHistorian system is configured to write back to the
underlying SCADA, extreme care should be taken that suitable practices and
procedures are in place to properly manage the process.
Without suitable care, this exposes the possibility of life-threatening
situations.
9-8
Version 4.2
December 2009
ii.
iii.
Click the Add button and select all available column expressions
except ID.
iv.
Configure the Destination pane. Click the Add button and enter *plc
into the Filter: field. Select the appropriate tags (in the same order
as the source list) from the list of available tags then click OK. They
must be added one-by-one to match the column layout of the source
column list.
CitectHistorian Configuration
Manual Release 1
9-9
9-10
v.
Repeat the process to assign tags for each of the remaining columns
in the Source pane with the exception of NamePLC and
WorkOrderPLC.
vi.
Version 4.2
December 2009
Name
MyRecipe
Data Source
Aladdin
Query Statement
Note:
The variable tag name WorkOrderPLC is enclosed in single quotes.
viii.
The variable tag WorkOrderPLC specifies the name of the soft drink
recipe. Click OK.
ix.
Return to the Action tab and edit the Where: clause so that the
recipe selected will be based on the value of the ID in the
RecipeSetup table.
CitectHistorian Configuration
Manual Release 1
9-11
i.
ii.
iii.
9-12
Version 4.2
December 2009
Create two Events to trigger the Download Recipe Task when the
tag WorkOrderPLC changes.
i.
ii.
CitectHistorian Configuration
Manual Release 1
9-13
9-14
iii.
iv.
Return to the Download Recipe Task and open the Triggering tab.
v.
vi.
vii.
Open the CitectSCADA runtime window for the Aladdin project, then
open the page Flavouring by clicking the Flavouring Plant image.
ii.
Version 4.2
December 2009
iv.
v.
Click the Verify button to enter the Approver credentials. Type the
password citect.
vi.
CitectHistorian Configuration
Manual Release 1
9-15
Once all counter-signers have entered their passwords, the final step
is to 'approve' the transaction. Click the Approve button (it may still
be cancelled at this point).
viii.
ix.
x.
The Recipe will change to match the data linked to the ID in the
RecipeSetup table.
9-16
Version 4.2
December 2009
ii.
On the Action tab, Select the Add button for the source and choose
Constant or VBScript Expression.
iii.
iv.
Click OK.
CitectHistorian Configuration
Manual Release 1
9-17
9-18
v.
Click the Add button again and select all of the PLC tags except the
tags NamePLC and WorkOrderPLC (use *PLC in the Filter field) and
click OK.
vi.
Version 4.2
December 2009
viii.
ix.
CitectHistorian Configuration
WorkOrderDecrease
and
Click OK.
Manual Release 1
9-19
Create a new Event to act on the success of the Log Recipe Status
task.
i.
ii.
9-20
Name
Recipe Logged OK
Source Type
Task Engine
Task Name
State
Succeeded
Click OK.
Version 4.2
December 2009
Open the Download Recipe Task and select the Triggering tab.
ii.
Remove the two WorkOrder Events from the selected list and add
the Recipe Logged OK Event.
iii.
Click OK.
ii.
iii.
CitectHistorian Configuration
Manual Release 1
9-21
Open Microsoft SQL Sever Management Studio and view the contents
of the RecipeLog table in the SQL Database. Observer that there
are blocks of entries to match each change in the WorkOrder value.
v.
vi.
9-22
Version 4.2
December 2009
Summary
Summary
Questions
CitectHistorian Configuration
Manual Release 1
9-23
Chapter 10:
Overview
Introduction
CitectHistorian is supplied with two client applications. The first of these is the
Excel client. Once the data items have been prepared for publication in the
CitectHistorian Configuration Manager they are available for use by the Excel
Client and many other client applications.
This chapter will examine different
methods of extracting and displaying data. We will then use the tools in Excel to
turn that data into meaningful information for business users.
10-2
The Excel Client is simple to use. Most of the configuration for the client
applications has been set up in the CitectHistorian Configuration Manager. When
the User has connected to the CitectHistorian Server, the Data Items that the User
has permission to view will be available in the Excel Client, and may then be
manipulated using the powerful tools available in Excel.
Version 4.2
December 2009
Open the Alarm page. The Aladdin project should have been running
for a while now so quite a few alarms should have been generated.
Acknowledge the alarms and more should start appearing. Open the
pages Filtration System and Cave System to generate more alarms.
iii.
The Trends and Historian tags that will be used in these exercises are
logging the values of the Analog tags. The pages Gas Emission,
Wind Speed and Cave Temperature display the values of these
tags. The values can be changed using the sliders.
CitectHistorian Configuration
Manual Release 1
10-3
ii.
Note:
Here is the reason for using a CitectHistorian instance when setting up SQL
Server. Notice that only the SQL Servers with a CitectHistorian instance are
displayed in the drop down list. However, the Server Name is displayed without
CitectHistorian in the name. If an SQL Server that does NOT have a
CitectHistorian instance is being used simply type in the name of the SQL Server
rather than choosing it from the list.
iii.
10-4
Version 4.2
December 2009
The Data Selection dialog will display the data items available to the
User who has been selected.
v.
Highlight the Digital Alarms Folder. This will allow the user to select
all items within that folder.
Alternatively the branch may be
expanded to allow individual items to be selected.
vi.
Click the right-facing arrow to move the items into the Selected
Data pane. Click Next to continue.
vii.
Finish.
viii.
The current Alarm data will be displayed using the default settings.
i.
ii.
Select all of the Tank Level items from the Trends folder. The Tank
level trends all end in TL_P. Click Next to continue.
CitectHistorian Configuration
Manual Release 1
10-5
10-6
Version 4.2
December 2009
The Exercise - View Data in the Excel Client (page 3-26) demonstrated how
quickly it is possible to have CitectSCADA data appear in the Excel Client.
However, the Excel client may be customised to change the look of the data as well
as the type of data to display.
The Data Selection dialog provides more flexibility than simply selecting the data
items. It will also allow a particular time segment to be selected from the
Parameters.
The CitectHistorian Data Properties allows two areas to be configured, the Refresh
type and the Data Layout.
CitectHistorian Configuration
Manual Release 1
10-7
10-8
Modify the display options of the selected data. The first part of
this exercise will change the display options for the digital alarms.
i.
ii.
Select the Digital Alarms folder and move all the items across to the
Selected Data.
All items in the Selected Data pane will be
highlighted by default. Change the Duration to 30 minutes. Click
Next to continue.
iii.
Version 4.2
December 2009
v.
Scroll down to the end of the category headings and untick the last
four options. Click OK to continue.
vi.
Click the Format button. Then click the Alarm On colour button and
select a different colour from the colour picker.
vii.
Select the Double line from the line style. Make any other changes
to customise the look of the table. Click OK to continue.
viii.
Click Finish to close the Data Presentation window. The table will
appear displaying only the alarms that have occurred in the last 30
minutes and in the customised colour format.
CitectHistorian Configuration
Manual Release 1
10-9
10-10
ii.
iii.
Version 4.2
December 2009
v.
vi.
Save
the
spreadsheet
as
C:\InetPub\wwwroot\Historian\Reports\CO2 30 mins.xls.
CitectHistorian Configuration
Manual Release 1
10-11
10-12
CitectHistorian gathers data that can be used by other business tools. Once this is
achieved it is possible to use that raw data to create information that is useful for
application in business. Excel is a powerful tool that will aid in the statistical
analysis of the data retrieved by CitectHistorian.
Version 4.2
December 2009
ii.
This file has retrieved a list of Alarms over a two hour period and
displays the tag names in Alphabetical order.
iii.
Select Data Subtotals from the main menu. In the Add subtotal
to: box untick SumState and tick Tag. Click OK to continue.
iv.
CitectHistorian Configuration
Manual Release 1
10-13
10-14
Version 4.2
December 2009
ii.
Highlight all the cells from the blank cell A1 to the last B cell above
the Grand Count.
iii.
CitectHistorian Configuration
Manual Release 1
10-15
10-16
iv.
The Chart Source Data allows specific cells that contain the labels
and data to be visible in the chart. Click Next to continue.
v.
The Chart Options allow the standard options in the chart type to be
customised. Change the Chart Title to Digital Alarms.
Version 4.2
December 2009
vii.
The last step is to select the location for the chart. Select the option
to display the chart as an object in Sheet 2.
CitectHistorian Configuration
Manual Release 1
10-17
ix.
Click Finish.
10-18
Version 4.2
December 2009
ii.
Data
iii.
iv.
v.
vi.
=C2-B2
then press the Enter key. The result should look something like this:
1900/01/00 00:00:10
vii.
viii.
CitectHistorian Configuration
Manual Release 1
10-19
ix.
Select the cell D2 and place the pointer over the Fill Button in the
bottom right hand corner of the cell. The pointer will change to the
Fill pointer.
x.
xi.
Return to the Menu item Data Subtotals... This time select the
Max function and add the subtotal to Duration. Click OK to
continue.
10-20
Select Level Two and highlight from the Tag heading to the last
subtotal in the Duration column. Do not include the Grand Max.
Version 4.2
December 2009
iii.
iv.
In the Source Data screen select the Series tab and remove the
OnDateTime and OffDateTime. Click Next to continue.
CitectHistorian Configuration
Manual Release 1
10-21
In the Chart Options select the Legend tab and untick the Show
Legend option.
vi.
vii.
Save
this
file
as
10-22
Version 4.2
December 2009
to
ii.
iii.
iv.
the
Scroll to the end of the list and under the first column add three new
entries Maximum, Minimum and Average.
ii.
iii.
CitectHistorian Configuration
Manual Release 1
10-23
iv.
v.
vi.
Follow the same procedure for Minimum and Maximum by using the
MIN and MAX functions.
Use the Fill function to calculate values for all the CO2 trends.
i.
10-24
Highlight all three values then place the pointer over the fill button in
the bottom right hand corner of the selected cells. Drag the pointer
across to the right so that the cells under all the columns are
selected. The columns will be filled in sequence.
Version 4.2
December 2009
Copy and paste the Trend Headings into the row above the
calculations. Remove the Cluster Name prefix, AladdinsCaves,
from the headings.
iii.
Use the Chart Wizard to create a bar graph displaying the Maximum,
Minimum and Average values for all of the trends.
iv.
Save
the
file
as
CitectHistorian Configuration
Manual Release 1
10-25
Summary
Summary
Questions
10-26
Version 4.2
December 2009
Chapter 11:
Overview
Introduction
The CitectHistorian Web Client is the second of the client applications that are
installed with CitectHistorian. The CitectHistorian Web Client is a web portal to
the plant floor. It allows current data to be viewed at anytime and from anywhere
that an Internet connection can be established. This chapter will demonstrate the
standard features of CitectHistorian Web Client.
In general, it should be possible to run the CitectHistorian Web Client and log in as
a User without any problems. However, depending upon the security arrangements
made by each Network Administrator, it may be necessary to set up the
CitectHistorian Web Servers as Trusted Sites in Internet Explorer.
When the CitectHistorian Web Client is opened, the Home Page is displayed.
11-2
Version 4.2
December 2009
If it is necessary to set up a Trusted Site, click the link. This will open page in the
Help that describes how to set up a Web Server as a Trusted Site.
CitectHistorian Configuration
Manual Release 1
11-3
ii.
Select Tools Internet Options from the main menu then click the
Security tab.
11-4
Select Trusted Sites from the options then click the Sites button.
Version 4.2
December 2009
iv.
Type in the URL of the CitectHistorian Web Server in the Add this
Web site to the zone field, then untick the Require Server
Verification (https:) for all sites in this zone. Click the Add button.
v.
Click Close.
Configure IIS
i.
ii.
Choose
Properties.
CitectHistorian Configuration
Manual Release 1
11-5
Low.
iv.
11-6
Version 4.2
December 2009
Click
vi.
vii.
Click OK twice.
viii.
ix.
CitectHistorian Configuration
the
Anonymous
access
and
Manual Release 1
11-7
11-8
x.
Scroll down to find the ActiveX controls and plug-ins section. Set
the option Initialize and script ActiveX controls not marked as safe
to be Enable.
xi.
Version 4.2
December 2009
ii.
iii.
iv.
Click OK to close the Custom Level dialog box and OK again to close
the Internet Options dialog.
CitectHistorian Configuration
Manual Release 1
11-9
Internet Information Services (IIS) is the Windows Web service that makes it easy
IIS is not installed by default but can be added using the Add/Remove Programs
dialog box from the Control Panel.
Many applications produced by Citect use IIS including CitectHistorian,
CitectHistorian Web Client and CitectHistorian Excel Client. Before installing any
of these applications IIS must be installed first.
11-10
Version 4.2
December 2009
When the client connects to the CitectHistorian Web Server the Home Page is
displayed. By default the client will connect to the local CitectHistorian Web
Server. The Address Bar displays the location of the Active Server Page in a
URL format.
http://localhost/Historian/default.asp
A Web Client can connect to a remote Server by changing the location in the
address bar. Internet Information Services provides the references needed to
connect to the correct Server, Website and Page.
When the Server, Website and Page are typed into the Address Bar using the URL
format, the Web Client will connect to the Web Server page.
http://Training/Historian/default.asp
The CitectHistorian Web Client is a client application to the CitectHistorian Server.
Just like the Excel Client, the CitectHistorian Web Client security is set up in the
CitectHistorian Server. After the Home Page has opened, the User must log in to
the CitectHistorian Server.
CitectHistorian Configuration
Manual Release 1
11-11
Web
Client
and
connect
to
the
i.
ii.
iii.
Log in as one of the Users who has been set up in the CitectHistorian
Configuration Manager.
iv.
When the User has logged in the CitectHistorian Web Client toolbar
will display the current User and the Site.
v.
Click the Web Client Link. The Web Client will open and establish a
link to the Web Server. The Folder pane on the page will display the
name of the CitectHistorian Server and all of the data items that the
User has permission to view.
11-12
Version 4.2
December 2009
Information Tree
The Information Tree displays the name of the CitectHistorian Server. When the
tree is expanded it will display the data that has been made available to the current
User as it has been configured in the CitectHistorian Server.
CitectHistorian Configuration
Manual Release 1
11-13
The Summary Window displays the items that have been selected for display. The
left pane displays the Data Items as they have been configured in the
CitectHistorian Server. The Right pane displays the configurable parameters for
each item.
Display Area
The Display Area is a visual representation of the data that the User has selected to
view.
11-14
Version 4.2
December 2009
Display Data
Display Current
Plant Floor Data
When the connection to the CitectHistorian Server has been established and a
configured User has logged in, it is then possible to display current plant floor data
in the CitectHistorian Web Client. To view data in the Web Client, simply select
the items from the Information Tree in the left pane, then double click or drag the
item into the Summary Window at the bottom of the page.
The Display Area on the right will use the default display format for whatever
information type is selected for display. When more than one format is selected, for
example Snapshot data and Historical data, the Display Area will split into
multiple sections to accommodate the various data displays.
These are the default display formats for each data type:
Data Type
Single-value
Tabular
Multi-value
Tabular
Recordset
Tabular
Time-series
Line graph
CitectSCADA Alarm
Gantt chart
Once the data to be displayed is selected, clicking the Refresh Data button will
retrieve data from the Data Sources and display it in the Display Area.
CitectHistorian Configuration
Manual Release 1
11-15
Events allow the display of alarms and other event type logs. Displays include
frequency of occurrences as well as duration of occurrences.
When Alarm items are selected from the Information tree and placed in the
Summary Window a Gantt chart is displayed by default.
Gantt Charts show the duration of each event, and the status of the event using
these colours:
11-16
Red
Green
Yellow
Version 4.2
December 2009
Changing the Event display to a Pareto Chart will show the alarm frequencies.
This chart shows, for instance, that the alarm Main Door Opened has occurred
twelve times within the selected display period.
CitectHistorian Configuration
Manual Release 1
11-17
Use the Web Client interface to display alarm data using different
formats.
i.
Open the Web Client and log in as a User who has access to the
Digital Alarms.
ii.
iii.
As
Select all of the alarms in the Summary Window and change the
11-18
iv.
v.
Version 4.2
December 2009
Using the mouse pointer draw a box around some of the alarms.
Draw the box from top left to bottom right.
vii.
The display will zoom in on the area that has been selected.
viii.
Draw the rectangle in reverse, that is, from bottom right to top left,
and the chart will return to its original size.
CitectHistorian Configuration
Manual Release 1
11-19
11-20
On the toolbar of the display window click the Events dropdown list
and select Pareto.
ii.
The view will change to display the frequency of each alarm within
the specified time frame.
iii.
Version 4.2
This will
December 2009
v.
Note:
The current version of the Web Client does not preserve any changes made to this
view. Upon closure and re-entry the system will return to the default settings.
CitectHistorian Configuration
Manual Release 1
11-21
Snapshot Data
Live Data from
SCADA
Snapshot data is the display of live data directly from the SCADA system. Data
may be updated either by pressing the Refresh Data button or by setting the
parameters of the snapshot to periodically update the data automatically. When the
data is updated, the Web Client executes a query for live data from the SCADA
system and displays the values as a cross-tab list.
Selecting the pull-down list beside the Snapshot button allows the user to select
the display format. The choices offered are:
Line Graph
Cross-tab
Data List
11-22
Version 4.2
December 2009
Log in to the Web Client as a User who has permission to view tag
data.
ii.
Select the Tank Level tags from the viewable data and add them to
the Summary Window.
iii.
Click the Refresh Data button. The Snapshot data will appear in the
Display Area as a Cross Tab table.
Change the view to display the snapshot data in the form of a Line
Graph.
i.
CitectHistorian Configuration
Click the dropdown list beside the Snapshot button and change the
display to a Line graph.
Manual Release 1
11-23
iii.
11-24
Version 4.2
December 2009
Time Series
Trend Data
Time Series data is a display of Trend Data taken directly from the SCADA
system's historical trend archive. When the Refresh Data button is pressed, the
Web Client executes a query for historical data from the SCADA system and
displays the values, by default, as a Line Chart.
Selecting the dropdown list beside the Time-series button allows the user to select
the display format. Choices offered are:
Line Graph
Histogram
CitectHistorian Configuration
Manual Release 1
11-25
Data List
11-26
Version 4.2
December 2009
Clear the items in the Summary Window that were used in the
previous exercise.
ii.
Copy the _CO2 Trends (making sure to use Historised, not live data)
from the Information Tree into the Summary Window and click
Refresh Data. The Trends will appear as a Line Graph showing the
historical data of those items for the last 2 hours.
iii.
Highlight the data items and change the Duration and EndDateTime
parameters.
iv.
Click the Settings button in the Display Area and edit the Line Chart
to display different features, for example, add a Title to the Chart
etc.
v.
Click the Time-series dropdown list and view each type of chart.
Use the Settings button to change the display of each type of chart.
CitectHistorian Configuration
Manual Release 1
11-27
ii.
Go to the Guides folder and open the Tags folder. The Historian tags
that you configured earlier in Exercise - Create a Published
Information Hierarchy (page 5-4) are located here.
iii.
Add all of the _Temp tags to the Summary Window and click
Refresh Data.
11-28
Version 4.2
December 2009
Attributes
Attribute
Properties
In this chapter, we will focus on the Attributes Time-series, Recordset and Web
Page.
CitectHistorian Configuration
Manual Release 1
11-29
Attributes (cont.)
Data Stored in
Rows
There are two ways of storing time-series data in a table: in rows or in columns.
The way the data is stored in the table must be known to configure the attribute.
When the data series is in rows, it means the table has at least three fields:
the Date/Time Field
the Data Series Field
the Tag Name Field
Each record contains a single data point sample, with the tag name field used to
identify the data series. The Tag Name: behaves as a WHERE clause.
When the data series is stored in Columns, a record could contain samples for
multiple data series with the samples having the same date/time stamp for each
record. In this case, only the date/time field and data series field need to be selected.
The difference between storing data series in rows versus columns is that when they
are stored in rows, data series can be added easily by adding more rows whereas
adding data series to a table using column storage means the definition of the table
must be changed. On the other hand, storing data series in columns is more
efficient, in terms of both disk space usage and query performance. Basically the
names of the trend data-series that are stored in any given table are known, the table
should be designed to store its data-series in columns, i.e. one column per dataseries.
11-30
Version 4.2
December 2009
ii.
iii.
Call the attribute Cave Temps from Database and select Recordset
as the format.
iv.
i.
Launch the Web Client and after logging in, select the Guides folder
and the Cave Temps from Database item.
ii.
CitectHistorian Configuration
Manual Release 1
11-31
ii.
Add a new Attribute to this folder and select the Web Page format.
iii.
iv.
In the Expression field enter the path to the Digital 2 Hours.xls file
(created in Exercise - Statistical Analysis (Optional) (page 1013)) as a URL e.g.
http://Training/Historian/Reports/Digital 2 Hours.xls
v.
vi.
Return to the CitectHistorian Web Client. Right click the server name
and select Refresh from the menu.
vii.
Double click the new attribute Digital Alarms 2 Hours then click
Refresh.
viii.
11-32
Version 4.2
December 2009
ix.
x.
xi.
i.
ii.
iii.
Assign Permissions and view the PDF file in the Web Client.
Note:
Adobe Acrobat Reader must be installed on the computer to be able to view this
document.
CitectHistorian Configuration
Manual Release 1
11-33
Summary
Summary
Questions
11-34
Version 4.2
December 2009
View Data
Configure access
Display data
CitectHistorian Configuration
Manual Release 1
11-35