This function is used to set the variable name to be monitored in order to monitor the internal variables of the program when the program is executed in the robot controller.
Parameter
|
Parameter Name |
Data Type |
Default Value |
Description |
|
eDivision |
VARIABLE_TYPE |
- |
Refer to the Definition of Constant and Enumeration Type |
|
eType |
TYPE_TYPE |
- |
Refer to the Definition of Constant and Enumeration Type |
|
strName |
string |
- |
128-byte variable name string |
|
strData |
string |
- |
128-byte data string |
Return
|
Value |
Description |
|
0 |
Failed |
|
1 |
Success |
Example
C++
Drfl.config_program_watch_variable(VARIABLE_TYPE_INSTALL, DATA_TYPE_FLOAT, "var", "1.22"); // Save the installation variable “var” as float 1.22