The method can be used to create or modify a tool in the robot configuration. The tool is described by an ID and its position and orientation offsets. The ID can be any UDINT except zero, as zero is reserved for the robot flange. The offsets for position and orientation refer to the CSR. If the method is called with a tool ID that was not configured yet, the tool is created and q_etDiagExt returns ToolConfigured. If the method is called with a tool ID that already exists, the offsets of this tool are overwritten and q_etDiagExt returns ToolModified. A modification of a tool can only be made when the tool is not active.
In case more than ten tools per robot are necessary for the application, the parameter Gc_udiMaxNumberOfTools in the global parameter list (GPL) of the robotic library must be adjusted.
Input |
Data type |
Description |
---|---|---|
i_udiToolId |
UDINT |
ID of the tool. Valid values are >0 |
i_stPositionOffset |
Position offset of the tool. |
|
i_stOrientationOffset |
Orientation offset of the tool. |
|
i_etOrientationConvention |
Orientation convention of the tool. Valid values are:
For further information, refer to ET_OrientationConvention |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
|
q_sMsg |
STRING[80] |
Event-triggered message that gives additional information on the diagnostic state. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
Ok |
ToolConfigured |
262 |
The tool was created. |
OK |
ToolModified |
263 |
The tool was modified. |
ExecutionAborted |
ExternalPositionSourceConfigured |
205 |
The external position source is configured. |
ExecutionAborted |
NoMoreToolsAvailable |
265 |
No more tools can be configured. |
ExecutionAborted |
ToolActive |
264 |
The tool is active. |
InputParameterInvalid |
ToolIdInvalid |
259 |
The tool ID is invalid. |
InputParameterInvalid |
OrientationConventionInvalid |
168 |
The orientation convention is invalid. |
Enumeration name: |
ExternalPositionSourceConfigured |
Enumeration value: |
205 |
Description: |
The external position source is configured. |
Issue |
Cause |
Solution |
---|---|---|
The tool was not configured. |
An external position source is configured. |
It is not possible to configure tools when the robot is configured to use an external position source. |
Enumeration name: |
NoMoreToolsAvailable |
Enumeration value: |
265 |
Description: |
No more tools can be configured. |
Issue |
Cause |
Solution |
---|---|---|
The configuration of the robot was unsuccessful. |
No more tools can be configured. |
The number of tools that can be configured is defined in the global parameter Gc_udiMaxNumberOfTools. Increase this parameter if necessary. |
Enumeration name: |
OrientationConventionInvalid |
Enumeration value: |
168 |
Description: |
The orientation convention is invalid. |
Issue |
Cause |
Solution |
---|---|---|
The configuration of the robot was unsuccessful. |
The orientation convention transferred at the input i_etOrientationConvention is invalid. |
Ensure that a valid orientation convention is transferred at the input i_etOrientationConvention. Valid values are:
For further information, refer to ET_OrientationConvention |
Enumeration name: |
ToolActive |
Enumeration value: |
264 |
Description: |
The tool is active. |
Issue |
Cause |
Solution |
---|---|---|
The configuration of the robot was unsuccessful. |
The tool is active and cannot be modified. |
It is not possible to modify a tool which is active. Switch to another tool or the robot flange before calling ConfigureTool(…). |
Enumeration name: |
ToolConfigured |
Enumeration value: |
262 |
Description: |
The tool was created. |
The creation of the tool was successful.
Enumeration name: |
ToolIdInvalid |
Enumeration value: |
259 |
Description: |
The tool ID is invalid. |
Issue |
Cause |
Solution |
---|---|---|
The configuration of the robot was unsuccessful. |
The value provided at the input i_udiToolId is invalid. |
Ensure that a valid value is transferred at the input i_udiToolId. Valid values are >0 |