show the entry list

WinCC flexible ES -- Working with projects -- Importing / exporting data 
How can you transfer a WinCC flexible and WinCC (TIA Portal) configuration without configuration software to an operator panel (Pack&Go)? 
How can you import/export configuration data (discrete and analog alarm messages, tags and connections) from/to a CSV file in WinCC flexible 2008? 
How can you create flexible text lists in WinCC flexible for export by drag-and-drop? 
How can you import tags from data blocks and from the symbol table into WinCC flexible version 2005 and higher? 

How can you transfer a WinCC flexible and WinCC (TIA Portal) configuration without configuration software to an operator panel (Pack&Go)?Go to beginning
Part number:

Description
With WinCC (TIA Portal) and WinCC flexible as from 2008 SP1 you can use the "Pack&Go" function to create a file with which you can transfer an HMI configuration to an operator panel without any configuration software.

The "Pack&Go" file contains:

  • The compiled project
  • A program for transferring the project to the operator panel

The Online Help of WinCC (TIA Portal) and WinCC flexible 2008 tells you in detail how to create a "Pack&Go" file and transfer it to an operator panel.
WinCC Advanced > Visualize processes > Compile and download > Compile and download project > Create "Pack&Go" file

Typical application
A configuration office creates a project for a new operator panel. The configuration engineer from the configuration office does not have direct access to the plant. Therefore, the configuration engineer sends the "Pack&Go" file per e-mail to his/her contact on site.
The contact unpacks the "Pack&Go" file on a PC that is linked to the operator panel over a network. Then he/she transfers the project from the PC to the operator panel.


Fig. 01

Notes

  • The version of the configured operator panel must match the operating system image of the operator panel. If necessary use ProSave to do an OS update.
    More information about doing an OS update is available in
    Entry ID: 19701610.
  • If the project is to be transferred via USB, you need a USB master-master cable. More information about USB transfers is available in Entry ID: 19109408
  • If the project is to be transferred over PROFIBUS, the hardware interface and driver must be installed on the transfer PC. The driver for an MPI/PROFIBUS card is also installed by ProSave, among others. You can download ProSave in Entry ID: 10347815
  • Install ProSave if you want to transfer a "Pack&Go" file of WinCC (TIA Portal) V11 from a computer to an operator panel. You can download ProSave in Entry ID: 10347815
  • If you have Vista installed on your transfer PC and you want to transfer the project to an operator panel running the Windows CE operating system, you need administrator rights.
    It is not possible to use "Pack&Go" for transfer via Routing.

Operator panels supported
 
Micro Panels   OP 73micro
  TP 177 
Mobile Panel Mobile Panel 177
  Mobile Panel 277
  Mobile Panel 277 IWLAN
  Mobile Panel 277 IWLAN V2
Basic Panel

KP300 Basic

 

KTP400 Basic

 

KTP600 Basic

 

 KTP1000 Basic

 

TP1500 Basic

Panel OP 73, OP 77A, OP 77B
  OP / TP 177
  OP / TP 277
Multi Panel MP 177
  MP 277
  MP 377
Comfort Panel KTP400 Comfort
  KP400 Comfort
  TP700 Comfort
  KP700 Comfort
  TP900 Comfort
  KP900 Comfort
  TP1200 Comfort
  KP1200 Comfort
  TP1500 Comfort
  KP1500 Comfort
  TP1900 Comfort
  TP2200 Comfort

Additional Keywords
Panels, Project download, Pack & Go

How can you import/export configuration data (discrete and analog alarm messages, tags and connections) from/to a CSV file in WinCC flexible 2008?Go to beginning
Part number:

Description:
In WinCC flexible 2008 you can import and export connections, tags and analog and discrete alarm messages from/to a CSV file. You can changed exported CSV files individually by adding tags, for example. You can then import these CSV files again into an existing project.

Contents:
1. Export messages, connections and tags
2.Open and edit CSV file
    2.1 Edit CSV file with Excel
    2.2 Edit CSV file with Notepad
3. Import messages, connections and tags
4.Information on errors and error messages
    4.1 Information on error messages in the output window during importing
    4.2 Information on errors after importing

