AdvancedHMI Software

General Category => Open Discussion => Topic started by: camiloo77 on November 20, 2016, 08:32:20 PM

Title: 2D Arrays
Post by: camiloo77 on November 20, 2016, 08:32:20 PM
Hi, can anyone help me? I need show variables from two dimension arrays but Advanced HMI don't let it . Controller is Beckhoff CX9001
Title: Re: 2D Arrays
Post by: Homie on November 21, 2016, 04:43:47 AM
Im am not familiar with Beckhoff, but the question is also not clear to me.
Is your problem reading the array, or is your problem to display the values U read on the screen?
Title: Re: 2D Arrays
Post by: Archie on November 21, 2016, 03:25:44 PM
I just tested a 2 dimension array and it worked ok.

In the PLC program:

Code: [Select]
TagArray : ARRAY [0..10,0..10] OF DINT;

In AdvancedHMI:

- Add a BasicLabel to the form
- Set PLCAddressValue to Main.TagArray[1,1]
- Run the application

My BasicLabel shows the value of the variable
Title: Re: 2D Arrays
Post by: camiloo77 on November 21, 2016, 10:29:00 PM
Thanks a lot, BasicLabel works properly, i was using AnalogValueDisplay but it not works, it say: "Property Value is not Valid"  :)