With the method SetTool a configured tool can be selected as TCP for the robot motion.
In case the input i_udiToolId is set to zero an active tool is deactivated, so the commands and the feedback refers to the robot flange.
The tool can only be switched when no move commands are active or loaded for the robot.
Input |
Data type |
Description |
---|---|---|
i_udiToolId |
UDINT |
Tool to be activated. i_udiToolId = 0 disables the tool and switches back to the robot flange. Further valid values are the IDs of the configured tools, see property raudiConfiguredToolIds. |
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 |
Ok |
0 |
Ok |
ExecutionAborted |
CommandsActive |
79 |
There are active commands. |
ExecutionAborted |
InMotion |
52 |
The robot is in motion. |
InputParameterInvalid |
ToolNotConfigured |
260 |
The selected tool is not configured. |
Enumeration name: |
CommandsActive |
Enumeration value: |
79 |
Description: |
There are active commands. |
Issue |
Cause |
Solution |
---|---|---|
The tool was not set. |
There are active move commands for the robot. |
Ensure that no move commands are active for the robot when the method SetTool(…) is called. |
Enumeration name: |
InMotion |
Enumeration value: |
52 |
Description: |
The robot is in motion. |
Issue |
Cause |
Solution |
---|---|---|
The tool was not set. |
The robot is in motion. |
Ensure that the robot is not in motion when the method SetTool(…) is called. |