Write to a Calc tag from Script. Questions from Source Debugger

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 :slight_smile:

You’ll want to use the setter submodule for this

Set → https://www.vtscada.com/help/Content/Pro_Functions/Set.htm