DataManager - User Guide
DataManager - User Guide
0 USER GUIDE
November 2005
DISCLAIMER
This is an unpublished work, the copyright of which vests in SEVEN TECHNOLOGIES A/S. All rights reserved. The information contained herein is the property of SEVEN TECHNOLOGIES and is supplied without liability for errors or omissions. No part may be reproduced or used except as authorized by contract or other written permission. The copyright and the foregoing restriction on reproduction and use extend to all media in which the information may be embodied.
CONTENTS
1 INTRODUCTION................................................................................................................. 4 1.1 TOOLBAR BUTTONS ............................................................................................ 7 1.2 MENU BAR............................................................................................................. 9 INSTALLING DATA MANAGER ....................................................................................... 10 USING DATA MANAGER MENUS, SUBMENUS AND COMMANDS .......................... 11 3.1 FILE MENU........................................................................................................... 11 3.1.1 New Database > Access....................................................................... 11 3.1.2 New Database > SQL Server................................................................ 11 3.1.3 Open Database > Access ..................................................................... 13 3.1.4 Open Database > SQL Server .............................................................. 13 3.1.5 Import > Tag Configurations ................................................................. 14 3.1.6 Import > Time Series............................................................................. 15 3.1.7 Export > Tag Configurations ................................................................. 16 3.1.8 Export > Time Series ............................................................................ 17 3.1.9 Reset History......................................................................................... 18 3.1.10 Exit ........................................................................................................ 18 3.2 CONFIGURE MENU ............................................................................................ 19 3.2.1 Data Sources ........................................................................................ 19 3.2.2 Data Tags.............................................................................................. 24 3.2.3 Cyclic Buffers ........................................................................................ 33 3.2.4 Preferences........................................................................................... 34 3.3 RUN MENU .......................................................................................................... 39 3.3.1 Preprocessor......................................................................................... 39 3.4 TOOLS MENU...................................................................................................... 41 3.4.1 Reset > average values ........................................................................ 41 3.4.2 Reset > Table Locks ............................................................................. 41 3.4.3 Reset > Cyclic Buffers........................................................................... 41 3.4.4 Initialize > Cyclic Buffers ....................................................................... 41 3.5 VIEW MENU ......................................................................................................... 42 3.5.1 Measurements ...................................................................................... 42 3.5.2 Historical Data....................................................................................... 43 3.5.3 Data Graph............................................................................................ 44 3.5.4 Buffer graph .......................................................................................... 46 3.5.5 Event Log .............................................................................................. 47 3.5.6 System Log ........................................................................................... 48 3.6 WINDOW MENU .................................................................................................. 49 3.6.1 Cascade ................................................................................................ 49 3.6.2 Tile Horizontally..................................................................................... 49 3.6.3 Tile Vertically......................................................................................... 49 3.7 HELP MENU......................................................................................................... 49 3.7.1 Data Manager Help ............................................................................... 49 3.7.2 Support.................................................................................................. 49 3.7.3 About ..................................................................................................... 49 OPC CLIENT ..................................................................................................................... 50 4.1 OPC INTRODUCTION ......................................................................................... 50 4.2 OPC BROWSER .................................................................................................. 51 4.3 GUIDE TO OPC CONFIGURATION .................................................................... 54
2 3
INTRODUCTION
This User Guide describes how to configure and operate the software Data Manager from 7-Technologies. Data Manager is an online database application for configuring, preprocessing and administrating raw data from any data source such as supervisory control and data acquisition (SCADA) systems and Data Loggers . The data can then be used in the 7T online products AQUIS, LIQUIS,TERMIS, Demand Manager and Leak Detection. Data Manager is used in order to: Receive data from any data source such as SCADA systems, Data Loggers etc. Perform data conversion, data checks and data emulation for data received. These processes are performed by the data preprocessor. Maintain cyclic buffers of week profiles for selected SCADA tags. Make the preprocessed data available for online simulations (real-time and historical). Automatically backup historical data (Access databases only).
Figure 1.1 illustrates how Data Manager intercommunicates with external units, modules and programs.
Seven Technologies
Seven Technologies
LIQUIS
TERMIS
Description Any SCADA system with an ODBC, ADO, OPC or ASCII based interface. AQUIS is an advanced and powerful water network simulation platform. AQUIS is designed to improve hydraulic performance, water quality and safety of operation, while reducing water supply costs, leak risks, non-revenue water, capital investment and customer complaints. LIQUIS is a highly advanced and cost-effective simulation platform for transmission pipelines. LIQUIS facilitates planning and management within numerous areas, including leak detection, optimization of pump operation, optimization of pipeline planning and operation (three days planning, quality tracking, batch tracking), state estimation and surge analysis. TERMIS is an extensive district energy network simulation platform for improving system design and operation. TERMIS is a leading district energy network solution designed to improve energy consumption and hydraulic performance, while reducing energy costs, operating costs, capital investments and customer complaints.
Demand Manager Leak Detection Data Manager operates on the basis of a Microsoft SQL Server or a Microsoft Access database, which is the default solution.
From the menu bar you can get access to all program features and functions. The toolbar contains a number of buttons for shortcut access to the most commonly used features and functions. In the main window, you will see the dialog boxes that you open by clicking the toolbar buttons and the menu commands. The information window displays general static information about the current configuration. The status bar in the bottom of the screen displays general information about database and system status.
Seven Technologies
1 2 3
Click the menus on the Data Manager menu bar to see the different submenus and commands. Clicking a command opens a dialog box with one or more options for configuring Data Manager and the intercommunication between the data sources and the model environment.
Click this button to open the Data Sources dialog box, or click the Configure menu, and then click Data Sources.
Click this button to open the Data Tags dialog box, or click the Configure menu, and then click Data Tags.
Seven Technologies
Click this button to open the Measurements dialog box, or click the View menu, and then click Measurements.
Click this button to open the Historical Data dialog box, or click the View menu, and then click Historical Data.
Click this button to open the Data Graph dialog box, or click the View menu, and then click Data Graph.
Click this button to open the Preprocessor dialog box, or click the Run menu, and then click Preprocessor.
Click this button to toggle scheduled import of time series on and off. This button is only available if you have defined one or more intervals in the Scheduler area in the Import Time Series dialog box. To open the Import Time Series dialog box, click the File menu, point to Import, and then click Time Series.
Click this button to view the Data Manager User Guide (PDF file), or click the Help menu, and then click Data Manager Help.
Seven Technologies
Seven Technologies
To install Data Manager, insert the 7T Data Manager CD-ROM in your computer and do one of the following: 1. Click the Start button on the Windows taskbar, and click My Computer. 2. In the Folders list, click the letter representing your CD-ROM drive followed by a colon, for example d:. 3. Double-click the program file setup.exe to start the installation. or 1. 2. 3. Click the Start button on the Windows taskbar, and click Run to open the Run dialog box. Enter the letter representing your CD-ROM drive followed by a colon, for example d:, and click OK. Double-click the program file setup.exe to start the installation. As default, Data Manager is installed in the folder C:\Program Files\7T. When the installation is complete, you can open Data Manager from the Windows Start menu. Click the Start button, point to Programs > 7T > Data Manager 2.0, and then click Data Manager.
Seven Technologies
From the File menu you can create new databases, open existing databases and import data to and export data from the database that has been opened. You can also clear the database history and exit Data Manager from the File menu. All dialog boxes and features related to the menu commands will be described in the following sections of this chapter.
3.1.1
By default, Data Manager uses MIcrosoft Access for creating databases. On the File menu, point to New Database, and then click Access to open the dialog box shown in Figure 3.1 below. Select a folder from the Save in list, and enter a database name in the File name box.
3.1.2
If you prefer to use an SQL Server solution with Data Manager instead of Access, you will have to acquire a legal copy of SQL Server, which is not supplied by 7T. However, Data Manager is distributed with Access, which is therefore used as default.
Seven Technologies
On the File menu, point to New Database, and then click SQL Server to open the dialog box shown in Figure 3.3 below.
Select a server from the SQL Server list, and log on to the server with the relevant user name and password to open the dialog box shown in Figure 3.3 below.
Click Create to open the dialog box Create Database. Type a database name, and click OK. The new database is now listed in the dialog box Create Database on [database name]. Click Close. NOTE: To create a new database in a SQL Server requires a user with "database create" rights to log on.
Seven Technologies
To open an existing Access database, point to Open Database on the File menu, and click Access, see section 3.2.1.
3.1.4
If you prefer to use an SQL Server solution with Data Manager instead of Access, you will have to acquire a legal copy of SQL Server, which is not supplied by 7T. However, Data Manager is distributed with Access, which is therefore used as default. To open an existing SQL Server database, point to Open Database on the File menu, and click SQL Server. The dialog box shown in Figure 3.5 opens. Select the SQL Server you want to open, and click Open.
Seven Technologies
NOTE: To open an existing database in an SQL Server requires a user with "read and write" rights on the specific database.
3.1.5
You may import SCADA tag names and configurations from an ASCII file into the currently active database. The ASCII file with the SCADA definitions must be configured as described in Appendix A. In the File menu, point to Import, and then click Tag Configurations to open the dialog box Import Tags displayed in Figure 3.6. Point to a file with SCADA tag definitions, and click the Import button.
Seven Technologies
If the current database is empty, the file will be automatically imported to the configuration. If the database is not empty, you can specify the following parameters: If the check box Overwrite existing SCADA values is selected, existing SCADA tag definitions in the database will be updated with data from the ASCII file.
3.1.6
You can import measurements from an ASCII file to the historical section of the database. The ASCII file containing the measurements must have a format as described in Appendix B. In the File menu, point to Import, and then click Time Series to open the dialog box displayed in Figure 3.7 below. Please compare bullet points 1-7 in the following paragraphs to the corresponding numbers in Figure 3.7. Import rules In the Import rules area within the Import Time Series dialog box, enter a Start time, an End time and an Import interval. In the Start time box, only data with time tags succeeding the start time will be imported. If the field is left blank, the start time of the import will equal the first time tag in the ASCII file. In the End time box, only data with time tags preceding the end time will be imported. If the field is left blank, the stop time of the import will equal the last time tag in the ASCII file. In the Import interval box, you may specify the time interval in minutes between data groups. Please note that if no import interval is defined, the time tags generated in the database will equal those from the import files. If an import interval is specified, the time tags within the database will be generated from start time to end time with a time interval equivalent to the import interval. If you check the Include preprocessor check box, the data will be imported through a data preprocessor. For more information about the preprocessor, For more information about data preprocessing, see sections 3.2.4 and 3.3.1. Clicking the Import button will now start the data import from each selected ASCII file. Scheduler In the Scheduler Settings area, you can set up a scheduler to automatically run a daily import at defined time intervals. When having defined up to four time intervals, click the Schedule button, if you want to close the dialog box and start the Scheduler. On the information bar, the status of the TSI Scheduler has changed to display the time for the next scheduling. If you have not selected at least one of the Active check boxes within the Scheduler Settings area in the Import Time Series dialog box, TSI Scheduler will display Off as default. Please note, that importing time series may lead to data groups with different numbers of measurements in each data group. Only if each SCADA tag has a measurement at each time tag, all data groups will contain measurements from all SCADA tags.
Seven Technologies
File settings In the File settings area, choose a List separator, a Decimal sign, a Date separator and a Date format from the lists. Files to import You can import more than one file at a time, but the files must be located in the same folder. In the upper list of the Files to import area, select a drive on your computer In the box below, browse to the folder with the files you want to import. Choose a file extension in the bottom list. In the box right above the bottom list, click the files for import while holding down the CTRL key on your keyboard. When you have completed defining the settings for importing time series, click Close.
1 4
3 6
3.1.7
If you want to export a complete list of configured SCADA tags within the current database to an ASCII file, point Export in the File menu, and click Tag Configurations to open the dialog box displayed in Figure 3.8 The procedure for exporting a complete list of configured SCADA tags within the current database to an
Seven Technologies
3.1.8
To export historical data for a user defined selection of SCADA tags, point to Export in the File menu, and click Time Series to open the dialog box displayed in Figure 3.9. The format of the exported file resembles that of the import file as described in section 3.1.6, except that only one SCADA tag is included in each export file. In the Export History dialog box, select the SCADA tags you want to export by clicking the relevant files while holding down the CTRL key on your keyboard. To start the export, click the Export button, browse for a folder in which to place the export files, and click OK. The export files will be saved with the same names as the SCADA tags and with the file name extension .csv.
Seven Technologies
3.1.9
RESET HISTORY
If you want to reset the historical part of the database, click Reset History in the File menu, to open the dialog box displayed in Figure 3.10. If you want to create a backup file of the database before the history is reset, click Yes. The backup is created according to a normal backup as described in section 3.2.4. The backup database and the original database are both compressed during the process. Backup is only applicable for saving Access databases.
3.1.10
EXIT
Click Exit in the File menu to close Data Manager. All changes made to the currently loaded database
Seven Technologies
3.2.1
DATA SOURCES
When you configure how data are to be collected in Data Manager, you must first configure the data sources. In the Configure menu, click Data Sources to open the dialog box displayed in Figure 3.11. The following five connection types are available:
OLE DB DAIO External OPC Algorithm You must define different parameters depending on the type of data source. There are no limitations to the number of sources of each type as long as they have unique names. The check boxes Active and UTC are common settings for all types of data sources. If the Active check box is selected, Data Manager will search for new data in each data preprocessing cycle. Selecting the UTC check box, will make Data Manager convert the raw UTC (coordinated universal time) timestamp to a local timestamp value.
OLE DB This connection type is used when the data source is a database that can be accessed via ActiveX Data Objects. In the Connection type list, select OLE DB. If data for all tags in this source can be extracted by a generic SQL statement, the statement can be defined on data source level instead of tag level. You may use two substitution rules in SQL statements: $TAG and $LastTime. $TAG will be replaced by the individual tag name, and $LastTime will be replaced by the time tag of the previous data extracted for each individual tag. When using the $LatTime substitution rule a full substitution including the time stamp format for the specific database is used:
for Access data sources for SQL Server data sources for ODBC data sources
Seven Technologies
DAIO This connection type is used if data is transferred by a separate application, which is activated by Data Manager, transfers the data. In the Connection type list, select DAIO. You can add any parameters if needed, see Figure 3.12 for example of the standard DMDAIO which is supplied with Data Manager..
Seven Technologies
External This connection type is used if data is delivered to Data Manager by an external data source without any action or control made from Data Manager. In the Connection type list, select External. You cannot define parameters for data sources.
Seven Technologies
OPC This connection type is used if data is to be extracted from an OPC server or uploaded to an OPC server. In the Connection type list, select OPC. Data will be transferred through the Data Manager OPC Client, which you must configure separately.
Seven Technologies
Algorithm In the Connection type list, select Algorithm. This connection type is used for calculating arithmetic expressions or doing reductions on tags within Data Manager. You cannot define an algorithm on source level, as arithmetic expressions are entered on tag level.
Seven Technologies
3.2.2
DATA TAGS
When you have defined the data sources in a configuration, the tags in the data sources must be added and configured. In the Configure menu, click Data Tags to open the dialog box displayed in Figure 3.16.
Seven Technologies
Click Add New , if you want to create a tag, or click Edit to modify an existing tag. The Data Tag Details dialog box displayed in Figure 3.17 opens. When you create a tag, you have to select a Source, a Parameter and Data Manager Status from the lists.
Extract tab If you select the None option on the Extract tab, Data Manager will not extract or generate new data for the tag. If the data source type is OLE DB, you must define an SQL expression. Select the SQL option, and then specify what data to be extracted from the data source and transferred to the relevant tag in Data Manager. You can specify a default SQL on data source level, or you can define a specific SQL on tag level, which will mean that the SQL on tag level is used for the extraction. If you want to use the algorithm source in Data Manager, you must select the Arithmetic or the Reduction option on the Extract tab. Then Data Manager can do mathematical calculations by use of all other tags. If you want further information about arithmetic expressions, please see APPENDIX C for a complete list of allowed arithmetic expressions and operators. Figure 3.17 displays how to add the measurements from two tags and store the result in the arithmetic data source. Tag names in Arithmetic must be enclosed in square brackets ([ and ]). When arithmetic expressions are calculated, the individual tags will be replaced by the latest preprocessed value. The result will be used as a raw value for the arithmetic tag, and then you can do configurations as for normal tags, for example data conversion.
Seven Technologies
Figure 3.17 Defining Arithmetic on the Extract tab in the Data Tag Details dialog box
If you want perform a data reduction, select the Reduction option. You can choose three types of reduction expressions; that is time series minimum, average and maximum. The expressions are defined as follows: TSmin(['Tag'], 'Period', 'Time Assignment') TSavg(['Tag'], 'Period', 'Time Assignment') TSmax(['Tag'], 'Period', 'Time Assignment')
These reduction functions will each create a time series, in which the time interval equals the 'Period' for the selected 'Tag'. 'Time Assignment' values are "L", "C" and "R", which indicates if the reduced data time tag will be justified left, centre or right of the reduction interval. Figure 3.18 displays the data reduction "TSmin([q1],5,C)". This expression will create a time series with five minute intervals starting at midnight. Every five minutes the data is reduced to one value only, in this case to the minimum value. The reduced value is then added to the timestamp in the centre of the interval. If an interval does not contain a value, the preceding reduced value will be reused.
Seven Technologies
Figure 3.18 Defining Reduction on the Extract tab in the Data Tag Details dialog box
Conversion tab You can convert raw data from any data source directly to another unit, if you enter conversion factor and offset values on the Conversion tab as shown in Figure 3.19.
Seven Technologies
Figure 3.19 The Conversion tab in the Data Tag Details dialog box
Check tab After converting the data, you can configure data checks. In the Absolute value area, you must enter a minimum and a maximum value for data conversion. If the converted value is not within the given interval, it will be emulated. To enable the Absolute value feature, make sure that you have selected the Active check box. In the Rate of change area, a minimum and a maximum value are used for checking that the converted value has changed within the given interval since the previous converted value. If not, it will be emulated. To enable the Rate of change feature, make sure that you have selected the Active check box. When you enable both the Absolute value and the Rate of change options by selecting the Active check boxes, data will be emulated, if either of the checks fails.
Seven Technologies
Figure 3.20 The Check tab in the Data Tag Details dialog box In Figure 3.21 below you can see an overview of the data flow in connection with data checks.
Seven Technologies
Emulation tab Three methods for emulation are available in Data Manager (see Figure 3.22): 1. Default value Measurements are substituted by a default value that remains constant. 2. Average value Emulations are based on the average of previous values, which have not been emulated. Emulated
Seven Technologies
Figure 3.22 The Emulation tab in the Data Tag Details dialog box
Seven Technologies
Other tab The Store historical data check box is selected by default as displayed in Figure 3.24. The selection ensures that historical data is saved in the database, thus making it available in other applications. If you do not want to save historical data, clear the Store historical data check box. If the check box is selected, enter an interval in minutes in the Storage interval (minutes) box, and select the Store historical data in packets check box, if you want Data Manager to save the preprocessed data in compressed data packets in the database. Check the Update client box in the OPC area, if you want the converted data from a tag to be available for the OPC Client.
Seven Technologies
Figure 3.24 The Other tab in the Data Tag Details dialog box
3.2.3
CYCLIC BUFFERS
A cyclic buffer is a time series dynamically maintained by the data preprocessor (see section 3.3.1). The time series is made up of time tags of identical intervals, for example one hour. When enabled, the preprocessor maintains all enabled buffers by updating the minimum, maximum and average value where the time tag corresponds to the actual time. A buffer may contain any number of SCADA tags to be maintained as a uniform time series. If you define a historical period in weeks, the buffer tags are calculated based on minimum, maximum and averages over this period. A historical offset may be defined, e.g. a historical period of 2 and a historical offset of 3 will go 3 weeks back in time and then use the 2 weeks before that to calculate the buffer. In the Configure menu, click Cyclic Buffers to open the dialog box displayed in Figure 3.25. In the Cyclic Buffers dialog box, you can: Select a buffer from the Buffer name list, which contains all defined buffer names Click the New button and type a name, if you want to add a new buffer to the configuration Click the Rename button to type a new name for an existing buffer Click the Copy As button to use an existing buffer as a "template" for creating a new buffer The Buffer container box includes a list of all the SCADA tags included in the displayed buffer. If you want to delete a tag from the current buffer, select the relevant tag in the Buffer container box, and click the Remove selected tags from buffer button. If you want to delete more than one tag, hold down the CTRL key while you select the tags to be deleted, and then click Remove selected tags from buffer. To add a SCADA tag to the current buffer, select the tag from the Select tag to add to buffer list, and
Seven Technologies
3.2.4
PREFERENCES
In the Configuration menu, click Preferences to open the dialog box displayed in Figure 3.26. In the Preferences dialog box, you must define a number of general parameters on the four tabs before the system can be configured, such as system log, auto start, default substitution rules and historical data and backup definitions. The most important parameters are described below.
Seven Technologies
Seven Technologies
Seven Technologies
Select the Write preprocessed data check box, if you want Data Manager to save preprocessed data to an ASCII file. Type a file name in the box below the check box, or browse for a file by clicking the button preprocessing cycle. . The file is overwritten in connection with each
Executable Files tab You must define, if you want to execute the file(s) prior to or after each preprocessing cycle. Type the file name(s) in the File box(es) within the Pre-executable files area, to have the file(s) executed prior to a
Seven Technologies
In the Arguments boxes, you may add program specific parameters, which will be used when the relevant file is executed. Select the Enabled check box for each file to enable the settings for that file. Selecting the Wait for process to finish check box indicates that the preprocessor will temporarily stop before handling measurements. You can select the Halt on errors check box to ensure that Data Manager stops the preprocessor, if the executable file generates errors.
Backup tab To prevent poor performance and loss of data you can set Data Manager to automatically back up the database in a compressed format and reset the current database. As the database is not available during file compression, the preprocessor will temporarily stop during the process. Select the Automatic Access database backup check box, if you want Data Manager to automatically backup the Access database. In the Backup directory box, type a folder name or browse for a folder by clicking the button In the Backup interval area, select one of the three options to set a regular backup interval. Data .
Seven Technologies
In the Run menu, click Preprocessor to open the dialog box displayed in Figure 3.31. If you do not see the Schedule area, click the Scheduler button.
Seven Technologies
Select the Schedule option if you want to run the preprocessor in scheduler mode. In Scheduler, you can define up to four times daily for the preprocessor to start. Scheduling is typically used if you want to transfer data in groups from a SCADA system to Data Manager. In the Interval (in minutes) box, specify the interval between each preprocessing cycle. If you set the time to "0", the preprocessor will run only once when enabled. If an s follows the numerical value, Data Manager will interpret the interval as seconds. If the number entered is a negative, the preprocessor will run with no delay between the preprocessing cycles. If you want to define a start time for the preprocessor, select the Start at check box and specify a start time and date by selecting from the three lists within the Start at area. When the preprocessor is running, a status window with process details is displayed. Click the Start button to start the preprocessor. Double-clicking the Run Preprocessor dialog box opens the Preprocessor Status dialog box displayed in Figure 3.32. For more information about data preprocessing, see section 3.2.4.
Seven Technologies
When the preprocessor is running, it maintains average values for each individual tag on the basis of the amount of data specified on the Check tab in the Data Tag Details dialog box. You can reset calculation of average values by using this feature for resetting the values. Point to Reset in the Tools menu, and click Average Values to delete all average values. This option may be used, if the system has been restarted and you want to reload the average values that are currently running.
3.4.2
Point to Reset in the Tools menu, and click Table Locks to reset all table locks and timeout table availability.
3.4.3
Point to Reset in the Tools menu, and click Cyclic Buffers to remove the current cyclic buffer values.
3.4.4
Point to Initialize in the Tools menu, and click Cyclic Buffers to initialize cyclic buffers.
Seven Technologies
3.5.1
MEASUREMENTS
In the View menu, click Measurements to open the dialog box displayed in Figure 3.33. The Measurements dialog box displays a simple table of all active SCADA units with the latest received raw measurements and the corresponding preprocessed values. After each preprocessing cycle and when you press the Refresh button, the table is automatically updated. If you double-click a tag name in the DM Tag column, a graph with a time series plot for the selected unit opens (see section 3.5.3). Measurement details may be displayed in different ways. If you select a cell in the table and click the Apply Filter button, only data entries with this specific text or value are displayed. Example: In the Parameter column, select a cell containing the parameter Pressure. Click Apply Filter. Now you will only see data entries that contain Pressure in the Parameter column.
Clicking the Legends button opens the dialog box displayed in Figure 3.34. The Raw status legends and the DPP status legends boxes provides you with detailed information about the numerical codes
Seven Technologies
3.5.2
HISTORICAL DATA
If you store historical data within the database, they can be displayed in the Historical Data dialog box displayed in Figure 3.35. In the View menu, click Historical Data. Data is displayed chronologically in groups listing the oldest first. The dialog box includes several options for limiting the number of rows displayed. You can define the list of historical data to be displayed by selecting one of the options in the Data Period area. For instance, select Day to see data 24 hours back in time, or select Month to see data a month back in time (that is 30 days of 24 hours). You may also define your own settings if you select the User defined option and define a time interval by typing date and/or time values in the Start and End boxes using the format "yyyy-mm-dd hh:mm", for example "2005-10-30 08:30". In the Filter area, you can narrow down the list of historical data even more by selecting from the Data source and Parameter lists. Click Apply to enable a filter, and click Reset to undo the selection(s). When you have specified how historical data is to be displayed, click Refresh. For more information about the Legends button, see section 3.5.1 and Figure 3.34 above.
Seven Technologies
3.5.3
DATA GRAPH
Data Manager can plot graphs on the basis of the historical time series of tags. In the View menu, click Data Graph to open the dialog box displayed in Figure 3.36. select a tag to plot in the Tags list. In the Plot period area, define the list of historical data to be displayed. For instance, select Day to see data 24 hours back in time, or select Month to see data a month back in time (that is 30 days of 24 hours). You may also define your own settings if you select the User defined option and define a time interval by typing date and/or time values in the Start and End boxes using the format "yyyy-mm-dd hh:mm", for example "2005-10-30 08:30". In the Include area, select if want the graph to display DPP data, Raw data or DPP and Raw data. In the Filter area, you can narrow down the list of historical data even more by selecting from the Data source and Parameter lists. Click Apply to enable a filter, and click Reset to undo the selection(s). To magnify a specific part of the graph, click and hold down the mouse button, and then drag the cursor to select the area you want to magnify. When right-clicking the graph, a shortcut menu appears. The shortcut menu is displayed within the Data Graph dialog box in Figure 3.36 below.
Seven Technologies
Figure 3.36 The Data Graph dialog box and the shortcut menu
If you double-click the graph, you can open the Main Title Customization dialog box that contains the same options as the shortcut menu.
Figure 3.37 The Main Title Customization dialog box (the Color tab)
Seven Technologies
3.5.4
BUFFER GRAPH
When you point to the graph and click the right mouse button, a shortcut menu appears. The shortcut menu is displayed with the Buffer Graph dialog box in Figure 3.39 below.
Seven Technologies
Figure 3.39 The Buffer Graph dialog box and the shortcut menu
Double-clicking the Buffer Graph dialog box opens the Main Title Customization dialog box (see Figure 3.37 above). Double-clicking the Main Title Customization dialog box opens the Export Main Title dialog box (see Figure 3.38 above)
3.5.5
EVENT LOG
In the View menu, click Event Log to open the dialog box displayed in Figure 3.40. All events that are generated within Data Manager and considered relevant for the operator are stored in the event log.
Seven Technologies
Double-clicking a row in the Event Log dialog box opens the detailed Event Viewer displayed in Figure 3.41. In the Event Viewer, you can copy events to the clipboard and print and delete events. Click the Previous and Next buttons to see the different events.
3.5.6
SYSTEM LOG
All events generated within Data Manager are stored in the system log as a .txt file. This log is mainly used when tracking system errors or inconsistencies. In the View menu, click System Log to open the log file in Notepad.
Seven Technologies
3.6.1
CASCADE
3.6.2
TILE HORIZONTALLY
In the Window menu, click Tile Horizontally to sort all open views horizontally.
3.6.3
TILE VERTICALLY
In the Window menu, click Tile Vertically to sort all open views vertically.
3.7.1
The Data Manager Help is to be released December 2005. Please refer to this User Guide until release.
3.7.2
SUPPORT
In the Help menu, click Support to see contact information for 7Ts support department.
3.7.3
ABOUT
In the Help menu, click About to see information about Data Manager 2.0.
Seven Technologies
OPC CLIENT
4.1 OPC INTRODUCTION
The OPC communication is based on the OPC (OLE for Process Control) protocol supported by some SCADA systems. If supported, the SCADA system will include an OPC server enabling OPC clients to subscribe on SCADA objects, which is then updated on changes (event driven). The communication is two-ways allowing exchange of data to and from SCADA.
OPC data
Serve nam Item Send data Receive dat
Data Manager DB
SCAD configuration Ra data Preprocessed data Historical data Cyclic buffer
Data Manager
Processing module
Seven Technologies
OPC Browser
OPC data
Figure 4-2 Description of application and databases used in the OPC configuration
Group Edit
Seven Technologies
Read CSV
Activation of this menu item will cause the program to read the configured CSV file including previously defined subscription tag names. The file name is fixed to DMOPC.CSV. The location is manually defined in registry section: [HKEY_CURRENT_USER\Software\7-Technologies\DMOPC\V2.00.00\Environment] Item: "Config Directory".
Write CSV
Activation of this menu item will cause the program to save the configured CSV file. The file name is fixed to DMOPC.CSV. The location is manually defined in registry section: [HKEY_CURRENT_USER\Software\7-Technologies\DMOPC\V2.00.00\Environment] Item: "Config Directory".
Exit
Connect
A connection to an already running OPC server is established. The user has to define the relevant host name and server name in the dialog shown below.
Disconnect
Seven Technologies
Get status
The actual status of the OPC connection is displayed via a dialog as shown below.
Edit
See menu item Read CSV. See menu item Save CSV.
Seven Technologies
Step 1: Configure registry Registry must be configured manually using the following entries: Entry [HKEY_CURRENT_USER\Software\7-Technologies\DMOPC] [HKEY_CURRENT_USER\Software\7Technologies\DMOPC\V2.00.00] [HKEY_CURRENT_USER\Software\7Technologies\DMOPC\V2.00.00\Environment] "Workdirectory"="C:\\7t\\Databaser" "Config Directory"="C:\\7t\\Databaser" Description Section name Section name Section name Database location for Data Manager database and the basic OPC database. Location of configuration files for DMOPC and OPCBROWSE. Specifically location of the CSV file. File name of OPC data DB. Section name Defines log level of OPC communication. The log level is defined as an integer from 0 to 100. 0 defines that only fatal errors are reported in the log file. Greater values will give increasingly more information. The log file includes two files named drvlog0.log and drvlogx.log located in the configuration directory. Section name Internal setting. Internal setting. Internal setting. Internal setting. Internal setting.
Seven Technologies
Step 2: Configure Data Manager Source Define a Data Manager source with a user defined name and connection type OPC. An example is displayed in Figure 4-5.
Step 3: Configure Data Manager tag names Configure the data tag names using menu item Configure / Data Tags. Define relevant names, OPC source and remember to check field OPC Update client if a value should be transferred from Data Manager to SCADA. A typical configuration screen is displayed in Figure 4-6. The remaining property pages of the configuration are standard.
Seven Technologies
Step 4: Configure OPC database via OPC Browser 1. Start the program OPC Browser. 2. Connect to the relevant OPC server using menu item Connect. 3. Activate the menu item Read CSV to load all previously defined tag names. 4. Select a SCADA tag in the left column via a double click and fill in the correct Data Manager tag name in the field named User ID.
5. Repeat the last item 4 until all tag names are defined.
Seven Technologies
Step 5: Start Data Manager Start the Data Manager preprocessing cycle. Step 6: Check communication Cross check the data communication from SCADA to the Data Manager (view measurements). A typical error is conflicting tag names between Data Manager and the OPC Browser.
Seven Technologies
MinValue MaxValue ApplyAbsCriteria DefaultValue ConvFac Offset SudStatusID AdapFlowCor MaxAdapFlowCor MinChange MaxChange ApplyChangeCriteri a AveragingCycles SubstituteScadaID SubstituteOffset SudstituteFactor EmulationMethodID Comment
Single Single Yes/No Single Single Single Integer Single Single Single Single Yes/No Integer Text Single Single Integer Memo
4 4 1 4 4 4 2 4 4 4 4 1 2 80 4 4 2 -
Seven Technologies
Below you can see an example of how data line configurations are specified.
# SCADA UNIT DEFINITION EXPORTED BY 7T-DM Version 1.1 Rev.42 - 20/09/2001 13:40:42 # TOTAL NUMBER OF UNITS:11 "ScadaID";"AdaptionZoneID";"ObjectName";"ObjectTypeID";"DataTypeID";"LczName";"MinValue"; "MaxValue";"ApplyAbsCriteria";"DefaultValue";"ConvFac";"Offset";"SudStatusID";"AdapFlowCor"; "MaxAdapFlowCor";"MinChange";"MaxChange";"ApplyChangeCriteria";"AveragingCycles"; "SubstituteScadaID";"SubstituteFactor";"SubstituteOffset";"EmulationMethodID";"Comment" "P702-01Q";"P";"6166";1;1;"702";-40;-1;1;-9;-1;0;0;1;0;-1000;1000;0;12;"P702-01Q";1;0;1;"" "P709-01NQ";"P";"L-4286";2;1;"709";999;1000;1;0;1;0;0;1;0;-1000;1000;0;12;"P709-01Q";-1;0;2;"" "P709-01Q";"P";"L4286";2;1;"713";1;40;1;25;1;0;0;1;0;-1000;1000;0;12;"P709-01Q";1;0;1;"" "P709-02NQ";"P";"P-2192";2;1;"721";999;1000;1;0;1;0;0;1;0;-1000;1000;0;12;"P709-02Q";-1;0;2;"" "P709-02Q";"P";"P-2192";2;1;"709";0.1;20;1;1.5;1;0;0;1;0;-1000;1000;0;12;"";1;0;1;"" "P710-01Q";"P";"1000";1;1;"710";-100;-5;1;-50;-1;0;0;1;0;-1000;1000;0;12;"P710-01Q";1;0;1;"" "P711-01NQ";"P";"L-0391";2;1;"711";999;1000;1;0;1;0;0;1;0;-1000;1000;0;12;"P711-01Q";-1;0;2;"" "P711-01Q";"P";"L-0391";2;1;"710";1;70;1;30;1;0;0;1;0;-1000;1000;0;12;"";1;0;1;"" "P712-01NQ";"P";"P-2185";2;1;"712";999;1000;1;0;1;0;0;1;0;-1000;1000;0;12;"P712-01Q";-1;0;2;"" "P712-01Q";"P";"P-2185";2;1;"711";1;20;1;8;1;0;0;1;0;-1000;1000;0;12;"P712-01Q";1;0;1;"" "P713-01Q";"P";"4000";1;1;"713";-80;-1;1;-35;-1;0;0;1;0;-1000;1000;0;12;"";1;0;1;""
Seven Technologies
Below you can see an example of how logger data line files are specified.
"TIME";"M16KALNPRE";"M14KALNFLO";"M15KALNFL;"M11LBYPRE";"M18KALNFLO";"M2LBYFLO" 01/06/2001 00:00;53.685;5.179;-5.208;60.637;1.537;1.526 01/06/2001 00:05;53.578;5.209;-5.167;60.776;1.529;1.525 01/06/2001 00:10;53.798;5.177;-5.179;60.261;1.53;1.532 01/06/2001 00:15;53.609;5.178;-5.208;60.686;1.529;1.523 01/06/2001 00:20;53.993;5.203;-5.192;60.744;1.531;1.532 01/06/2001 00:25;53.923;5.2;-5.214;60.731;1.534;1.53 01/06/2001 00:30;53.741;5.188;-5.168;60.303;1.523;1.527 01/06/2001 00:35;53.936;5.192;-5.184;60.393;1.522;1.534 01/06/2001 00:40;53.902;5.167;-5.174;60.793;1.525;1.524 01/06/2001 00:45;53.858;5.193;-5.169;60.71;1.529;1.527 01/06/2001 00:50;54.148;5.207;-5.205;60.743;1.531;1.526 01/06/2001 00:55;54.311;5.201;-5.184;60.729;1.534;1.537 01/06/2001 01:00;54.356;2.862;-2.883;60.428;1.178;1.174 01/06/2001 01:05;54.367;2.859;-2.868;59.957;1.17;1.17 01/06/2001 01:10;54.268;2.866;-2.87;60.249;1.175;1.17 01/06/2001 01:15;54.361;2.871;-2.87;60.165;1.174;1.169 01/06/2001 01:20;54.44;2.866;-2.856;59.966;1.17;1.168 01/06/2001 01:25;54.115;2.856;-2.866;60.184;1.169;1.175 01/06/2001 01:30;54.485;2.863;-2.882;59.9;1.17;1.176 01/06/2001 01:35;54.04;2.878;-2.873;60.165;1.174;1.168 01/06/2001 01:40;54.484;2.873;-2.882;60.109;1.177;1.173 01/06/2001 01:45;54.446;2.861;-2.864;60.275;1.175;1.171
Seven Technologies
Seven Technologies
Function abs(x) atn(x), atan(x) cos(x) sin(x) exp(x) fix(x) int(x) dec(x) ln(x) log(x) rnd(x) sgn(x) sqr(x) cbr(x) tan(x) acos(x) asin(x) cosh(x) sinh(x) tanh(x) acosh(x) asinh(x) atanh(x) root(x;n) mod(a;b) fact(x) comb(n;k) perm(n;k) min(a;b) max(a;b) mcd(a;b), gcd(a;b) mcm(a;b), lcm(a;b) erf(x) gamma(x) gammaln(x) digamma(x) beta(x;y) zeta(x) ei(x) csc(x) sec(x) cot(x) acsc(x) asec(x) acot(x) csch(x) sech(x) coth(x) acsch(x) asech(x) acoth(x)
Description Absolute value Inverse tangent Cosine Sine Exponential Integer part, no rounding Integer part, rounding Decimal part Logarithm natural Logarithm decimal Random Sign Square root Cube root Tangent Inverse cosine Inverse sine Hyperbolic cosine Hyperbolic sine Hyperbolic tangent Inverse hyperbolic cosine Inverse hyperbolic sine Inverse hyperbolic tangent N'th root Integer division remainder Factorial Combinations Permutations Minimum of two numbers Maximum of two numbers Maximum common divisor of two numbers Minimum common multiple of two numbers Error, Gausss Gamma Logarithm gamma Digamma Beta Zeta, Riemmans Exponential integral Cosecant Secant Cotangent Inverse cosecant Inverse secant Inverse cotangent Hyperbolic cosecant Hyperbolic secant Hyperbolic cotangent Inverse hyperbolic cosecant Inverse hyperbolic secant Inverse hyperbolic cotangent
Note
Seven Technologies
Description Radiant conversion Degree (90) conversion Degree (100) conversion Rounding with d decimals
Note
Table C2 Arithmetic functions Constant h# K# q# A# c# mu# eps# me# mp# mn# R# G# g# Description Planck Boltzmann Elementary charge Avogadro Speed of light Permeability of vacuum Permittivity of vacuum Electron rest mass Proton rest mass Neutron rest mass Gas constant Gravitational constant Acceleration due to gravity Note 6.6260755e-34 Js 1.380658e-23 J/K 1.60217733e-19 C 6.0221367e23 mol-1 2.99792458e8 m/s 12.566370614e-7 Tm/J 8.854187817e-12 C/Jm 9.1093897e-38 kg 1.6726231e-27 kg 1.6749286e-27 kg 8.31451 mkg/sk mol 6.672e-11 m/kg s 9.80665 m/s
Seven Technologies