IF_TargetsHandler - SetTargetOwner (Method)
Type: |
Method |
Available as of: |
V1.4.1.0 |
This chapter provides information on:
oTask
Sets the owner of a target.
The method SetTargetOwner allows you to set the owner of a target. This information is typically used in multirobot applications to specify which robot is allowed to process a target.
Input |
Data type |
Description |
---|---|---|
i_udiListIndex |
UDINT |
The index of the target to be removed from the list. |
i_etRobotId |
The identifier of the robot that processes the target. |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value unequal 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 more detailed information on the diagnostic state. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
Ok |
0 |
Ok |
|
ExecutionAborted |
101 |
The function block is not configured yet. |
|
InputParameterInvalid |
112 |
The provided list index is not referring to a valid target in the list. |
|
InputParameterInvalid |
111 |
The provided index is either zero or greater than the maximum list size. |
|
InputParameterInvalid |
120 |
A provided robot ID has an invalid value. |
Enumeration name: |
ListIndexInvalid |
Enumeration value: |
112 |
Description: |
The provided list index is not referring to a valid target in the list. |
Issue |
Cause |
Solution |
---|---|---|
The owner has not been assigned. |
The targets handler does not contain a target with the provided index. |
Ensure that a target with index i_udiListIndex is contained in the list. |
Enumeration name: |
ListIndexRange |
Enumeration value: |
111 |
Description: |
The provided index is either zero or greater than the maximum list size. |
Issue |
Cause |
Solution |
---|---|---|
The owner has not been assigned. |
The value of the index is out of range. |
The value of the index must be within the range [1...Gc_udiMaxNumberOfTargets]. |
Enumeration name: |
NotConfigured |
Enumeration value: |
101 |
Description: |
The function block is not configured yet. |
Issue |
Cause |
Solution |
---|---|---|
The owner has not been assigned. |
The Configuration method has not been called yet. |
Ensure that the Configuration method has been successfully called before calling this method. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
Status Message: The owner has been successfully set.
Enumeration name: |
RobotIdInvalid |
Enumeration value: |
120 |
Description: |
A provided robot ID has an invalid value. |
Issue |
Cause |
Solution |
---|---|---|
The owner has not been assigned. |
i_etRobotId does not contain a valid robot ID. |
Verify that the robot identifier is either within the range [ET_SystemEntity.Robot1...ET_SystemEntity.Robot10] or is equal to ET_SystemEntity.None. |