Note:
In older versions of WinCC flexible, you can only import/export messages via mass data that is already in WinCC flexible. More information is available in Entry ID: 21976672.

1. Export messages, connections and tags
The table below explains how to export in a CSV file.
 
No. Procedure
1 Open WinCC flexible project  
  • Start WinCC flexible.
  • Create a new project or open an existing project.
2 Optional: create connection
If you have already created a connection, you can skip this point and go directly to Point 3.
  • Click on "Communication > Connections".
  • Specify the relevant connection parameters.


Fig. 01

3 Create discrete or analog alarm messages
If you have already created discrete or analog alarm messages, you can skip this point and go directly to Point 4.
  • Open the editor for discrete and analog alarm messages by clicking in the project tree on "Alarm Management > Discrete Alarms" or "Alarm Management > Analog Alarms" (1).
  • Create discrete or analog alarm messages (2).
  • Link the trigger tags (2) to the relevant messages.

    Note:
    You can also configure multilingual discrete and analog alarm messages. For this, multiple languages must be selected in the project tree under "Language Settings > Project Languages" (3). You select the project's editing language in the "Language settings" selection list in the toolbar (4).

Fig. 02
4 Open CSV export dialog
  • In the menu you click on "Project > Import / Export... > CSV Export...".

    => The CSV export dialog opens - see Fig. 04.


Fig. 03

5 Export CSV files
  • Select the appropriate operator panel (1) if there are multiple operator panels in the WinCC flexible project.
  • Select the output folder of the CSV file (2).
  • Enable the desired selection boxes (3) if not already done.
  • Click on "Export" (4).

    => All the selected "types" are exported separately to a CSV file.


Fig. 04

2. Open and edit CSV file
Since the CSV file might contain multilingual analog and discrete alarm messages in Unicode format, you need a Unicode-compatible editor to edit the CSV file. You can use "Excel" or "Notepad", for example, for editing.

Note:
The editor used must not replace the tab character with a space, because the tab character is used as a separator. You can use other separators for import (tab, comma, period, semicolon and user-defined separators).

2.1 Edit CSV file with Excel
Excel is convenient for editing the CSV file.
 
No. Procedure
1 Open CSV file with Excel
  • For example, open the CSV file "Alarm.csv" with Excel.

    Note:
    Since the CSV file has no layout data, the width of the columns is not optimum.

    Remedy:
    Select all the cells or use the key combination "Ctrl + A". In the menu you click on "Format > Column > Autofit Selection".


Fig. 05

2 Add discrete alarm message 
  • Add a discrete alarm message including all the necessary attributes.
     
    Attributes Example
    Alarm type D
    Alarm number 9
    Alarm class Alarms
    Trigger tag Discret Alarms
    Trigger bit number 8
    Acknowledgment HMI tag --
    Acknowledgment HMI tag bit number --
    Acknowledgment PLC tag --
    Acknowledgment PLC tag bit number --
    Alarm group --
    Reported 0
    Text[de-DE] de-DE=Bitmeldung Meldetext 09
    Text[en-US] en-US=Discrete Alarms Message 09
    Field info[01] --
    Infotext[de-DE] de-DE=
    Infotext[en-EN] en-US=
    Table 01 - Discrete alarm message attributes

    Note:
    If you want to add another language, then you should add to language beforehand in the WinCC flexible project and then export the CSV file. You can also add more languages to the CSV file manually.

3 Optional: add country code automatically
If you want to add multiple message texts to the CSV file, then in Excel, you can also have the language-specific country codes added automatically (e.g. "de-DE=").
  • Mark the relevant columns in the Excel table.
  • In the menu you then click on "Format > Cells...".
  • In the "Number" tab you select "Customer" under "Category:".
  • Under "Type:" you enter the relevant country code with the @ character as suffix.
  • Click on "OK".
  • Enter a text without country code prefix in the relevant column.

    => The country code is now entered automatically.


Fig. 06

4 Save CSV file
  • Save the changed CSV file in Unicode format.

    Note:
    If you use "File > Save As...", then you must select the file type "Unicode Text (*.txt)" - even for a CSV file. The extension ".csv" must be contained in the file name.
     
  • In the dialog that opens - see Fig. 07 - you click on "Yes" to retain the Unicode features of the CSV file.


