Author Topic: 2D Arrays  (Read 1474 times)

camiloo77

  • Newbie
  • *
  • Posts: 5
    • View Profile
2D Arrays
« 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

Homie

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: 2D Arrays
« Reply #1 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?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: 2D Arrays
« Reply #2 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

camiloo77

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: 2D Arrays
« Reply #3 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"  :)