Dynamic text on structured variable

Dynamic text on structured variable

Hi,
in dynamic text limit how to set index of structured variable?

For example, if I have:
test[1], test[2], test[3],… where value of variable is string which represents device name
alarm[1], alarm[2], alarm[3]… where value of variable is alarm status

On each alarm[index] I have several Limit Values and I want to indicate value of test[index] in AML.
I expect result like:
"Alarm A1 activated on: Channel1" where string "Channel1" is value in test[1] variable
"Alarm A1 activated on: Channel2" where string "Channel2" is value in test[2] variable
"Alarm A2 activated on: Channel3" where string "Channel3" is value in test[3] variable


Now I have set it like this: $Alarm A1 activated on: ;%test [1] but to set all indexes I wrote add-in (several thousand variables so manual work is not possible).

So what is elegant way to get correct index without programing, so for alarm[55] to get test[55]?
Elegant way would enable using REMA because I have several more statuses that are index related.

Thanks in advance.



This is a migrated post! Originally posted on 19.12.2021 by user gogi. Please be aware that information can be outdated.

    Disclaimer

    This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

    The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

    Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

    Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

    COPA-DATA reserves the right to change this document from time to time at own discretion.


    Ing. Punzenberger COPA-DATA GmbH
    Karolingerstraße 7b · 5020 Salzburg · Austria
    www.copadata.com