Quellwert for Symbol for an array of struct

Hello, I run into an error in HMI trying to create an symbol list with an array of struct. I figured out to create my list of symbol and partly useing parameters. But now I am getting an error "missing parameter ‘ZEB_arrGlobalBool’ in HMI-object ‘symbollist1’. Useing the help I asume I have to put an default value in “Quellwert” but i cant write anything in it not can i select. What have I to do?


first attachement corrected

Hello, It is not clear to me what the layout of your structure is - sorry if I have missed that in the images. I am able to use an array of structures in a Symbol List, as follows: 1. User-defined type: 2021 03 01 9 36 15 2. Variable instance (note: this variable has the HMI attribute checked). 2021 03 01 9 36 41 3. User-defined HMI Symbol, with the following two parameters. The names of these parameters can be anything, but the types of these parameters must correspond to types in the user-defined structure (in my case, INT and BOOL). 2021 03 01 9 37 28 4. Symbol List, with:

- Data variable = variable from Step 2, and
- Symbol = symbol from Step 3 2021 03 01 9 38 17 5. Symbol List parameters. In this case, I am able to assign fields of the user-defined Struct to parameters with compatible type in the user-defined Symbol. 2021 03 01 9 39 46 I hope this helps you to find the solution to the problem in your project. If not, please let us know. ~ Martin.

I firstly used my Struct-variable inside the symbol and this does not work. I can set up the elements, but parameters do not apply as desribed above (Version 1). Now I restructured my symbol according to your description (Version 2) and this works except for strings. The original array has only empty strings as I am still missing the data set. Changeing the strings in debug mode only changes the string in my old symbol (Version 1) but not in my new symbol list (with Version 2). Any clue why this happens? Furthermore I would like to add an integer as row label (row 1 = 1, row 2 = 2, …) . Can’t find anything appropriate but adding another column to my struct with these values for filling in the symbollist with index.

In my example above, I: 1. added a new field (Field3) to the Struct definition, of type STRING. 2. (no change) 3. added a new parameter to the HMI Symbol, of type ANY_STRING. 3a. Added a “Text” dynamic to the Symbol, that displays the new ANY_STRING parameter value. 4. (no change) 5. connected the new Name (Symbol Parameter) with the new Source Value (Struct field). Then I started a web browser and opened the page with the Symbol List. When I change the strings in PLCnext Engineer, in Debug mode, the texts in the Symbol List change to the values I entered in PLCnext Engineer. I cannot explain why this does not work in your project - you must be doing something different to me. I am using an AXC F 2152 FW 2021.0.2, and PLCnext Engineer version 2021.0.2. --------------------- On the question about auto-numbering the rows of the symbol list - I will check this and let you know.




In answer to the question about auto-numbering of rows in the Symbol List: Unfortunately the solution you describe is the only way to achieve this (sorry).

Thank you for your effort. I have two implementations of this structure. One for bools and one for reals. The real-structure is working fine, bool-strucutre not at all. Deleting and adding in new does not solve the problem. Firmware is 2020.6 on AXC F 2152

I coppied my fields from real-struct to bool-struct and it works now too. Something went wrong with textfields…

EDIT: I just saw that the problem is solved, but I will leave my original answer below, just in case there are any other problems. ================================================================================================= From the information you’ve given, I am afraid I can’t explain why your struct containing BOOL fields is not working. My example above has a Struct containing a BOOL field, and it works OK. (the green/red circles show the BOOL values) 2021 03 03 15 37 19 Does my example work for you? If so, what is different about your Struct containing BOOLs? If you are not using PLCnext Engineer version 2021.0.2 LTS, I can recommend upgrading, just in case there are new features that fix this problem. Also, it is worth upgrading the firmware on the PLC to version 2021.0.2 LTS, although I don’t think that will make a difference in this case. If you can give us a step-by-step guide to reproducing the problem you are seeing, then we can investigate it.

sorry for inconcrete information. Bools work for me too, but the text fields in my bool struct do not work. Textfields don’t get updated and are in some manner able to freeze HMI. This textfield with text=False came from older implementations of text fields and was coppied several times in the past. My new index textfield came from HMI//Objekte//Text and freezes HMI in a symbollist of 100..200 entries. The functioning text fields came from HMI//Objekte//Text too and were implemented in a clean new symbol. Working fine in a symbollist with 100 entries.

now_works.png