Factory talk tag within a tag

kidtron123

Member
Join Date
Feb 2015
Location
Toronto
Posts
4
Just wondering if there is a way to access an array using two variables.
One variable would be the tag name while the other would be the index.

Example:
{[PLC]myarray[{[PLC]myindex}]}

I have tried {[PLC]myarray[1]} and that works

myarray is a DINT[100]
myindex is a DINT
 
You are talking about FTView, right?
If so, the answer to your quesiton:

No.

FTView is too stupid to handle resolving arrays indirectly. You might be able to do that in VBA, but manually creating the path to an indexed tag, but it isn't a simple Array[SomePointer] deal.

Handle the array indexing in the PLC, and return the actual value requested.
 

Similar Topics

The client has an application that when communication between the PLC and the Factory Talk VIEW supervisory fails, the object in the supervisory...
Replies
5
Views
224
What's the best way to move a tag value from the panelview+7 to the clx plc. We display amps from a power meter on the panelview screen, read in...
Replies
1
Views
382
Hello, Which syntax I need to use for write on value on a “local tag” that have “Machine” as scope? Thanks
Replies
0
Views
429
Hi , i currently have data logs running but i need a way to link a tag to them so if there ever not running i can trigger an alarm? what is the...
Replies
4
Views
1,803
Hi, We have added some new valve timing functionalty to AB programs and are running it out across 6 units. I have verified that the code works...
Replies
2
Views
1,939
Back
Top Bottom