get_system_version
This function returns the version information of each subsystem of the robot controller. It returns the teach pendant (SmartTP), controller, interpreter, inverter, safety board, JTS board and flange board versions together with the robot serial number and model through the SYSTEM_VERSION structure.
If the controller does not reply, get_system_version returns false.
Definition
DRFLEx.h within class CDRFLEx, public section
bool get_system_version(LPSYSTEM_VERSION pVersion) { return _get_system_version(_rbtCtrl, pVersion); };
Parameter
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
pVersion |
Pointer to a structure that stores the version information of each subsystem. |
Return
Value |
Type |
Description |
|---|---|---|
0 |
int |
Error — failed to retrieve version information. |
1 |
int |
Success — version information successfully obtained. |
Example
SYSTEM_VERSION tSysVerion = {};
drfl.get_system_version(&tSysVerion);
printf("version: %s\n", tSysVerion._szController);
This example retrieves detailed version information of the robot controller and prints the controller’s version string to the console.