Main [
If Latch(AbsTime(1, 5, 0), AbsTime(1, 1, 5));
[
TagObj3 = Scope(\Code,"Fq");
ScriptObj\Value = TagObj3\Value;
{this works, changing TagObj3 value in VTScada Tag Manager reflects in the Script tags value.}
TagObj3\Value = 5434; { this do **not** work, I cannot see Fq tag changing its value to 5434 }
{ Is it changing its value to 5434 but only for a moment?}
TagObj1 = Scope(\Code,"Fq"); {just for testing}
]
]
I have searched the docs, there are functions to write to drivers and PLC, but what about writing to calculation tags?
Question :
Is \Value
a read-only thing?
Or only ScriptObj supports being to be written a value?..
I opened Source debugger and dropped a breakpoint on the {just for testing} line.
when execution hangs up on that line, I do see my 5434 value in the tag browser.
but when i press continue, the value disappears.
Then I tried the following:
TagObj3 = Scope(\Code,"Fq");
TagObj3\Value = 121;
ScriptObj\Value = TagObj3\Value;
(No breakpoints/debugging this time)
Now I see 121 value in my script tag. but not in tag 'Fq'
Question :
Why does 121 exist in the tag momentarily? which topic of knowlege am i missing
````
Main [
If Latch(AbsTime(1, 5, 0), AbsTime(1, 1, 5));
[
TagObj3 = Scope(\Code,"Fq");
ScriptObj\Value = TagObj3\Value;
{this works, changing TagObj3 value in VTScada Tag Manager reflects in the Script tags value.}
TagObj3\Value = 5434; { this do **not** work, I cannot see Fq tag changing its value to 5434 }
{ Is it changing its value to 5434 but only for a moment?}
TagObj1 = Scope(\Code,"Fq"); {just for testing}
]
]
````
I have searched the docs, there are functions to write to drivers and PLC, but what about writing to calculation tags?
Question :
Is `\Value` a read-only thing?
Or only ScriptObj supports being to be written a value?..
I opened Source debugger and dropped a breakpoint on the _{just for testing}_ line.
when execution hangs up on that line, I do see my 5434 value in the tag browser.
but when i press continue, the value disappears.
Then I tried the following:
````
TagObj3 = Scope(\Code,"Fq");
TagObj3\Value = 121;
ScriptObj\Value = TagObj3\Value;
````
(No breakpoints/debugging this time)
Now I see 121 value in my script tag. but not in tag 'Fq'
_Question :_
Why does 121 exist in the tag momentarily? which topic of knowlege am i missing :)
edited May 20 at 9:40 am