Beruflich Dokumente
Kultur Dokumente
Applications User archives can be used for a wide variety of applications (see figure above).
Basics WinCC User Archive is a database system that users can configure themselves for
their own purposes.
WinCC User Archives provides two type of database tables:
Archive Archives are database tables in which users can create their own data fields.
Archives are used for the storage of data and provide database access to this
data.
Views Views take data from the archives and are used to put data together for example
to obtain an overview of product groups.
The data of a view can also be edited in runtime; the modified data is then entered
in the original archive.
Access to user archives with:
Table window
Internal functions
API functions (described in the ODK package)
ODBC / SQL
Communication with the controller via tags
Communication with the controller via raw data
Fields For the selected user archive, the fields of this archive are shown on the right.
The most important properties of a field are:
- Name
- Type (character string, number (integer), number (float), number (double) or
date/time)
- With a character string, the length can be defined.
- With numbers an optional minimum value and a maximum value can be added.
- The following option can also be enabled:
Value required = field cannot be empty
Unique value = WinCC monitors the uniqueness of entries
With index = database is given indexes
If "unlimited" was configured, and upper limit is set by WinCC. These system limits
are described in WinCC help in Performance data -> User archives.
The archive data is stored in the runtime database. This means that both during
the configuration (see above) and during WinCC runtime data can be entered,
deleted or changed by the relevant control.
Delete, copy,...
Deleting always involves one or more rows (data records).
Read/write tags
Data exchange with the controller is explained on the following pages.
Import or export archive
All displayed data records (filter) are exported to the UA directory within the
WinCC project. The name of the CSV file can be changed in a dialog.
When importing, a CSV file is also read in from the UA directory.
Export With this button, you export all or selected runtime data to a CSV file. If the option
"Display dialog" is active, a dialog opens in which you can view the settings for
exporting and can start the export. With the suitable authorization, you are also
allowed to select the file and the directory for the export. If no dialog is displayed,
the export of the data to the preset file starts immediately.
As an alternative the addressing can be via the control tags "Field" and "Value".
Field The archive field (column label e.g. Ingredients).
Value The archive field value (e.g. 'Flour')
For the example above, the following values would need to be written to the
control tags:
ID = 0 Field = product name Value = KolaMix
and afterwards Job = 7