Notes and Rules

      The Variables being registered should be suitably initialized before calling Register().

      You must explicitly RPC the values using either RPCManager\Send() or your own RPC subroutine.

      You must explicitly persist the values (e.g. RETAINED values)

      Each tag must wait for \ValueSyncservice\Started to be True before calling \ValueSyncService\Register(...).

      Each tag MUST call \ValueSyncService\Register(Object, &Done, VarNames) where :

      Object is the object value of the tag

      VarNames is an array of variable names belonging to the tag that are to be kept in sync

      Done is a pointer that is set to true after the registration task is finished. It indicates that all the registered variables have been synchronized.

      Each tag must call Register in the same script where the tag sets Root = Self and calls Refresh().

Implementation examples can be found in the following tags:

          SelectorSwitch tag, Totalizer tag, Counter Tag.