Virtual Objects
To better integrate scripts with other Desigo CC functions (such as, macros, reactions, and so on), it is possible to create virtual objects which are global variables (or virtual data points) that scripts can read and write to store information that can be accessed by other scripts or other Desigo CC functions. In particular, scripts use virtual objects to store the values for the Desigo CC supported data types that are useful to the other Desigo CC functions, or where such functions can write to interact with scripts. See the following examples of use:
- A script monitors a virtual object to execute certain instructions while a macro writes in this virtual object to trigger the execution of the script instructions.
- A script monitors a virtual object to execute certain instructions while another script writes in this virtual object to trigger the execution of the script instructions.
- A reaction uses a virtual data point as trigger while a script writes in this virtual object to match the conditions of the reaction.
The Desigo CC virtual objects are located in a dedicated folder under Logics in Application View of System Browser.