IF_TargetsHandler - GetTargetWithSlots (Method)
Type: |
Method |
Available as of: |
V1.4.1.0 |
This chapter provides information on:
oTask
Retrieves information about a target and the slots that it contains.
The method GetTargetWithSlots retrieves information about a target and the slots that it contains.
Input |
Data type |
Description |
---|---|---|
i_udiListIndex |
UDINT |
The index of a robot target in the list. |
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. |
Data type |
Description |
---|---|
Data structure containing information on the target stored at the index in input, including the information on the contained slots. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
Ok |
0 |
Ok |
|
ExecutionAborted |
101 |
The function block is not configured yet. |
|
ExecutionAborted |
117 |
The configured number of slots is invalid for a called method. |
|
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. |
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 target and its slots have not been returned. |
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 target and its slots have not been returned. |
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 target and its slots have not been returned. |
The Configuration method has not been called yet. |
Ensure that the Configuration method has been successfully called before calling this method. |
Enumeration name: |
NumberOfSlotsInvalid |
Enumeration value: |
117 |
Description: |
The configured number of slots is invalid for a called method. |
Issue |
Cause |
Solution |
---|---|---|
The target and its slots have not been returned. |
It is not possible to return the required target and its slots while the number of configured slots is equal to zero. |
oEnsure that the number of configured slots is greater than zero before calling this method. oCall the method ConfigureSlotList to set the number of configured slots. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
Status Message: The target with its slots has been successfully returned.