Global Variable Manager
Start the Feature
You can use the following methods to open the global variable management window:
-
In the parameter configuration panel of the Global Variables Step, click the Open the editor button to open the global variable management window.
-
Select in the menu bar to open the global variable management window.
Interface Description
The fields in this tool are described as follows:
| Field | Description | ||
|---|---|---|---|
No. |
The numeric ID of the global variable. |
||
Variable name |
The unique identifier of the global variable. |
||
Comment |
The comment set for the global variable. |
||
Mode |
Defines how data is stored in and retrieved from the variable.
|
||
Data type |
The type of data stored in the variable. Select matches the data flow, String, Number, String [], Number [], or manually input the data type. |
||
Initial value |
The initial value set for global variables. Initial values can be set only for global variables in the single result mode, and the data type of each global variable must be String or Number. |
||
Current value |
Displays the current value of the global variable. If the mode of the global variable is Queue, the current value displays the first result in the queue.
|
||
Binding parameters |
Step parameters that are bound to global variables in the current solution. The values of these parameters stay synchronized with the value of the global variable. Step parameters can be bound only to global variables in single result mode, and the data type of each global variable must be String or Number, with support for any data dimension. |
||
Communication |
Select whether to allow an external device to set and read global variable values using commands after communication with the Mech-Vision is established.
|
Common Operations
Add Global Variables
Click the Add a variable button in the upper right corner of the window to add a new global variable.
Delete Global Variables
Click the delete icon
of each line to delete the corresponding global variable.
Clear Global Variables
In the Mode column, click the clear icon
to erase the data stored in the corresponding variable.
Change Variable Order and Reset Variable IDs
You can change the order of variables first, and then reset all variable IDs with one click:
-
Change the order of variables: Click the move
icon on the left of each ID and drag it up and down to change the order. -
Reset variable IDs: Click Reset variable IDs to renumber all global variables with one click.
Bind Parameters to Global Variables
Click the setting icon
in the Bound Parameter column, and select the parameter to bind to the corresponding global variable in the pop-up window.
To unbundle parameters, perform the following operations:
-
To unlink a single parameter from a global variable: Clear the corresponding parameter in this window.
-
Unbind all parameters from global variables: Click the clear icon in the Bound Parameters column
to unbind all parameters with one click.