IF_TargetManager - AddTargetPos (Method)
Type: |
Method |
Available as of: |
V1.0.0.0 |
Versions: |
Current version |
Create a target at a position on the target belt.
Adds a new target to the list of targets that is located at the i_lrPosition position of the target belt.
Input |
Data type |
Description |
---|---|---|
i_lrPosition |
LREAL |
Position of the target belt at which the target is to be entered |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnosis. A value unequal GD.ET_Diag.Ok equates an error message. |
|
q_etDiagExt |
POU-specific output on the diagnosis. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> error message |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
ExecutionAborted |
74 |
The maximum number of manageable targets has been reached. |
|
InputParameterInvalid |
75 |
The position is invalid. |
Enumeration name: |
MaxNrOfTargetsReached |
Enumeration value: |
74 |
Description: |
The maximum number of manageable targets has been reached. |
Issue |
Cause |
Solution |
---|---|---|
- |
There was an attempt to add more than the maximum number of targets to the infeed distance. |
At no time more than Gc_udiMaxNumberOfTargets targets may be defined for the infeed distance. The global parameter Gc_udiMaxNumberOfTargets must be set to a value that is greater than the maximum number of targets for the infeed distance. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The target has been added successfully.
Enumeration name: |
PositionInvalid |
Enumeration value: |
75 |
Description: |
The position is invalid. |
Issue |
Cause |
Solution |
---|---|---|
- |
An invalid value has been transferred at the input i_lrPosition. |
It must be made sure that a position that is located further away from the target belt than the last target is transferred at the input i_lrPosition. This ensures a consistent target sequence. |