Unable to Write String to Tag When Passed as a Parameter

shebang

Member
Join Date
Jun 2022
Location
Pittsburgh, PA
Posts
6
Hello all,


I have a FactoryTalk View SE HMI where I am using a macro to display an appropriate display based upon a value that's passed into the macro. Let's say this passed in value can be "T101", "T102","T103". When I show a display, I use the following command to set a tag to that value that's passed in.


Code:
Set LTAG\CurrentDisplay %1
This, will seem to work, as it runs without errors in the console. However when I read back the tag, it remains unchanged from it's previous value.


If I run


Code:
Set LTAG\CurrentDisplay "Main"
It works great. But obviously, this method will break my macros. This works fine for the macro that displays the main page, but will not work for my other displays, since I have a bunch of them.


I can't enclose the '%1' in quotes because that will just feed the literal '%1' into the string, where I obviously would like it to be my passed in parameter.


Any ideas on what I am doing wrong here?
Thanks!
 

Similar Topics

I have been using dotnet and OPC servers (NI and Kepware) to communicate with Allen Bradley Micrologix 1400 PLC on different environmental...
Replies
2
Views
5,813
Anyone familiar with datapanels? I have a datapanel 45 connected to a GE Fanuc versamax micro 64 plc. Problem is, I can't seem to be able to write...
Replies
11
Views
2,307
Hi All, Currently I am networking several PLCs together (SLC5/04, SLC5/05, ML1500) and used RSView32 to create real time visual manufacturing...
Replies
5
Views
7,298
I am running CCW 13 trying to upload to a micro 820 vers.12 I get an output message OPC server is unable to load project controller. Please help!
Replies
5
Views
286
I've posted this on the ptc forum as well, but no luck with an answer (waiting for my service contract number) I keep getting the following error...
Replies
2
Views
154
Back
Top Bottom