show the entry list
WinCC -- Configuring alarms and messages -- Archiving alarms and messages
What causes new segments to be created in the WinCC cyclic storages "Alarm Archive", "Tag Logging Fast" and "Tag Logging Slow"?
In WinCC, how can exported archive segments of Alarm Logging or Tag Logging be connected/removed in Runtime?
How do you delete all the messages from the long-term archive?
How do you output message sequence reports to a file?
WinCC -- Configuring Tag Logging -- Importing and exporting archives
Compatibility Tool for Automation and Drive Technology
Can I save an archive cyclically anywhere?
In WinCC, how can exported archive segments of Alarm Logging or Tag Logging be connected/removed in Runtime?
With what are SIMATIC WinCC V7.x, V 6.x and V5.x compatible?
What Smart Tools are there for WinCC?
What options do you have for exporting a database in SIMATIC WinCC?
Why aren't any files created when exporting curve archives?
In WinCC, how can exported archive segments of Alarm Logging or Tag Logging be connected/removed in Runtime?
Part number:

Description
Archived alarms or archived tags are no longer displayed in Runtime if the "overall maximum time period for all alarms" set in the archive configuration is exceeded. In order not to lose the data, you enable backup in the backup configuration. The archive backup saves the data in the target path set in separate segments with the "time for a single segment". When you need the backed-up data again in Runtime, there are various ways of reconnecting the backups of alarms or archive tags with Runtime.

Note
The file names of an archive segment (2 files per segment) always end with a time stamp in the following format: YYYYMMDDhhmm (e.g. 200908112245 for 11.08.2009 at 22:45)

You can find a detailed description of how to connect and remove exported archive backup segments in the WinCC information system in this path:

"Working with WinCC > Archiving process values > Configuration of process value archiving".
"Working with WinCC > Setting up a message system > Archiving messages > Configuration of message archiving".

Note
In the case of automatic connections, it is important that the archive segments are copied individually, one after another, to the corresponding path; otherwise, some of the archive segments may not be detected and connected correctly.  

Connect/disconnect archive segments using a control (as from WinCC 7.0)
New WinCC controls are available as from WinCC 7.0. The following controls connect/remove archive segments in Runtime via the toolbar:

  • Alarm Control
  • Trend Control
  • Table Control
  • Function Control
No. Procedure
1 Start WinCC and in the "Graphics Designer" you open the WinCC picture with the new control.
2 Double-click on the control and go to the "Toolbar" tab.

Note
You can also open the Properties dialog in Runtime via the "Properties Dialog" icon if available.

3 Under "Key Functions", you enable the "Connect Backup" and "Remove Backup" options. Then click on "OK".
4 Connect archive segments in Runtime
  1. Click on the "Connect Backup" icon and then click on the "..." button.
  2. From the list you select the folder containing the archive segments required.
  3. Select the path required from the list presented and confirm the selection with "OK". Multiple selections are possible.

Disconnect archive segments in Runtime

  1. Click on the "Remove Backup" icon.
  2. Select the archive segments no longer required and confirm the selection with "OK". Multiple selections are possible.

Connect/disconnect archive segments using a VBS script
Use the VBS functions below to connect/disconnect archive segments.

  • HMIRuntime.Logging.AlarmLogs.Restore
  • HMIRuntime.Logging.AlarmLogs.Remove
  • HMIRuntime.Logging.DataLogs.Restore
  • HMIRuntime.Logging.DataLogs.Remove

The following download contains a WinCC picture that provides a user interface for connecting/disconnecting archive segments. The download also contains the VBS scripts used also as a txt file.
The WinCC picture "ConnectBackup_V6-2-SP2.PDL" can be used with WinCC V6.2 SP2 and the WinCC picture "ConnectBackup_V7-0.PDL" (Fig. 01) can be used with WinCC V7.0.


Fig. 01

Connect_Archiv-Backup_in_Runtime.zip ( 19 KB )

Notes on the WinCC picture in the download

  • The "ConnectBackup.PDL" picture shown in the picture window is 290 pixels wide and 350 pixels high. The picture window should be the same size, but is fitted automatically.
  • The format specified is valid for input of the time range in the input fields. You can add specification of the time to this format (YYYY-MM-DD hh:mm:ss).
  • You specify the starting time of the first archive segment in the "From:" input field and the starting time of the last archive segment in the "To:" input field. The output format selected is "2999-19-39" and it has to be changed to "2999-19-39 29:59:59" if you add the times as well.
  • In the "Folder" input field you must enter the target path of the archive segments that was set in the archive configuration in Alarm Logging and Tag Logging.
  • When connecting/disconnecting Tag Logging archive segments, all archive segments (from TagLogging Fast and TagLogging Slow) in the specified time range are connected/disconnected.
  • The corresponding buttons are disabled during connection/disconnection.

Notes on the script in the download
The VBS "Restore Method" is used in the script. The Timeout parameter of the "Restore Method" was assigned the value "-1", i.e. there is an endless wait for the segment to be connected. An detailed description of the "Restore Method" and its parameters is available in the WinCC Information System in the path Working with WinCC > VBS for creating procedures and actions > VBS Reference > Methods > Methods N to R > Restore Method.  

Warning
It might take several minutes to connect the archive segments and this puts a load on the Runtime. Therefore it is recommend to connect/disconnect archives at non-critical times.

Using the WinCC picture
To insert the WinCC picture contained in the download in a project follow the instructions below which show how to insert a picture window in a WinCC picture. The WinCC picture "ConnectBackup.PDL" is displayed in this picture window.
 
No. Procedure
1 Start WinCC and open the WinCC picture in which you want to connect/disconnect the archives.
2 Insert a picture window from the object palette ("Smart objects" > "Picture window") into the open WinCC picture.
3  Right-click on the inserted picture window and select the "Properties" menu command.
4 Click on the "Properties" tab and in the tree view open "Picture window" > "Miscellaneous".
5 Make the following settings in the detail window and then close the Properties dialog.
Attribute "Static" column
Foreground Yes
Fit window Yes
Picture name (WinCC 7.0)
Picture name (WinCC 6.2 SP2)
ConnectBackup_V7-0.PDL
ConnectBackup_V6-2-SP2.PDL

Note:
The "ConnectBackup.PDL" picture shown in the picture window is 290 pixels wide and 350 pixels high. The picture window should be the same size, but is fitted automatically.

Version
This entry has been tested with the versions below.
 
Component Product and version designation
PC operating system Microsoft Server 2003 SP2 Windows XP Professional
Standard tools --- ---
HMI software WinCC 7.0 WinCC V6.2 SP2
Options --- ---
Controllers --- ---

Keywords
Subarchives, Archive segment

 Entry ID:40347325   Date:2010-12-10 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Topics
Help
Online Help
Guided Tour