Fig. 07

2.2 Edit CSV file with Notepad
If Excel is not available, then you can use the Windows Notepad editor as an alternative.
 
No. Procedure
1 Open CSV file with Notepad
  • For example, open the CSV file "Tag.csv" with Notepad.
  • Add a new tag - see Table 02 - including all the necessary attributes.

    Note:
    Use the tab character set by the tab key as separator between the individual attributes.
     
    Column Attributes

    Example

    A Name Folder\New/Tag
    B Connection Connection_1
    C Address DB 10 DBW 0
    D Data type Int
    E Length --
    F Array element 1
    G Acquisition type 3
    H Acquisition cycle 1s
    I Upper limit --
    J Additional upper limit --
    K Additional lower limit --
    L Lower limit --
    M Linear scaling 0
    N Controller end value scaling 10
    O Controller initial value scaling 0
    P Operator panel end value scaling 100
    Q Operator panel initial value scaling 0
    R Starting value 0
    S Update identifier --
    T Comment (max. 500 characters) --
    Table 02 - Tag attributes

    Note:
    The slashes "\" and "/" are usually used as folder separators for fully qualified names. However, the slashes "\" and "/" can also be valid characters within a name. If folder or slashes are used in tags, then the separator must be specified explicitly upon import.

    Example:
     

    Separator

    Folder Tag
    "/" Folder\New Day
    "\" Folder New/Tag
    "." -- Folder\New/Tag
    Table 03 - Examples of separators


Fig. 08

Remark:
Each line that starts with a double slash "//" or hash mark "#" is a comment line and is not taken into account upon import.

2 Save CSV file
  • Save the CSV file.

    Note:
    If you use "Save As...", then you must select "Unicode" as the coding. The extension ".csv" must be contained in the file name.
     
  • Then close Notepad.


Fig. 09

3. Import messages, connections and tags
The table below explains how to import from a CSV file.
 
No. Procedure
1 Open WinCC flexible project  
  • Start WinCC flexible.
  • Create a new project or open an existing project.
2 Open CSV import dialog
  • In the menu you click on "Project > Import / Export... > CSV Import...".

    => The CSV import dialog opens - see Fig. 11 - in a CSV file.


Fig. 10

3 Add CSV files
  • Select the appropriate operator panel (1) if there are multiple operator panels in the WinCC flexible project.
  • Enable all the relevant types (2) that you would like to import.
  • Add the storage path including the CSV file by clicking on the relevant field (3) and then clicking on the button that is displayed.

    Note:
    You have the option of overwriting existing tags and connections; otherwise only new connections and tags are added.
     
  • In the case of tags, you click on the button (4) for options.


Fig. 11

4 Define import options
You can define special import options for connections and tags.
  • Select the slash "\" as folder delimiter.
  • Click "OK" to close the dialog. 
  • Finally, you click on "Import" (5) - see Fig. 11.


Fig. 12

5

Optional: verify tags and connections

  • You verify the import of connections by clicking on "Communication > Connections".
  • You verify the import of tags by clicking on "Communication > Tags".

    Note:
    Where applicable, also check the subfolders of the imported tags.


Fig. 13

6 Optional: verify discrete and analog alarm messages
  • You verify the import of analog alarm messages by clicking on "Alarm Management > Analog Alarms".
  • You verify the import of discrete alarm messages by clicking on "Alarm Management > Discrete Alarms".


Fig. 14

4. Information on errors and error messages
Below we briefly describe the information provided on possible errors after importing CSV files and error messages displayed in the output window of WinCC flexible.

4.1 Information on error messages in the output window during importing
The error messages in the output window provide information on error location (coordinates) in the CSV file.

<Prefix>: error in line 9 starting at character 12: <error text>

Proceed as follows to locate the error.

  1. Open the defective CSV file with Notepad.
  2. Ensure that automatic line break has been disabled in the menu item "Format > Line break".
  3. Ensure that the status bar has been enabled in the menu item "View > Status bar".
  4. Navigate the cursor to the designated location. You have reached the location when the status bar of Notepad displays exactly the coordinates from the error message. Therefore, in the example described above, line 8, column 12 must be displayed in the right corner of the status bar of Notepad.

