Type: |
Function |
Available as of: |
V1.0.0.0 |
Versions: |
Current version |
This chapter provides information on:
Four quadrant inverse tangent.
Given:
The function returns a value θ in the range [-π, +π] that is evaluated as:
The function is not defined for a zero value of both x and y.
Input |
Data type |
Description |
---|---|---|
i_lrY |
LREAL |
Numerator of the argument of the arctangent function. |
i_lrX |
LREAL |
Denominator of the argument of the arctangent function. |
Output |
Data type |
Description |
---|---|---|
q_xError |
BOOL |
If this output is set to TRUE, an error has been detected. For details, refer to q_etResult and q_etResultMsg. |
q_etResult |
Provides diagnostic and status information. If q_xError = FALSE, then q_etResult provides status information. If q_xError = TRUE, then q_etResult provides diagnostic/error information. The enumeration ET_Result contains the possible values of the POU operation results. |
|
q_sResultMsg |
STRING[80] |
Provides additional information about the current status of the POU. |
Data type |
Description |
---|---|
LREAL |
The function returns an inverse tangent valueθ in the range [-π, +π]. |
q_xError |
q_etResult |
Enumeration value |
Description |
---|---|---|---|
FALSE |
Ok |
0 |
Success |
TRUE |
NullInputs |
1 |
All inputs are zero. |