set_tool_shape(name)
Features
This function activates the tool shape information of the entered name among the tool shape information registered in the Teach Pendant.
Parameters
Parameter Name | Data Type | Default Value | Description |
---|---|---|---|
name | string | - | Tool name registered in the Teach Pendant |
Return
Value | Description |
---|---|
0 | Success |
Negative value | Error |
Exception
Exception | Description |
---|---|
DR_Error (DR_ERROR_TYPE) | Parameter data type error occurred |
DR_Error (DR_ERROR_VALUE) | Parameter value is invalid |
DR_Error (DR_ERROR_RUNTIME) | C extension module error occurred |
DR_Error (DR_ERROR_STOP) | Program terminated forcefully |
Example
set_tool_shape("tool_shape1") # Activate the geometry of "tool_shape1".