![]() |
VWorks software calls the GetTeachPoints method to get the names of all of the robot’s teachpoints from the plugin.
HRESULT GetTeachpoints(
[in] BSTR XML,
[out] BSTR *returnedXML,
[out,retval] enum ReturnCode *retVal
);
[in] A string that contains an empty IRobotDriver_GetTeachpoints_Input XML element. [out] An IRobotDriver_GetTeachpoints_Output XML block that contains a list of teachpoint names. 0 = The request was completed (RETURN_SUCCESS)1 = Something was wrong with the input, so the request was not completed (RETURN_BAD_ARGS)2 = The request was not completed (RETURN_FAIL)VWorks software passes an empty IRobotDriver_GetTeachpoints_Input XML element into the XML parameter of the GetTeachPoints method.The following sample code is an empty IRobotDriver_GetTeachpoints_Input XML element that is received by the plugin from VWorks software as a string in the XML parameter of the GetTeachPoints method. VWorks software asks the plugin for the names of all the teachpoints for the 3-Axis Robot.
The plugin returns an IRobotDriver_GetTeachpoints_Output XML block in the returnedXML parameter of the GetTeachPoints method.The IRobotDriver_GetTeachpoints_Output XML block contains the IRobotDriver_GetTeachpoints_Output element and all its children. This XML block provides a list of all of the robot’s teachpoints.
Each Value element contains the name of a teachpoint. This element has the following attribute:
The following sample code is an IRobotDriver_GetTeachpoints_Output XML block that is returned by the plugin to VWorks software as a string in the returnedXML parameter of the GetTeachPoints method. The plugin returns all the names of the 3-Axis Robot’s teachpoints to VWorks software.