FC_CalculatePointOnCircle2D - General Information
Type: |
Function |
Available as of: |
V1.0.3.0 |
Versions: |
Current version |
Calculates a point on a given circle which has a specified direction angle.
This function calculates the coordinates of the point on the circumference of the circle i_stCircle, which has the direction angle i_lrAngle. The direction angle is measured anti-clockwise in degrees. 0° corresponds to the positive X direction (see graphics below).
Input |
Data type |
Description |
---|---|---|
i_stCircle |
Circle on whose circumference is located the point to be calculated. |
|
i_lrAngle |
LREAL |
Direction angle of the point (in degrees, anti-clockwise in relation to the positive X direction) |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
Data type |
Description |
---|---|
Point on the circumference of the circle |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
26 |
The radius of the circle is outside the valid range. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The intersections have been calculated successfully.
Enumeration name: |
RadiusRangeCircle |
Enumeration value: |
26 |
Description: |
The radius of the circle is outside the valid range. |
Issue |
Cause |
Solution |
---|---|---|
- |
At the input i_stCircle.lrRadius, a number <= 0 has been transferred. |
The radius of the circle must be greater than zero. |