show the entry list
WinCC (TIA Portal) -- Creating HMI configurations -- Working with tags
How can you access tags of an operator panel using an Excel application with WinCC (TIA Portal)?
How can you set up a connection between a LOGO! 0BA7 and an HMI Panel?
How do you specify the runtime of a timer by means of an operator panel and how do you output the remaining runtime?
How do you create dynamic text lists in WinCC (TIA Portal)?
How do you migrate tags from STEP 7 V11 to WinCC V11?
How can you provide new tags for the separate trends of an f(t) trend display by means of a C or VB script in WinCC Runtime Professional V11 and higher?
How do you create dynamic text lists in WinCC (TIA Portal)?
Part number:

Description
You make text lists dynamic by inserting tags or other text lists. The text lists may contain both static and dynamic entries that can be combined arbitrarily.

You can insert dynamic text lists into the following objects:

  • Symbolic IO field
  • Button
  • Switch
  • Text lists

Note
The number of entries in the text lists is predefined by the configuration of the text lists.

Contents
1. Function of dynamic text lists
2. Configuration of dynamic text lists with integrated tags
3. Configuration of dynamic text lists with integrated text lists
4. Download

1. Function of dynamic text lists
The text list entries can be made dynamic by tags or other text lists.
A detailed demonstration of these two options is available in the two sample projects that you can download from this entry.


Fig 01

2. Configuration of dynamic text lists with integrated tags
The table below explains the minimum configuration step by step.
 
No. Procedure
1 Create a SIMATIC WinCC (TIA Portal) project
  • Start SIMATIC WinCC (TIA Portal) and create a new project.
  • Select an operator panel - TP1200 Comfort, for example.
2 Create tags
  • In the project navigation you open the "HMI tags > Show all tags" folder.
  • Create the three following internal tags:
     
    Tag Data type
    Tag_String_1 WString
    Tag_Int_1 Int
    Index_Tag Int


Fig. 02

3 Create the text list
  • Open the "Text and Graphics Lists" folder in the project navigation.
  • Create a text list of the "Value/Range" type.
  • Insert the following entries:
     

    Index

    Entry
    0 Text 0: Static text
    1 Text 1: <Tag : 20, Tag_String_1>
    2 Text 2: <Tag : 5, Tag_Int_1>
    3 Text 3: Static text


Fig. 03

4 Create symbolic IO field
  • In the project navigation you open the "Pictures" folder and create a new picture.
  • Add a symbolic IO field.
  • Connect the text list created to the symbolic IO field.
  • Link the "Index_Tag" tag with the symbolic IO field.


Fig. 04

5 Add I/O and text fields
  • Add three IO fields and three text fields.
  • Arrange the objects as shown in Fig. 05.
  • Link the tags below to the IO fields.
    • "Index_Tag"
    • "Tag_String_1"
    • "Tag_Int_1"
       
  • Insert the following texts for the text fields:
    • "Index:"
    • "Tag_String:"
    • "Tag_Int"


Fig. 05

6 Start SIMATIC WinCC (TIA Portal) Runtime
  • Start SIMATIC WinCC (TIA Portal) Runtime or transfer the project to the operator panel.
  • Enter a text of your choice in the IO field for "Tag_String_1".
  • Enter a text of your choice in the IO field for "Tag_Int_1".
  • Click the symbolic IO field and select another entry.
  • End SIMATIC WinCC (TIA Portal) Runtime.


Fig. 06

3. Configuration of dynamic text lists with integrated text lists
The table below explains the minimum configuration step by step.
 
No. Procedure
1 Create a SIMATIC WinCC (TIA Portal) project
  • Start SIMATIC WinCC (TIA Portal) and create a new project.
  • Select an operator panel - TP1200 Comfort, for example.
2 Create tags
  • In the project navigation you open the "HMI tags > Show all tags" folder.
  • Create the three following internal tags:
Tag Data type
Index_List1 Int
Index_List2 Int
Index_List3 Int


Fig. 07

3 Create text lists
  • Open the "Text and Graphics Lists" folder in the project navigation.
  • Create three text lists of the "Value/Range" type.
  • Insert the following entries:
     

    Text_list_1

    Index

    Entry
    0 List 1-1: <Text_list : 10, Text_list_2>
    1 List 1-2: <Text_list : 5, Text_list_3>
     

    Text_list_2

    Index

    Entry

    0

    List 2-1: Static text

    1

    List 2-2: Static text
    2 List 2-3: Static text
    3 List 2-4: Static text
     

    Text_list_3

    Index

    Entry

    0

    List 3-1: Static text

    1

    List 3-2: Static text
    2 List 3-3: Static text
    3 List 3-4: Static text

Fig. 08
4 Create objects
  • In the project navigation you open the "Pictures" folder and create a new picture.
  • Add a symbolic IO field.
  • Connect the "Text_list_1" text list created to the symbolic IO field.
  • Link the "Index_List1" tag with the symbolic IO field.


Fig. 09

5 Add I/O and text fields
  • Add three IO fields and three text fields.
  • Arrange the objects as shown in Fig. 10.
  • Link the tags below to the IO fields.
    • Index_List1
    • Index_List2
    • Index_List3
       
  • Insert the following texts for the text fields:
    • "Index_List1:"
    • "Index_List2:"
    • "Index_List3:"

Fig. 10 
6 Start SIMATIC WinCC (TIA Portal) Runtime
  • Start SIMATIC WinCC (TIA Portal) Runtime or transfer the project to the operator panel.
  • Click the symbolic IO field and select a second entry.
  • Enter the number "2" in the IO field for "Index_List2".
  • Click the symbolic IO field and select the first entry.
  • Enter the number "3" in the IO field for "Index_List3".
  • Click the symbolic IO field and select any other entry.
  • End SIMATIC WinCC (TIA Portal) Runtime.

Fig. 11 

4. Download
Attachment 1 contains the sample project described above in extended form with the tag implemented in the text list.

Attachment 1:  WinCC_TIA_Portal_Dynamische_Textliste_Variablen.zip ( 779 KB )

Attachment 2 contains the sample project described above in extended form with the text lists implemented in the text list.

Attachment 2: WinCC_TIA_Portal_Dynamische_Textliste_Textlisten.zip ( 794 KB )

 Entry ID:57025748   Date:2011-12-12 
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