AdvancedHMI Software
General Category => Support Questions => Topic started by: timryder on December 07, 2021, 02:05:13 PM
-
Does anyone know the syntax to access a tag which resides in the program scope of a Micro850 program?
I have a program called "Main" and I have created a tag under it's scope called "test" I just want to set that bool using a button. But what is the address for accessing the program scope tags?
"Program:Main.test"
is this it?
-
I'm not positive, but I think only global scope is supported.
-
I'm not positive, but I think only global scope is supported.
This is accurate. There is no documented way to access local scoped tags. I captured packets from CCW in order to try and mimic how it access local variable values and never had any luck. This was some time ago, but what I remember about it was that it seemed the controller knew the difference between CCW and not CCW and would reject the request.
Edit: I also spoke with support about it to see if there was different syntax or something like that, all they would give me was "you cannot access local variables".
-
Huge bummer.....
Also, challenge accepted. Lets see if I can crack it.
Thanks for the answer though guys.
-
Huge bummer.....
Also, challenge accepted. Lets see if I can crack it.
Thanks for the answer though guys.
I said the same thing, eventually gave up. Let me know your observations. I don't think it is going to be a syntax thing, possibly a different CIP object.
When I get time, I'll see if I can capture the packets again, unfortunately, I don't think I saved them.