FactoryTalk View Studio Macros (arrays)

ivannn

Member
Join Date
Jul 2014
Location
Ohio
Posts
19
I am using FTView macros to store and load plc array values and display them on an HMI when needed. For some reason its working for every other location, or only writing and storing every other value in the array (REAL Data Type). Can FT studio macros set instruction handle this? Is there special syntax for setting array values? Or does anyone know what could cause this? I am not too familiar with macros so any help is much appreciated. Below is an example of my code. I am executing multiple macro files for different grades and have designated parameters for different values. Individual tags (like parameters 98-91) work fine. Just having trouble with this Value array.

&Set {/RSLinxEnt::[Prog1]Value[0].Value} {Grades\Grade4\Parameter86};
&Set {/RSLinxEnt::[Prog1]Value[1].Value} {Grades\Grade4\Parameter87};
&Set {/RSLinxEnt::[Prog1]Value[2].Value} {Grades\Grade4\Parameter88};
&Set {/RSLinxEnt::[Prog1]Value[3].Value} {Grades\Grade4\Parameter89};
&Set {/RSLinxEnt::[Prog1]Value[4].Value} {Grades\Grade4\Parameter90};
.
.
.
.
.
&Set {/RSLinxEnt::[Prog1]Value[11].Value} {Grades\Grade4\Parameter97};
&Set {/RSLinxEnt::[Prog1]Rampdown} {Grades\Grade4\Parameter98};
&Set {/RSLinxEnt::[Prog1]Stopdown} {Grades\Grade4\Parameter99};
&Set {/RSLinxEnt::[Prog11]Mid_Start} {Grades\Grade4\Parameter100};
&Set {/RSLinxEnt::[Prog1]Mid_Stop} {Grades\Grade4\Parameter101};
 

Similar Topics

Hello, I made a change in alarm setup in factory view studio, where I changed a alarm message text. After that I made a run application and...
Replies
0
Views
125
Hi all, I'm having an issue with connecting View Studio emulation to a real PLC. I am running View Studio 8.01 on a Hyper-V virtual machine...
Replies
0
Views
257
Hello. I have a Project I'm doing in Factorytalk View Studio. One of my displays I created has a bunch of red x's on all of the objects I created...
Replies
6
Views
649
So, I'm new to the PLC world (fresh graduate) and at my job I've been pretty much only helping out the other programmers with simpler tasks while...
Replies
1
Views
618
Good morning, I have a project coming up that will require my HMI runtime to toggle from English to Spanish via selector switch. What is the...
Replies
0
Views
455
Back
Top Bottom