Dynamic association can accept array elements or entire arrays as substitution. Passing an element of an array is achieved by referencing the element, as shown here:
AssPopUp("MyPopUp", "DigArray[42]");
To pass an entire array to a dynamic association, only the array name is used. For example:
AssPopUp("MyPopUp", "DigArray");
To pass an entire array to a dynamic association, configure it to accept the array instead of a single value. Use the following syntax for the dynamic association substitution string:
?<Data Type><Substitution String>? [<element>]
Only arrays of data type DIGITAL, INT, REAL, and LONG are supported.
You can use array offsets with a tag that is an array.
For example, you may have a tag (named Tag1) defined as an array of four elements. When using the GENERIC protocol, the tag has an address I1[4]:
Tag1 = I1[4] -> |
I1 |
I2 |
|
I3 |
|
I4 |
Tag1 represents the registers I1, I2, I3 and I4. When Tag1 is used with the
You can also use array offsets with a tag that is not an array.
For example, you may have a tag (named Tag2) defined as a single value. When using the GENERIC protocol, the tag has an address I1:
Tag2 = I1 -> |
I1 |
When Tag2 is used with the
See Also
Published June 2018