HMI Symbol_ Array UINT to Array STRUCT

Hi everyone, I’m new in this forum, for some time I have been working with phoenix PLCs, exactly with the AXCF3152 model. We come to the problem, after creating the logical part of the program, I am drawing the HMI part and I need to pass elements of a UINT type array, to a STRUCT type array, in order to define an HMI Symbol, I followed yours guides but I get an error when I pass the parameters. below some pictures. in pictures you can see ARRAY_STRUCT1 (type STRUCT) in data variable of SymbolList ,but i need it to be an array of UINT how can i do? NOTE: the ARRAY_STRUCT1’s index is UINT. Best regards.

Hi, welcome to the PLCnext Community. I have been looking at this question and I am afraid that I don’t understand what the end result should look like. Are you able to describe exactly what the user should see in their web browser? e.g. what data should the user see? What should be the source of each data item that the user sees? (i.e. variable name and array index). That will help us to understand the solution that you are trying to use.

Sorry, my english is poor, I try to explain better. I need to display in my HMI page, a list of ID addresses, which were discovered during the scan, the addresses that gave positive feedback (TRUE), are inserted in (LIST_ADD) an array of type UINT. The array index (SLAVE_ID) is of type UINT. My problem is that I can’t get a list of the addresses found on the HMI page. I’ve tried with the symbol list, creating its symbol and assigning parameters, but it doesn’t seem to work. What am I doing wrong ? in the symbol list can I only use arrays of structs?

In the example below I have followed similar steps as in this earlier thread: https://www.plcnext-community.net/en/discussions-2-offcanvas/quellwert-for-symbol-for-an-array-of-struct.html 1. User-defined type: [attachment]2021-08-20_13-01-39.jpg[/attachment] 2. Variable instance (note: this variable has the HMI attribute checked). [attachment]2021-08-20_13-02-49.jpg[/attachment] 3. User-defined HMI Symbol, with the following parameter. The name of this parameter can be anything, but the type of the parameter must correspond to type in the array (in your case, UINT). [attachment]2021-08-20_13-04-09.jpg[/attachment] 4. In the user-defined Symbol, add one “Text” object. Add a dynamic of type “Text” to that object. The “Variable” parameter in the dynamic is the name of the parameter in step 3. [attachment]2021-08-20_13-06-08.jpg[/attachment] 5. On a HMI page, add the Symbol List object, with: - Data variable = variable from Step 2, and - Symbol = user-defined symbol from Step 3 [attachment]2021-08-20_13-11-55.jpg[/attachment] 6. Send the project to the PLC, and open a browser I can see a list containing the array values. Does this solve the problem? .

2021-08-20_13-01-39.jpg




Hi Martin, sorry if I answer you late, i try your solution and it works for me, thanks a lot. I was wrong to use structs:( is there a way to export hmi pagone from one project to another without having to rewrite and redesign everything? Best regards. Antonio.

Hi Antonio, thank you for the feedback. I’m glad that the problem is solved. For the next question - with the new project open in PLCnext Engineer, it is possible to open a second instance of PLCnext Engineer, which will be “protected” (i.e. read-only). If you open the “old” project in that second PLCnext Engineer window, you may be able to copy the HMI page from the old project, and paste it into the new project. (a friendly tip - it’s good to ask new questions in a new thread :slight_smile: I hope this helps.

Hi Martin, sorry for the late in the answer, i’m away and i have a bit difficult to reply soon. thank you very much for the solution. I know I didn’t open a new thread for not opening a thread for a single topic. best regards Antonio.