Note:
If you want to use a different editor to locate errors, then you must ensure that the tab character is interpreted as a single character (and not as a number of spaces) - if no other separator is used.

4.2 Information on errors after importing
Possible errors after importing:

Error:
After importing CSV files, invalid cells (marked "red") are present - for example, in the trigger tag in the editor for discrete alarm messages.

Cause:
In WinCC flexible, names are used as references to other objects. If a name is not found when importing into WinCC flexible, an open reference is generated and the place where it is used is marked "red". This object is unknown in the WinCC flexible project.

Remedy:
You have two options:

  1. Always import tags and alarm messages together. Here, you must must ensure that the trigger tags used for the discrete and analog alarm messages are contained in the CSV file for tags.
  2. The objects used must be created manually before or after importing (e.g. the trigger tag must be in the tag editor).

Keywords:
CSV export, CSV import, Import text file, Export

How can you create flexible text lists in WinCC flexible for export by drag-and-drop?Go to beginning
Part number:

Text lists:
You can incorporate a text list with 1,000 or 3,500 entries into WinCC flexible by drag-and-drop using the downloadable library in this FAQ. You can easily delete elements in the chosen text list that are not required. After export, it is easy to edit the text list with Excel and then import it back into WinCC flexible.

Library contents:
Using the library you can incorporate a text list with 1,000 or 3,500 entries in WinCC flexible by drag-and-drop. The text lists are only available in German and English (USA). You must select a project language before using the library.

Using the library:
 
No. Procedure
1 Unpacking the archive
Save the archive file in a directory of your choice and unpack it.
2 Starting WinCC flexible
Start WinCC flexible.
3 Opening the library
Right-click to open the WLF file in the library window of the working area with "Library > Open".


Fig. 01

4 Incorporating text lists
Drag the desired library element into the text lists.


Fig. 02

5 Adapting text lists
Adapt the number of entries and the entry names to your requirements.


Fig. 03

6 Optional - Export / Import of the text list
  • Export the text list into a folder of your choice.
  • Edit the text list in Excel.
  • Import the text list back into WinCC flexible.


Fig. 04


Notes:
The import of 1,000 or 3,500 text list entries might exceed the system limits of your PLC. More information on this is available in the Online Help of WinCC flexible under "Contents > WinCC flexible Information System > Performance Features > System Limits > System Limits". The number of entries per text or graphics list is definitive. The import can take several minutes depending on the system used.

Downloads:
The downloads attached contain the archived library with the elements described above for WinCC flexible 2007 and WinCC flexible 2008.

Attachment: TextList_2007.zip ( 1893 KB )

Attachment: TextList_2008.zip ( 3345 KB )

How can you import tags from data blocks and from the symbol table into WinCC flexible version 2005 and higher?Go to beginning
Part number:

Tag Converter
Using the "Tag Converter" tool, you convert the tags from STEP 7 into a format that is suitable for importing into WinCC flexible (-> *.csv format).
Entry ID 22060779 contains the "Tag Converter" tool.
A detailed description of how to proceed is given with the tool.

Symbolic tag connection
If you have integrated WinCC flexible in STEP 7, after importing you can run an automatic symbolic connection of the tags.

  1. For this you mark the newly imported tags and right-click to open the pop-menu.
  2. In the pop-up menu you select the item "New connection...".
  3. In the menu window you select the option as shown in Fig. 01 and acknowledge the entries with OK. The symbolic tag connection is then made. 


Fig. 01

Additional information
Go to http://www.automation.siemens.com/microsite/wincc-flexible-easy for a brief description of the "Tag Import" topic in the form of a film sequence.
For this you select the folder "Experience > Tag Handling > Tag Import".

 Entry ID:22834779   Date:2012-07-02 
I regard this article....as helpfulas not helpful                                 






























related links
With WinCC Engineering V11, how c ...
WinCC Professional V11.0 SP1
WinCC Comfort / WinCC Advanced V1 ...
How can you reset WinCC flexible ...
How can you delete unused tags or ...
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