New in the Community? Get started here

Schneider Electric Exchange Community

Discuss and solve problems in energy management and automation. Join conversations and share insights on products and solutions. Co-innovate and collaborate with a global network of peers.

Register Now
Geo SCADA Expert Forum
Showing results for 
Search instead for 
Did you mean: 
Lt. Commander

[import] How to write to more that one tag with a button and write one tag to another?

>>Message imported from previous forum - Category:ClearSCADA Software<<
User: Tanquen, originally posted: 2019-03-24 07:43:11 Id:390
I've been using Server.SetOPCValue to write a value to a tag but I now need to write one tag to another.

So this works:

Server.SetOPCValue ".Alternation.I/O.F1LL", 1
Server.SetOPCValue ".Alternation.I/O.F2LL", 2

But this don't:

Server.SetOPCValue ".Alternation.I/O.F1LL", ".Alternation.I/O.F3LL"
Server.SetOPCValue ".Alternation.I/O.F2LL", ".Alternation.I/O.F4LL"

Reply User: adamwoodland, posted: 2019-03-24 21:51:04

Server.SetOPCValue ".Alternation.I/O.F1LL", Server.GetOPCValue(".Alternation.I/O.F3LL")

Reply User: Tanquen, posted: 2019-03-25 14:49:35
Thanks, that should have been the first thing I tried. Just not thinking. Like Server.SetOPCValue is a magical command that should take care of reading and writing tag values.