TheWaterboy
Lifetime Supporting Member + Moderator
Using Logix 5000 on Contrologix
Once a day I need to update the same 3 elements in 100 Tags, the tags are numbered (so to speak) N100...N199.
This is the pseudocode.
I have tried to DTOS the X and then CONCAT to combine the string "Site" with the incrementing number X, but the resulting string variable is not then recognized in the code as a tagname for assignment to "ExistingTag1"
I would appreciate ideas or direction. I'm stuck. 300 ALIAS assignments maybe?
Once a day I need to update the same 3 elements in 100 Tags, the tags are numbered (so to speak) N100...N199.
This is the pseudocode.
Code:
FOR X := 101 to 150 DO // Partial TAG name Site101 for example
SiteX[5] := ExistingTag1 // Concatenated tag name, "X" = 101 to 150
SiteX[6] := ExistingTag2
SiteX[7] := ExistingTag3;
End_For;
I would appreciate ideas or direction. I'm stuck. 300 ALIAS assignments maybe?