You are on page 1of 11

User Archives

SITRAIN
ST-BWINCCS /UserArchives Page 1 Siemens AG © 2007

Contents Page
Objectives …...................................................................................................................................... 2
User Archives ..………...................................................................................................................... 3
WinCC Help (system) ........................................................................................................................ 4
Creating a User Archive ……............................................................................................................. 5
Exporting/Importing a User Archive ...………..................................................................................... 6
Table View of the User Archive Control ...………............................................................................... 7
Communication with the Controller using Tags, Operator Controlled .….......................................... 8
Communication with the Controller using Tags, PLC Controlled …................................................... 9
Sorting in the Existing Columns ..........……....................................................................................... 10
Selection Dialog …............................................................................................................................ 11

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 1 UserArchives
Objectives

- Creating a User Archive

- Creating a Table View

- Creating a Form View

- Accessing a User Archive

- Data Transfer to a Controller

SITRAIN
ST-BWINCCS /UserArchives Page 2 Siemens AG © 2007

Upon completion of this chapter, the participant should be familiar with:

• the advantages of the User Archive.


• the Table View, based on an example.
• the Form View, based on an example.
• the access possibilities, based on an example.
• the communication possibilities, based on an example.
• the application possibilities, based on an example.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 2 UserArchives
User Archives

Advantages of user archives for:


• Recipes
• Batch data
• Production data
• Data storage for data from the controller
• Tool management

Access to user archives through:


• Table window
• Internal functions
• API functions (described in the ODK package)
• ODBC / SQL
• MS Query
• Communication with the controller using tags
• Communication with the controller using raw data
SITRAIN
ST-BWINCCS /UserArchives Page 3 Siemens AG © 2007

General Information The user archives package is available as a WinCC option package.
It consists of
- user documentation
- internal functions
- keydisk for enabling the software.
The user archive software is already included on the WinCC CD.

Applications The user archives can be utilized and applied in a great variety of applications
(see slide above).

Basics WinCC User Archives is a database system which you can configure for your own
requirements.
The WinCC User Archives has two types of database tables :

Archives Archives are database tables in which you can create your own data fields.
Archives are used to store data and offer a database-type access to these data.

Views Views obtain data from the archives and are used to summarize data, in order to
receive an overview of product groups, for example.
The data in a View can also be edited in Runtime. The changed data are
transferred into the original archive.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 3 UserArchives
WinCC Help (System)

WinCC Help

SITRAIN
ST-BWINCCS /UserArchives Page 4 Siemens AG © 2007

WinCC provides you with a powerful help system for the configuration of the user
archive.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 4 UserArchives
Creating a User Archive
Toggle for table window
or. enabling of Wizard

Navigation window
Data window

Table window for


editing online data
records
H1_Heizen

Archive name: H1_Heating

H1
_Heating

_ActualValue

_Setpoint
SITRAIN
ST-BWINCCS /UserArchives Page 5 Siemens AG © 2007

Example Temperature data from three components is to be stored in the visualization


system.
For this, a user archive is configured with the fields :
- H1_Heating
- H1_ActualValue
- H1_Setpoint

Creating an Archive You can create a user archive in the User Archive Editor, Navigation window.
You can use the Wizard to specify:
the archive name with the number of data records, communication parameters,
control tag parameters, authorization and flag parameters.

Creating Archive Fields


In the navigation window “New Field”, you can define the three fields mentioned
above with the help of the Wizard.
Field name, Value, Authorizations and Flags are assigned here.

Note Any changes to user archives only take effect after Saving.

Table Window You can switch on or switch off the table window by F>Edit, O>Runtime Data. In
the Table window, you can assign values to the three configured archive fields.

Control The Control (WinCC User Archive Table Element) is required in the Graphics
Designer for outputting the table element.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 5 UserArchives
Exporting/Importing a User Archive

Archives

Fields
Pro Anwenderarchiv können 500 Felder angelegt werden.

Note:
You can copy Fields and
Archives with Ctrl+C, and
insert them with Ctrl+V
SITRAIN
ST-BWINCCS /UserArchives Page 6 Siemens AG © 2007

Export/Import You can transfer the structure and the data for a new archive with the
Export/Import function.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 6 UserArchives
Table View of the User Archive Control
WinCC Help Copy Insert rows
Cut rows rows Read and Write
Configuration Sorting
tags dialog Print
dialog
Delete
Scroll in table rows Import/Export Selection Export data
window archives (.CSV) dialog
Select data
interface Time base dialog

Floor/Room
Actual room temp.
Setpoint room temp.
LastUser

Last data record change

Note: The ID number is an internal reference of the database. The numbering does not
have to be consecutive. It should not be used for selections.
SITRAIN
ST-BWINCCS /UserArchives Page 7 Siemens AG © 2007

Functions The table window makes it possible to edit the data of the user archive in various
ways :
- Help (start WinCC help system)
- Open online configuration dialog and change parameters
- Flexible data interfacing
- Scroll table window (scroll forward and backward, as well as to the beginning or
end of the archive)
- Delete selected record
- Cut selected rows
- Copy rows
- Insert rows
- Read and write tags (WinCC tags)
- Import/Export archives (CSV format)
- Define sort condition
- Define filter condition
- Print archive contents
- Export data records (CSV format)

Advantages The table window offers simple access to the data of the user archive.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 7 UserArchives
Communication with the Controller using Tags,
Operator Controlled

Runtime

Select

Interface tags

SITRAIN
ST-BWINCCS /UserArchives Page 8 Siemens AG © 2007

You can use tags to make a simple communication with the controller. You have to
take this application into consideration when you assign parameters to the Wizard.
The tags are then generated in the Tag Management.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 8 UserArchives
Communication with the Controller using Tags,
PLC Controlled
Runtime

Interface tags Interface tags

Are supplied by the controller

SITRAIN
ST-BWINCCS /UserArchives Page 9 Siemens AG © 2007

You have to take this application into consideration when you assign parameters
to the Wizard. The tags are then generated in the Tag Management.
Function of the Control Tags
ID The identifier (corresponds to the data record number) of the user archive.
Job Three jobs are possible: reading, writing and delete:
Simatic to Archive =6
Archive to Simatic =7
Delete =8
After the job has been executed there is an error identifier in this control tag:
No error =0
Error = -1
Field The archive field (Column labeling, Ingredients, for example)
Value The archive field value (for example, ‘Flour‘)

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 9 UserArchives
Sorting in the Existing Columns

Runtime

SITRAIN
ST-BWINCCS /UserArchives Page 10 Siemens AG © 2007

Opens a dialog box for setting user-defined sorting of the displayed columns of the
user archive.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 10 UserArchives
Selection Dialog

Runtime

SITRAIN
ST-BWINCCS /UserArchives Page 11 Siemens AG © 2007

Defining of selection criteria for the columns of the user archive to be displayed in
the table.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 11 UserArchives

You might also like