Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. Oleksandr Guminskiy
  2. PLCnext Engineer
  3. Sunday, 21 February 2021

Dear All!

Is is possible to use array value with certain index, as index for another array in eHMI?
I mean when we use dynamic action for text value or etc? As we use to do in ST code.
Same problem, when I try to use two dimension arrays.
Now I receive error "Invalid index value".

 

PIC3.png

Best regards

 

Frank PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Oleksandr,

you're right, this is currently not possible within the eHMI editor, so you've to move the logic into your ST code.

I'll ask the PM if and when this feature is planned.

BR,

Frank

Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support
  1. one week ago
  2. PLCnext Engineer
  3. # 1
Frank PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Oleksandr,

I've spoke with the PM and to support arrays as index is not planned for the near future.

You can use arrays of arrays with an int as index on a dynamic.

TYPE

OneDimArray : ARRAY[0..10] OF INT;
TwoDimArray : ARRAY[0..10] OF OneDimArray;

END_TYPE

 

TwoDimArray[index1][index2]

Not exactly what you were looking for, but with a suitable data structure maybe suitable.

BR,

Frank

Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support
  1. one week ago
  2. PLCnext Engineer
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.