show the entry list
WinCC flexible ES -- Creating HMI configurations -- Using archives
How can you safely copy or move archives in WinCC flexible?
How can you output batch data or archived data via an HMI operator panel?
How do you do long-term archiving with WinCC flexible?
How can you output tags from an SQL database via a trend archive?
What special points are there in the WinCC flexible function "Archive log file" in the "Move" mode?
How do you have csv archive files exported from WinCC flexible RT or a panel displayed graphically on the PC?
How can you have a trend archive displayed continuously updated after calling Trend View?
What do you need to watch out for when naming archives and when archiving tags in a csv file on Windows-based systems?
How can you store tags/data records event-triggered with date and time in a CSV file?
How are tags archived in WinCC flexible STRING?
Which external storage locations are available on the various operator panels (TIA Portal/WinCC flexible/ProTool) for archiving data?
How are tags and alarms logged in WinCC flexible?
How do you log tags in an SQL database and read them out again with WinCC flexible?
How can you have data from a tag log displayed in table form for panels or the WinCC flexible PC Runtime?
How can you read texts from and write texts to a CF card with a Windows CE Panel?
Mobile Panels -- Creating HMI configurations -- Using archives
How can you safely copy or move archives in WinCC flexible?
How can you safely copy or move archives in WinCC Comfort V11/WinCC Advanced V11?
How can you output batch data or archived data via an HMI operator panel?
How do you do long-term archiving with WinCC flexible?
What special points are there in the WinCC flexible function "Archive log file" in the "Move" mode?
How are tags and alarms logged in WinCC flexible?
How can you store tags/data records event-triggered with date and time in a CSV file?
How can you have data from a tag log displayed in table form for panels or the WinCC flexible PC Runtime?
Which external storage locations are available on the various operator panels (TIA Portal/WinCC flexible/ProTool) for archiving data?
Touch Panel / Operator Panel -- Creating HMI configurations -- Using archives
How can you safely copy or move archives in WinCC flexible?
How can you safely copy or move archives in WinCC Comfort V11/WinCC Advanced V11?
How can you output batch data or archived data via an HMI operator panel?
How do you do long-term archiving with WinCC flexible?
What special points are there in the WinCC flexible function "Archive log file" in the "Move" mode?
How are tags and alarms logged in WinCC flexible?
How can you store tags/data records event-triggered with date and time in a CSV file?
How can you have data from a tag log displayed in table form for panels or the WinCC flexible PC Runtime?
Which external storage locations are available on the various operator panels (TIA Portal/WinCC flexible/ProTool) for archiving data?
Multi Panel -- Creating HMI configurations -- Using archives
How can you safely copy or move archives in WinCC flexible?
How can you safely copy or move archives in WinCC Comfort V11/WinCC Advanced V11?
How can you output batch data or archived data via an HMI operator panel?
How do you do long-term archiving with WinCC flexible?
What special points are there in the WinCC flexible function "Archive log file" in the "Move" mode?
How are tags and alarms logged in WinCC flexible?
Archive reports overload with MP270
How can you store tags/data records event-triggered with date and time in a CSV file?
How can you have data from a tag log displayed in table form for panels or the WinCC flexible PC Runtime?
Which external storage locations are available on the various operator panels (TIA Portal/WinCC flexible/ProTool) for archiving data?
How can you store tags/data records event-triggered with date and time in a CSV file?
Part number:

Instructions:
You can store tags/data records in CSV file via a script that is executed event-triggered (e.g. by clicking a button).

At the end of this entry is a sample project in which the functionality is implemented. An MP277 Touch operator panel and PC Runtime were used.

The example can be used on all operator panels that support script functions.
 
No. Procedure
1

Description of scripts used:

"Storage_Tag_V1" script
The script automatically prefixes the archive with the current date.  
The name of the CSV file is "Archive_Date.csv".

The script is structured so that the storage path configured is created automatically at Runtime. Therefore, the storage path does not have to be created manually beforehand on the memory card. The "Script_Storage_Path" script executes this function.

The script is called by a certain trigger event (e.g. clicking a button).
The script first checks whether a memory card (with MP277) is available. If no memory card is available, a system message is issued.
If the file to be archived does not already exist on the data carrier, a new file is created.
An existing file is opened, the data attached and then the file is closed again.

"Script_Storage_Path" script
The "Script_Storage_Path" script splits the specified storage path with the "\" character into separate "subfolders" and writes these one after the other to the storage medium.
The function is executed until there are no more "\" characters in the storage path.
The storage path is transferred as parameter to the "Script_Storage_Path" script
(see Script "Storage_Tag_V1" Lines 29 and 21).

Note:
Do not use the internal memory of the operator panel as storage path. This is not allowed.

The VBS functionality gives you a wide range of options for influencing the display and parameterization. You can change the scripts as you wish to suit your requirements.

The scripts have "comments" that give brief descriptions of the individual steps. Please refer to the WinCC flexible Online Help or relevant specialist literature for detailed information on the functions and commands used.

2 Program extension/modification:
If you wish to change the storage path, for example, or add more tags to application, then make the following changes to the "Storage_Tag_V1" script. You do not have to make any changes to the "Script_Storage_Path" script.

Storage path:
Line 5: You specify the storage path in Line 5.

Extend the table header:
Line 13: You extend the "table header" in Line 13.

System message:
Lines 24 and 43: You change the system message text in Line 24 (MP 277) and Line 43 (PC Runtime).

Change/add tags:
Lines 51 and 57: You change tags and add more tags in Line 51 (MP 277) and Line 57 (PC Runtime).

There is no need for any more changes in the scripts for this application.

3 Function description:


Fig. 01

Assign the relevant values via the IO fields (1).
Click on the button (2) to execute the "Storage_Tag_V1" script and store the data in a CSV file.

General note:
Note the difference in VBS syntax in Windows CE-based devices and PC Runtime. The commands are sometimes different in these operating systems.
Thus the scripts stored in MP277 Touch cannot be tested in the RT Simulation. 
For this, refer to the information in Entry ID 13408815.

Runnability and test environment:
The following table lists the components that have been used to create this entry and verify the function described.
 
Components Product and version designation
PC operating system Microsoft Windows XP SP2
Standard tools -
Engineering tools -
HMI software WinCC flexible 2007
HMI devices MP277 Touch 10"; PC Runtime
Controllers -
Table 1: Creation environment of the download attached

The attached download contains the archived WinCC flexible project for an MP277 Touch operator panel and a PC Runtime configuration with the functions described above.

Attachment 1: Project_01.zip ( 3078 KB )

 Entry ID:28937150   Date:2008-05-13 
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 
Help
Online Help
Guided Tour